
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #f6f7fb;
    background:
        radial-gradient(circle at top left, rgba(255, 126, 179, 0.28), transparent 22%),
        radial-gradient(circle at bottom left, rgba(255, 209, 102, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(122, 252, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #130d32 0%, #1f1454 45%, #0f5f71 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 16px 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 22px;
    margin-bottom: 22px;
    border-radius: 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffd166, #7afcff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a,
button,
.ghost-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

button {
    background: linear-gradient(135deg, #ffd166, #ff7eb3);
    color: #16151f;
    border: 0;
}

button:hover,
.nav-links a:hover,
.ghost-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.auth-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 16px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-grid,
.page-grid,
.live-layout,
.profile-layout {
    display: grid;
    gap: 22px;
}

.auth-grid {
    width: 100%;
    grid-template-columns: 1.15fr 0.85fr;
}

.page-grid {
    grid-template-columns: 320px minmax(0, 1fr);
}

.live-layout {
    grid-template-columns: 300px minmax(0, 1fr);
}

.profile-layout {
    grid-template-columns: 340px minmax(0, 1fr);
}

.hero-card,
.panel-card,
.post-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 30px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-card,
.panel-card {
    padding: 28px;
}

.hero-card h1,
.panel-card h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 48px;
    line-height: 1.05;
}

.hero-card p,
.muted {
    color: rgba(246,247,251,0.76);
}

.pill {
    display: inline-block;
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(122,252,255,0.16);
    border: 1px solid rgba(122,252,255,0.24);
    font-size: 13px;
    font-weight: 700;
}

.feature-list,
.stack,
.stat-list {
    display: grid;
    gap: 14px;
}

.feature-list {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
}

.feature-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
}

.feature-card strong,
.profile-mini h2,
.profile-mini h3 {
    display: block;
    margin-bottom: 4px;
}

label {
    font-weight: 700;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.94);
    color: #111827;
    font-size: 16px;
    font-family: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.alert.success {
    background: rgba(80,227,194,0.16);
    border: 1px solid rgba(80,227,194,0.28);
}

.alert.error {
    background: rgba(255,107,107,0.16);
    border: 1px solid rgba(255,107,107,0.28);
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff7eb3, #7afcff);
    color: #151515;
    font-size: 26px;
    font-weight: 800;
}

.avatar.small {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.stat-list {
    grid-template-columns: repeat(2, 1fr);
}

.stat-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    text-align: center;
}

.stat-box span {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.ghost-link {
    width: 100%;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.posts-stack {
    margin-top: 0;
}

.post-card {
    padding: 22px;
}

.post-top {
    margin-bottom: 12px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tiny {
    font-size: 13px;
}

.post-body {
    line-height: 1.7;
    font-size: 16px;
}

.empty-card h2 {
    margin-top: 0;
}

.info-row {
    margin-bottom: 18px;
    font-size: 18px;
}

.danger-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.22);
}

.danger-btn {
    background: linear-gradient(135deg, #ff8a8a, #ff5d73);
    color: #fff;
}

.chat-box {
    height: 460px;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: rgba(8, 10, 28, 0.42);
    border: 1px solid rgba(255,255,255,0.10);
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
}

.message-bubble {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 12px;
}

.message-bubble.mine {
    background: rgba(122,252,255,0.16);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(246,247,251,0.74);
}

.online-pill {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
}

@media (max-width: 980px) {
    .auth-grid,
    .page-grid,
    .live-layout,
    .profile-layout,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .hero-card h1,
    .panel-card h1 {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .site-shell,
    .auth-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-card,
    .panel-card,
    .post-card {
        padding: 20px;
        border-radius: 24px;
    }

    .topbar {
        padding: 16px;
        border-radius: 22px;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }

    .nav-links a,
    button,
    .ghost-link {
        width: 100%;
    }

    .nav-links {
        width: 100%;
    }

    .hero-card h1,
    .panel-card h1 {
        font-size: 32px;
    }
}
