:root {
    --pink: #ff007a;
    --orange: #ff2a00;
    --grad: linear-gradient(45deg, #ff007a, #ff2a00);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --bg: #0a0010;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== BACKGROUND LAYERS ===== */
.video-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 0, 122, 0.25), transparent 55%),
        linear-gradient(rgba(8, 0, 14, 0.78), rgba(14, 0, 22, 0.94));
    z-index: -2;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== LAYOUT ===== */
.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 18px 40px;
    position: relative;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 54px 6px 30px;
    animation: fadeUp 0.9s ease both;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 7px 16px;
    border-radius: 30px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2a00;
    box-shadow: 0 0 10px #ff2a00;
    animation: pulse 1.4s infinite;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    margin: 22px 0 14px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(255, 0, 122, 0.35);
}

.hero-sub {
    font-size: 0.92rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
    max-width: 330px;
    margin: 0 auto 26px;
    line-height: 1.55;
}

/* ===== BUTTON ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 40px;
    border: none;
    background: var(--grad);
    background-size: 200% 200%;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 0, 122, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: glowShift 4s ease infinite;
}

.btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 45px rgba(255, 0, 122, 0.8);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-note {
    margin-top: 12px;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

/* ===== CHAT ===== */
.chat-section {
    animation: fadeUp 1s ease 0.15s both;
}

.chat {
    margin: 10px auto 30px;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 18px rgba(255, 0, 122, 0.6);
    flex-shrink: 0;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chat-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 8px #25d366;
}

.chat-body {
    display: flex;
    flex-direction: column;
    min-height: 60px;
}

.msg {
    margin: 6px 0;
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 82%;
    font-size: 0.86rem;
    font-weight: 300;
    line-height: 1.4;
    word-wrap: break-word;
    animation: popIn 0.3s ease both;
}

.msg.left {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.msg.right {
    background: var(--grad);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    margin-top: 6px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    animation: blink 1.2s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===== TRENDING ===== */
.trending {
    padding: 14px 0 10px;
    animation: fadeUp 1s ease 0.3s both;
}

.section-head {
    text-align: center;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-head p {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

.trend-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.trend-row::-webkit-scrollbar {
    display: none;
}

.trend-card {
    position: relative;
    min-width: 150px;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 30px rgba(255, 0, 122, 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.trend-card img,
.trend-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trend-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 50px rgba(255, 0, 122, 0.55);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 0, 16, 0.6), transparent 55%);
    pointer-events: none;
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-tag.live {
    background: var(--grad);
    border: none;
    box-shadow: 0 0 14px rgba(255, 0, 122, 0.6);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
}

.footer .copy {
    margin-top: 4px;
    opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

@keyframes blink {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@keyframes glowShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 481px) {
    .hero-title {
        font-size: 4rem;
    }

    .trend-card {
        min-width: 170px;
        height: 260px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .trend-card {
        min-width: 130px;
        height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}