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

:root {
    --p: #6d28d9;
    --pl: #8b5cf6;
    --bg: #f8fafc;
    --bg2: #ffffff;
    --bg3: #f1f5f9;
    --s: rgba(0, 0, 0, .03);
    --b: rgba(0, 0, 0, .06);
    --t: #334155;
    --t2: #0f172a;
    --m: #64748b;
    --nav: 60px
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    background-image: radial-gradient(circle at 50% 0%, #ede9fe 0%, transparent 50%), radial-gradient(circle at 100% 50%, #e0f2fe 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--t);
    min-height: 100vh
}

/* NAVBAR */
nav {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 100;
    height: var(--nav);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .08)
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 900;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--t2);
    flex-shrink: 0
}

.li {
    width: 32px;
    height: 32px;
    background: var(--pl);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #fff;
    flex-shrink: 0
}

.nav-search {
    flex: 1;
    max-width: 240px;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg);
    border: 1px solid var(--b);
    border-radius: 50px;
    padding: .38rem .9rem;
    margin: 0 1rem
}

.nav-search input {
    background: none;
    border: none;
    color: var(--t);
    font-family: inherit;
    font-size: .82rem;
    outline: none;
    width: 100%
}

.nav-search input::placeholder {
    color: var(--m)
}

.nav-center {
    display: flex;
    gap: .25rem;
    flex: 1
}

.nav-tab {
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--t2);
    border: none;
    background: none;
    font-family: inherit;
    transition: color .3s;
    text-decoration: none;
    white-space: nowrap;
    gap: .4rem
}

.nav-tab:hover {
    color: var(--pl)
}

.nav-tab.active {
    color: var(--pl)
}

.nav-right {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto
}

.ni {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--s);
    border: 1px solid var(--b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--m);
    transition: .2s;
    font-size: .85rem;
    text-decoration: none;
    position: relative
}

.ni:hover {
    background: rgba(109, 40, 217, .08);
    color: var(--pl)
}

.ni .dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff
}

.av-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: 2px solid rgba(109, 40, 217, .25)
}

/* COVER */
.cover-wrap {
    margin-top: 100px;
    /* Space for floating nav */
    padding: 0 1rem;
    position: relative;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto
}

.cover {
    height: 380px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 20px 40px -10px rgba(67, 56, 202, 0.15)
}

.cover-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(124, 58, 237, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 58, 237, .08) 1px, transparent 1px);
    background-size: 40px 40px
}

.cover-orb1 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, .4) 0%, transparent 70%);
    top: -100px;
    left: -50px;
    pointer-events: none
}

.cover-orb2 {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, .3) 0%, transparent 70%);
    bottom: -100px;
    right: -30px;
    pointer-events: none
}

.cover-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, .6);
    font-size: .78rem;
    font-weight: 500
}

.cover-edit {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    color: white;
    transition: .2s
}

.cover-edit:hover {
    background: rgba(255, 255, 255, .18)
}

/* PROFILE BAR */
.profile-bar {
    max-width: 1100px;
    margin: 1.25rem auto 2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .06)
}

.profile-av {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    border: none;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08)
}

.profile-info {
    flex: 1
}

.profile-name {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .2rem
}

.profile-name h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--t2)
}

.tick {
    color: #3b82f6;
    font-size: 1.2rem
}

.profile-sub {
    color: var(--m);
    font-size: .85rem;
    margin-top: .3rem;
    letter-spacing: .01em
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: .6rem
}

.pstat a {
    text-decoration: none;
    color: var(--t)
}

.pstat-num {
    font-size: 1rem;
    font-weight: 800
}

.pstat-label {
    font-size: .75rem;
    color: var(--m)
}

.profile-actions {
    display: flex;
    gap: .65rem;
    padding-bottom: .5rem;
    flex-shrink: 0
}

.btn-follow {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3)
}

.btn-follow:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px)
}

.btn-msg {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    background: #fff;
    border: 1px solid var(--b);
    border-radius: 50px;
    color: var(--t2);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.btn-msg:hover {
    background: var(--bg3);
    border-color: rgba(109, 40, 217, .3);
    color: var(--pl);
    box-shadow: 0 4px 12px rgba(109, 40, 217, .1);
    transform: translateY(-2px)
}

.btn-more {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
    color: var(--m)
}

.btn-more:hover {
    background: rgba(255, 255, 255, .12);
    color: white
}

/* LAYOUT */
.page-layout {
    max-width: 1100px;
    margin: 1.25rem auto 3rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.1rem
}

@media(max-width:1000px) {
    .page-layout {
        grid-template-columns: 1fr
    }

    .right-col {
        display: none
    }
}

/* CARDS */
.card {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .05);
    position: relative;
    overflow: hidden
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--pl);
    border-radius: 4px 0 0 4px
}

.card-title {
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--t2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.card-title a {
    font-size: .75rem;
    color: var(--pl);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600
}

.card-title a:hover {
    text-decoration: underline
}

/* ABOUT */
.arow {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .45rem 0;
    font-size: .855rem
}

.arow i {
    color: var(--pl);
    width: 18px;
    text-align: center;
    margin-top: .1rem;
    flex-shrink: 0
}

.arow span {
    color: var(--t);
    line-height: 1.5
}

.arow a {
    color: var(--pl);
    text-decoration: none
}

.arow a:hover {
    text-decoration: underline
}

/* PHOTOS GRID */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: .2s;
    overflow: hidden;
    position: relative
}

.photo-item:hover {
    transform: scale(1.02);
    z-index: 1
}

