:root {
    --vx-bg: #070812;
    --vx-surface: #101221;
    --vx-surface-2: #15182a;
    --vx-border: rgba(255,255,255,.08);
    --vx-text: #f7f7fb;
    --vx-muted: #9296aa;
    --vx-purple: #9b35ff;
    --vx-blue: #3b82ff;
    --vx-pink: #d946ef;
    --vx-gradient: linear-gradient(135deg,#7c3aed 0%,#a21caf 45%,#3b82f6 100%);
    --vx-radius: 18px;
    --vx-nav-height: 70px;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
    background: var(--vx-bg);
    color: var(--vx-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
}

body {
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

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

.vx-app {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(124,58,237,.14),
            transparent 30%
        ),
        var(--vx-bg);
    position: relative;
}

.vx-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7,8,18,.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--vx-border);
}

.vx-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.vx-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--vx-gradient);
    box-shadow: 0 8px 30px rgba(139,92,246,.35);
    font-weight: 900;
}

.vx-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.vx-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--vx-surface);
    color: var(--vx-text);
    border: 1px solid var(--vx-border);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.vx-main {
    padding-bottom: calc(var(--vx-nav-height) + 20px);
}

.vx-stories {
    padding: 15px 14px 8px;
    display: flex;
    gap: 13px;
    overflow-x: auto;
    scrollbar-width: none;
}

.vx-stories::-webkit-scrollbar {
    display: none;
}

.vx-story {
    flex: 0 0 auto;
    width: 62px;
    text-align: center;
}

.vx-story-avatar {
    width: 62px;
    height: 62px;
    padding: 2px;
    border-radius: 50%;
    background: var(--vx-gradient);
}

.vx-story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #202338;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--vx-bg);
}

.vx-story-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-story-name {
    margin-top: 6px;
    color: var(--vx-muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vx-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vx-post {
    padding: 15px 14px;
    background: var(--vx-surface);
    border-top: 1px solid var(--vx-border);
    border-bottom: 1px solid var(--vx-border);
}

.vx-post-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vx-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vx-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--vx-gradient);
    padding: 2px;
}

.vx-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #24283c;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
}

.vx-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-user-name {
    font-size: 14px;
    font-weight: 700;
}

.vx-user-meta {
    margin-top: 2px;
    color: var(--vx-muted);
    font-size: 11px;
}

.vx-more {
    color: var(--vx-muted);
    background: transparent;
    font-size: 20px;
}

.vx-post-content {
    padding: 13px 2px;
}

.vx-post-content p {
    font-size: 14px;
    line-height: 1.55;
    color: #e7e8f0;
}

.vx-post-image {
    width: 100%;
    aspect-ratio: 1 / .86;
    border-radius: 15px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(124,58,237,.7),
            rgba(37,99,235,.6)
        );
}

.vx-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vx-post-actions {
    display: flex;
    align-items: center;
    gap: 17px;
    padding-top: 13px;
}

.vx-action {
    background: transparent;
    color: var(--vx-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.vx-action.active {
    color: #d946ef;
}

.vx-save {
    margin-left: auto;
}

.vx-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(520px,100%);
    height: var(--vx-nav-height);
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    background: rgba(12,13,25,.94);
    backdrop-filter: blur(22px);
    border-top: 1px solid var(--vx-border);
    padding-bottom: env(safe-area-inset-bottom);
}

.vx-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #777c92;
    background: transparent;
    font-size: 10px;
}

.vx-nav-item span:first-child {
    font-size: 20px;
}

.vx-nav-item.active {
    color: #b45cff;
}

.vx-create {
    width: 46px;
    height: 46px;
    margin-top: -12px;
    border-radius: 15px;
    background: var(--vx-gradient);
    color: white;
    font-size: 25px;
    box-shadow: 0 10px 35px rgba(139,92,246,.4);
}

@media (min-width: 700px) {
    body {
        background: #03040a;
    }

    .vx-app {
        border-left: 1px solid var(--vx-border);
        border-right: 1px solid var(--vx-border);
    }
}
