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

:root {
    --bg: #1A1028;
    --purple: #6C5CE7;
    --pink: #FF4F9A;
    --coral: #FF6B6B;
    --yellow: #FECA57;
    --cyan: #48DBFB;
    --teal: #00D2D3;
    --white: #FFFFFF;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 8px;
    max-width: 1100px;
    width: 100%;
}

/* Cell Base */
.bento-cell {
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-cell:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Chibi BG */
.chibi-bg {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.08;
    pointer-events: none;
}

.chibi-1 {
    right: 16px;
    bottom: 16px;
    background: radial-gradient(circle at 50% 30%, var(--white) 30%, transparent 30%),
                radial-gradient(circle at 50% 70%, var(--white) 20%, transparent 20%);
}

.chibi-2 {
    right: 12px;
    top: 12px;
    background: radial-gradient(circle at 50% 30%, var(--white) 28%, transparent 28%),
                radial-gradient(circle at 50% 68%, var(--white) 22%, transparent 22%);
}

.chibi-3 {
    left: 12px;
    bottom: 12px;
    background: radial-gradient(circle at 50% 30%, var(--white) 32%, transparent 32%),
                radial-gradient(circle at 50% 72%, var(--white) 18%, transparent 18%);
}

/* Hero Cell */
.hero-cell {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--purple), #8B5CF6, var(--pink));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-cell h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Schedule Cell */
.cell-schedule {
    background-color: #241840;
    grid-column: span 1;
    grid-row: span 2;
}

.cell-schedule h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.live {
    background-color: var(--pink);
    box-shadow: 0 0 8px var(--pink), 0 0 16px rgba(255, 79, 154, 0.4);
    animation: glow-pulse 1.5s ease-in-out infinite;
}

.status-dot.upcoming {
    background-color: var(--teal);
}

.status-dot.offline {
    background-color: rgba(255, 255, 255, 0.25);
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--pink), 0 0 16px rgba(255, 79, 154, 0.4); }
    50% { box-shadow: 0 0 12px var(--pink), 0 0 24px rgba(255, 79, 154, 0.6); }
}

.talent-name {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.stream-time {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Analytics Cell */
.cell-analytics {
    background-color: #1E1538;
    grid-column: span 1;
}

.cell-analytics h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.chart-bar {
    flex: 1;
    height: var(--bar-height);
    background: linear-gradient(to top, var(--cyan), var(--teal));
    border-radius: 4px 4px 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s ease;
}

.chart-bar.animated {
    transform: scaleY(1);
}

.chart-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-top: 8px;
}

/* Revenue Cell */
.cell-revenue {
    background: linear-gradient(135deg, #2D1B4E, #1A1028);
    border: 1px solid rgba(254, 202, 87, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.revenue-icon {
    margin-bottom: 8px;
}

.revenue-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--yellow);
    display: block;
}

.revenue-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 2px;
}

.revenue-change {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--teal);
    display: block;
    margin-top: 4px;
}

/* Talent Cell */
.cell-talent {
    background: linear-gradient(135deg, var(--pink), var(--coral));
    grid-column: span 2;
}

.cell-talent h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.talent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.talent-avatar {
    flex-shrink: 0;
}

.talent-display-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    display: block;
}

.talent-subs {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.talent-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Alerts Cell */
.cell-alerts {
    background-color: #241840;
}

.cell-alerts h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.alert-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--coral);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-badge.info {
    background-color: var(--cyan);
    color: var(--bg);
}

.alert-urgent {
    color: var(--coral);
}

/* Social Cell */
.cell-social {
    background-color: #1E1538;
    grid-column: span 2;
}

.cell-social h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.social-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    width: 70px;
    flex-shrink: 0;
}

.pulse-bar {
    flex: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.pulse-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.social-val {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--teal);
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

/* Upcoming Events */
.cell-upcoming {
    background-color: #241840;
}

.cell-upcoming h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--yellow);
    width: 56px;
    flex-shrink: 0;
}

.event-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* Clipping Cell */
.cell-clipping {
    background: linear-gradient(135deg, #2D1B4E, var(--purple));
}

.cell-clipping h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.clip-stats {
    margin-bottom: 12px;
}

.clip-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--yellow);
}

.clip-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 8px;
}

.clip-progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.clip-progress-fill {
    width: 72%;
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--coral));
    border-radius: 3px;
}

.clip-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

/* Bounce Enter Animation */
@keyframes bounce-enter {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    60% {
        opacity: 1;
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bento-cell.visible {
    animation: bounce-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cell {
        grid-column: span 2;
        grid-row: span 1;
    }

    .cell-schedule {
        grid-row: span 1;
    }

    .cell-talent {
        grid-column: span 2;
    }

    .cell-social {
        grid-column: span 2;
    }

    .hero-cell h1 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero-cell,
    .cell-talent,
    .cell-social {
        grid-column: span 1;
    }
}