.link-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border-radius: 14px;
    background: var(--bg3);
    border: none;
    text-decoration: none;
    color: var(--t);
    margin-bottom: .6rem;
    transition: .2s
}

.link-item:last-child {
    margin-bottom: 0
}

.link-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(109, 40, 217, .08);
    transform: translateY(-1px)
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0
}

.link-name {
    font-size: .85rem;
    font-weight: 700
}

.link-url {
    font-size: .72rem;
    color: var(--m)
}

/* POST */
.post {
    background: #fff;
    border: none;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
    transition: box-shadow .3s, transform .3s
}

.post:hover {
    box-shadow: 0 20px 50px rgba(109, 40, 217, .12);
    transform: translateY(-2px)
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem
}

.post-av {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0
}

.post-av.main {
    background: linear-gradient(135deg, var(--p), var(--c))
}



.post-author {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--t2)
}

.post-time {
    font-size: .75rem;
    color: var(--m);
    display: flex;
    align-items: center;
    gap: .35rem
}

.post-menu {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--m);
    transition: .2s
}

.post-menu:hover {
    background: rgba(0, 0, 0, .06);
    color: var(--t)
}

.post-body {
    padding: 0 1rem .85rem;
    font-size: .9rem;
    line-height: 1.65;
    color: var(--t)
}

.post-body .tag {
    color: var(--pl);
    font-weight: 600;
    cursor: pointer
}

.post-media {
    margin: 0 0 0
}

.post-banner {
    padding: .85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.post-banner-inner {
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden
}

.post-banner-icon {
    font-size: 2rem;
    flex-shrink: 0
}

.post-banner-text h3 {
    font-size: 1rem;
    font-weight: 800
}

.post-banner-text p {
    font-size: .78rem;
    margin-top: .25rem;
    opacity: .8
}

.post-banner-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .45rem .9rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: .2s;
    text-decoration: none;
    white-space: nowrap
}

.post-reactions {
    padding: 0 1rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.react-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border-radius: 50px;
    cursor: pointer;
    color: var(--t);
    font-size: .8rem;
    font-weight: 700;
    transition: .2s;
    border: 1px solid var(--b);
    background: var(--bg);
    font-family: inherit
}

.react-btn:hover {
    background: #fff;
    border-color: rgba(109, 40, 217, .3);
    color: var(--pl);
    box-shadow: 0 2px 8px rgba(109, 40, 217, .1)
}

.react-btn.liked {
    color: var(--pl);
    background: rgba(109, 40, 217, .08);
    border-color: rgba(109, 40, 217, .2)
}

.react-count {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0 1rem .6rem;
    font-size: .78rem;
    color: var(--m)
}

/* SERVICE CARDS */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem
}

.svc-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    color: var(--t);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04)
}

.svc-card:hover {
    box-shadow: 0 4px 16px rgba(109, 40, 217, .12);
    border-color: rgba(109, 40, 217, .25);
    transform: translateY(-2px)
}

.svc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(109, 40, 217, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--pl);
    margin-bottom: .7rem
}

.svc-name {
    font-size: .875rem;
    font-weight: 800;
    color: var(--t2);
    margin-bottom: .2rem
}

.svc-desc {
    font-size: .75rem;
    color: var(--m)
}

/* SUGGESTED */
.sugg-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--b)
}

.sugg-item:last-child {
    border-bottom: none
}

.sugg-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700
}

.sugg-info {
    flex: 1;
    min-width: 0
}

.sugg-name {
    font-size: .85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: .3rem;
    color: var(--t2)
}

.sugg-sub {
    font-size: .75rem;
    color: var(--m)
}

.sugg-btn {
    padding: .3rem .75rem;
    border-radius: 7px;
    background: rgba(124, 58, 237, .2);
    border: 1px solid rgba(124, 58, 237, .3);
    color: var(--pl);
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: .2s;
    flex-shrink: 0
}

.sugg-btn:hover {
    background: rgba(124, 58, 237, .35)
}

/* WHO ONLINE */
.online-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .45rem 0;
    font-size: .83rem;
    cursor: pointer
}

.online-item:hover span {
    color: var(--pl)
}

.online-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    position: relative;
    flex-shrink: 0
}

.online-av::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg2)
}

/* STORIES */
.stories {
    display: flex;
    gap: .75rem;
    padding: 1rem 1rem .5rem;
    overflow-x: auto;
    scrollbar-width: none
}

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

.story {
    width: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: .2s
}

.story:hover {
    transform: scale(1.04)
}

.story.highlighted {
    border-color: var(--pl)
}

.story-bg {
    height: 150px;
    display: flex;
    align-items: flex-end;
    padding: .6rem;
    position: relative
}

.story-av {
    position: absolute;
    top: .5rem;
    left: .5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--pl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700
}

.story-label {
    font-size: .72rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
    line-height: 1.3
}

/* CREATE POST */
.create-post {
    background: var(--bg2);
    border: 1px solid var(--b);
    border-radius: 14px;
    padding: .85rem 1rem;
    margin-bottom: 1.1rem
}

.cp-row {
    display: flex;
    align-items: center;
    gap: .75rem
}

.cp-input {
    flex: 1;
    padding: .7rem 1rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--b);
    border-radius: 50px;
    color: var(--m);
    font-family: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: .2s
}

.cp-input:hover {
    background: rgba(255, 255, 255, .09)
}

.cp-actions {
    display: flex;
    gap: .25rem;
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid var(--b)
}

.cp-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--m);
    font-size: .8rem;
    font-weight: 600;
    transition: .2s;
    flex: 1;
    justify-content: center
}

.cp-btn:hover {
    background: rgba(255, 255, 255, .07);
    color: white
}