/* ==========================================================================
   SASTAGRAM V2 — ULTRA GLASS
   Luxury • Minimal • Instagram-inspired • Advanced Motion
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Pacifico&display=swap');

/* ==========================================================================
   CORE DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg: #000000;
    --bg-2: #050506;
    --surface: rgba(255,255,255,.055);
    --surface-2: rgba(255,255,255,.075);
    --surface-3: rgba(255,255,255,.11);

    --glass: rgba(255,255,255,.045);
    --glass-heavy: rgba(255,255,255,.075);
    --glass-border: rgba(255,255,255,.105);
    --glass-border-bright: rgba(255,255,255,.18);

    --white: #fff;
    --text-primary: #fff;
    --text-secondary: #a5a5ad;
    --text-muted: #66666e;

    --border-dim: rgba(255,255,255,.085);

    --insta-blue: #0095f6;
    --insta-danger: #ff3040;

    --insta-gradient:
        linear-gradient(
            135deg,
            #feda75 0%,
            #fa7e1e 25%,
            #d62976 55%,
            #962fbf 78%,
            #4f5bd5 100%
        );

    --shadow:
        0 25px 70px rgba(0,0,0,.55);

    --glass-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 20px 60px rgba(0,0,0,.35);

    --ease:
        cubic-bezier(.22,1,.36,1);

    --spring:
        cubic-bezier(.175,.885,.32,1.275);
}


/* ==========================================================================
   RESET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #070708;
}

body {
    color: var(--text-primary);
    overflow: hidden;
}


/* ==========================================================================
   AMBIENT BACKGROUND
   ========================================================================== */

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

body::before {
    width: 520px;
    height: 520px;
    top: -250px;
    left: -250px;
    background: radial-gradient(
        circle,
        rgba(150,47,191,.10),
        transparent 68%
    );
    filter: blur(30px);
}

body::after {
    width: 480px;
    height: 480px;
    right: -250px;
    bottom: -220px;
    background: radial-gradient(
        circle,
        rgba(79,91,213,.08),
        transparent 68%
    );
    filter: blur(35px);
}


/* ==========================================================================
   PHONE CONTAINER
   ========================================================================== */

.phone-container {
    width: 100%;
    max-width: 412px;
    height: 100vh;
    max-height: 892px;

    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% -10%,
            rgba(255,255,255,.035),
            transparent 35%
        ),
        #000;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 30px 100px rgba(0,0,0,.8),
        inset 0 1px 0 rgba(255,255,255,.035);
}

@media (min-width:420px) {

    .phone-container {
        height: min(892px, 100vh);
        border: 7px solid #181819;
        border-radius: 42px;
    }
}


/* ==========================================================================
   UNIVERSAL GLASS
   ========================================================================== */

.glass,
.field-wrapper,
.search-bar-wrapper input,
.home-post-card,
.publisher-card,
.custom-modal-card,
.component-drawer,
.messaging-input-row,
.app-navigation-bar,
.option-row,
.theme-card {
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );

    border: 1px solid var(--glass-border);

    box-shadow: var(--glass-shadow);

    backdrop-filter: blur(25px) saturate(135%);
    -webkit-backdrop-filter: blur(25px) saturate(135%);
}


/* ==========================================================================
   AUTHENTICATION
   ========================================================================== */

.auth-blur-pane {
    position: absolute;
    inset: 0;

    z-index: 99999;

    display: none;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 28px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(214,41,118,.09),
            transparent 35%
        ),
        rgba(0,0,0,.86);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.auth-blur-pane.active {
    display: flex;
    animation: authReveal .65s var(--ease);
}

@keyframes authReveal {
    from {
        opacity: 0;
        transform: scale(1.03);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sastagram-brand-logo-container {
    position: relative;

    width: 270px !important;
    height: 220px !important;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto !important;
}

.auth-custom-logo {
    width: 270px !important;
    height: 180px !important;

    display: flex !important;
    justify-content: center;
    align-items: center;

    animation: logoFloat 5s ease-in-out infinite;
}

.auth-custom-logo img {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;

    filter:
        drop-shadow(0 20px 35px rgba(0,0,0,.5));

    display: block !important;
}

@keyframes logoFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.plus-badge {
    position: absolute;

    top: 12px;
    right: 0;

    width: 27px;
    height: 27px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: var(--insta-blue);

    border: 3px solid #000;

    box-shadow:
        0 0 0 5px rgba(0,149,246,.08),
        0 5px 18px rgba(0,149,246,.35);

    animation: badgePulse 2.8s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,100% {
        box-shadow:
            0 0 0 5px rgba(0,149,246,.06),
            0 5px 18px rgba(0,149,246,.3);
    }

    50% {
        box-shadow:
            0 0 0 8px rgba(0,149,246,.025),
            0 5px 22px rgba(0,149,246,.45);
    }
}

.plus-badge i {
    color: white !important;
    font-size: 11px !important;
}

.auth-brand-logo {
    font-family: Pacifico, cursive;
    font-size: 52px;

    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    margin: -5px 0 25px !important;

    font-size: 12px;

    color: var(--text-secondary);

    text-align: center;
    letter-spacing: .2px;
}

.auth-input-group {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-bottom: 20px;
}

.field-wrapper {
    width: 100%;
    height: 54px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 16px;

    border-radius: 17px;

    transition:
        border .3s ease,
        background .3s ease,
        transform .3s var(--ease);
}

.field-wrapper:focus-within {
    border-color: rgba(255,255,255,.25);

    background: rgba(255,255,255,.085);

    transform: translateY(-1px);
}

.field-wrapper i {
    color: #777780;
    font-size: 15px;

    transition: color .25s ease;
}

.field-wrapper:focus-within i {
    color: white;
}

.field-wrapper input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;
}

.brand-gradient-btn {
    width: 100%;
    height: 51px;

    border: none;
    border-radius: 16px;

    background: var(--insta-gradient);

    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 35px rgba(214,41,118,.18);

    transition:
        transform .25s var(--spring),
        box-shadow .25s ease,
        filter .25s ease;
}

.brand-gradient-btn:hover {
    filter: brightness(1.08);
    box-shadow:
        0 15px 40px rgba(214,41,118,.25);
}

.brand-gradient-btn:active {
    transform: scale(.97);
}

.auth-toggle-helper {
    margin-top: 18px;

    font-size: 12px;

    color: var(--text-secondary);

    cursor: pointer;
}

.auth-toggle-helper .toggle-link {
    color: var(--insta-blue);
    font-weight: 700;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.screen-header {
    position: relative;

    height: 62px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    z-index: 999;

    background: rgba(0,0,0,.55);

    border-bottom: 1px solid rgba(255,255,255,.065);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.screen-header::after {
    content: "";

    position: absolute;

    left: 17px;
    right: 17px;
    bottom: -1px;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.12),
        transparent
    );
}

.brand-app-title {
    font-family: Pacifico, cursive;

    font-size: 27px;
    font-weight: 400;

    letter-spacing: .3px;

    color: white;

    transition: transform .3s var(--spring);
}

.brand-app-title:active {
    transform: scale(.95);
}

.header-action-cluster {
    display: flex;
    align-items: center;
    gap: 19px;

    font-size: 19px;
}

.header-action-cluster i {
    cursor: pointer;

    transition:
        transform .3s var(--spring),
        color .25s ease;
}

.header-action-cluster i:hover {
    transform: translateY(-2px);
}

.header-action-cluster i:active {
    transform: scale(.82);
}

.screen-header .brand-logo,
.screen-header .logo-icon {
    background: var(--insta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ==========================================================================
   VIEWPORT
   ========================================================================== */

.viewport-canvas {
    position: relative;

    flex: 1;

    min-height: 0;

    overflow: hidden;
}

.app-screen {
    position: absolute;
    inset: 0;

    display: none;

    opacity: 0;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.018),
            transparent 30%
        ),
        #000;

    transform: translateY(8px);

    transition:
        opacity .35s ease,
        transform .45s var(--ease);
}

.app-screen.active {
    display: block;

    opacity: 1;

    transform: translateY(0);

    animation: screenEnter .45s var(--ease);
}

@keyframes screenEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen-content {
    width: 100%;
    height: 100%;

    overflow-y: auto;

    padding-bottom: 105px;

    scrollbar-width: none;
}

.screen-content::-webkit-scrollbar {
    display: none;
}


/* ==========================================================================
   STORIES
   ========================================================================== */

.stories-horizontal-strip {
    display: flex;

    gap: 14px;

    padding: 15px 13px 17px;

    overflow-x: auto;

    border-bottom: 1px solid rgba(255,255,255,.055);

    scrollbar-width: none;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.018),
            transparent
        );
}

.stories-horizontal-strip::-webkit-scrollbar {
    display: none;
}

.story-bubble {
    width: 67px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
}

.story-ring {
    width: 63px;
    height: 63px;

    padding: 2px;

    border-radius: 50%;

    background: var(--insta-gradient);

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: storyRingIdle 5s ease-in-out infinite;
}

.story-ring::before {
    content: "";

    position: absolute;
    inset: -3px;

    border-radius: inherit;

    border: 1px solid rgba(255,255,255,.10);

    opacity: .5;
}

.story-ring::after {
    content: "";

    position: absolute;
    inset: -6px;

    border-radius: inherit;

    border: 1px solid transparent;

    border-top-color: rgba(255,255,255,.35);

    animation: ringRotate 5s linear infinite;
}

@keyframes storyRingIdle {

    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

.story-bubble:first-child .story-ring {
    background:
        linear-gradient(#111,#111) padding-box,
        var(--insta-gradient) border-box;

    border: 2px solid transparent;
}

.story-ring img {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    display: block;

    border: 2px solid #000;
}

.story-bubble span {
    width: 100%;

    margin-top: 7px;

    overflow: hidden;

    text-align: center;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #a8a8af;

    font-size: 10.5px;
}


/* ==========================================================================
   FEED
   ========================================================================== */

.home-post-card {
    position: relative;

    width: 100%;

    margin: 8px 0;

    overflow: hidden;

    border-left: 0;
    border-right: 0;

    border-radius: 0;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        );
}

.post-user-row {
    height: 61px;

    padding: 10px 14px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.post-avatar {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(#111,#111) padding-box,
        var(--insta-gradient) border-box;

    border: 2px solid transparent;

    font-size: 12px;
    font-weight: 700;

    position: relative;
}

.post-avatar::after {
    content: "";

    position: absolute;
    inset: -4px;

    border-radius: inherit;

    border: 1px solid rgba(255,255,255,.08);

    animation: avatarOrbit 4s linear infinite;
}

@keyframes avatarOrbit {
    to {
        transform: rotate(360deg);
    }
}

.post-user-row strong {
    font-size: 13px;
    font-weight: 700;
}

.post-main-image {
    width: 100%;

    aspect-ratio: 1 / 1;

    background: #050505;

    overflow: hidden;

    position: relative;
}

.post-main-image img,
.post-main-image video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .7s var(--ease);
}

.home-post-card:hover .post-main-image img,
.home-post-card:hover .post-main-image video {
    transform: scale(1.012);
}

.post-action-strip {
    min-height: 54px;

    padding: 11px 15px;

    display: flex;
    align-items: center;

    gap: 19px;

    background: rgba(255,255,255,.018);
}

.post-action-strip i {
    font-size: 20px;

    cursor: pointer;

    transition:
        transform .25s var(--spring),
        color .2s ease;
}

.post-action-strip i:hover {
    transform: translateY(-2px);
}

.post-action-strip i:active {
    transform: scale(.78);
}

.post-action-strip i.fa-heart {
    transition:
        transform .3s var(--spring),
        color .2s ease;
}

.post-action-strip i.fa-heart:hover {
    color: var(--insta-danger);
}

.post-caption-box {
    padding: 0 15px 17px;

    font-size: 13px;

    line-height: 1.55;

    color: #ededf0;
}


/* ==========================================================================
   AUDIO
   ========================================================================== */

.post-audio-badge {
    position: relative;

    display: flex;
    align-items: center;

    width: 210px;
    max-width: 210px;
    height: 25px;

    gap: 7px;

    margin-top: 4px;

    overflow: hidden;

    color: white;

    background: transparent !important;

    font-size: 11px;
}

.post-audio-badge .post-audio-icon,
.post-audio-badge > i:first-child {
    flex: 0 0 auto;

    width: 17px;

    color: white !important;

    text-align: center;
}

.post-audio-marquee {
    flex: 1;

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}

.post-audio-marquee span {
    display: inline-block;

    width: max-content;

    padding-left: 100%;

    color: white !important;

    font-size: 11px;

    animation:
        sastagramPremiumSongScroll 14s linear infinite;
}

@keyframes sastagramPremiumSongScroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.play-post-audio-btn {
    width: 23px;
    height: 23px;

    flex: 0 0 auto;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white !important;

    background: rgba(255,255,255,.08) !important;

    border: 1px solid rgba(255,255,255,.15);

    cursor: pointer;

    transition:
        transform .25s var(--spring),
        background .25s ease;
}

.play-post-audio-btn:hover {
    background: rgba(255,255,255,.16) !important;
}

.play-post-audio-btn:active {
    transform: scale(.82);
}


/* ==========================================================================
   PUBLISHER / CREATOR
   ========================================================================== */

.publisher-overlay-modal {
    position: absolute;
    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: rgba(0,0,0,.68);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.publisher-overlay-modal.open {
    display: flex;

    animation: overlayIn .35s ease;
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.publisher-card,
.luxury-creator-card {
    width: 100%;
    max-width: 412px;

    height: 100%;

    max-height: 100vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 0;

    background:
        linear-gradient(
            150deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.018)
        );

    animation: creatorEnter .45s var(--ease);
}

@keyframes creatorEnter {

    from {
        transform: translateY(35px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.creator-header-bar {
    height: 60px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    border-bottom: 1px solid var(--border-dim);

    background: rgba(0,0,0,.4);

    backdrop-filter: blur(20px);
}

.creator-header-bar h2 {
    font-size: 17px;
    font-weight: 700;
}

.creator-header-bar i {
    font-size: 19px;

    cursor: pointer;

    transition: transform .25s var(--spring);
}

.creator-header-bar i:active {
    transform: scale(.8) rotate(8deg);
}

.stage-nav-btn {
    border: none;

    background: transparent;

    color: var(--insta-blue);

    font-weight: 700;

    cursor: pointer;
}

.creator-media-viewport {
    flex: 1;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #030303;
}

.creator-media-viewport::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.035),
            transparent 30%,
            transparent 70%,
            rgba(255,255,255,.02)
        );
}

.creator-media-viewport img,
.creator-media-viewport video {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.editor-tools-strip {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    background: rgba(12,12,13,.8);

    border-top: 1px solid var(--border-dim);

    backdrop-filter: blur(25px);
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;

    border: none;
    background: transparent;

    color: #8d8d95;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .3s var(--spring);
}

.tool-btn span {
    font-size: 10px;
}

.tool-btn:hover {
    color: white;
    transform: translateY(-3px);
}

.stage-scroll-body {
    flex: 1;

    overflow-y: auto;

    padding: 17px;

    scrollbar-width: none;
}

.stage-scroll-body::-webkit-scrollbar {
    display: none;
}

.caption-row-wrapper {
    display: flex;

    gap: 12px;

    margin-bottom: 20px;
}

.mini-media-thumbnail {
    width: 61px;
    height: 61px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #111;

    background-size: cover;
    background-position: center;

    border: 1px solid var(--glass-border);
}

.caption-row-wrapper textarea {
    flex: 1;

    background: transparent;

    border: none;
    outline: none;

    color: white;

    resize: none;

    font-size: 14px;
}

.creator-options-list {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.option-row {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 13px;

    border-radius: 15px;

    color: white;
}

.opt-left {
    display: flex;
    align-items: center;

    gap: 12px;
}

.opt-left i {
    width: 23px;

    color: #aaaab1;
}

.opt-left p {
    margin-top: 2px;

    color: #707078;

    font-size: 10px;
}

.opt-right {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #9c9ca3;
}


/* ==========================================================================
   TOGGLE
   ========================================================================== */

.switch-toggle {
    position: relative;

    display: inline-block;

    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;

    background: #29292c;

    cursor: pointer;

    transition: .3s ease;

    border-radius: 30px;
}

.slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    background: white;

    border-radius: 50%;

    transition: .35s var(--spring);

    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

input:checked + .slider {
    background: var(--insta-blue);
}

input:checked + .slider::before {
    transform: translateX(20px);
}


/* ==========================================================================
   SEARCH — REDESIGNED
   ========================================================================== */

.search-bar-wrapper {
    position: relative;

    padding: 13px 15px;

    background: rgba(0,0,0,.45);
}

.search-bar-wrapper i {
    position: absolute;

    left: 29px;
    top: 26px;

    color: #77777e;

    font-size: 13px;

    z-index: 2;
}

.search-bar-wrapper input {
    width: 100%;
    height: 43px;

    padding: 0 15px 0 39px;

    border-radius: 15px;

    outline: none;

    color: white !important;

    font-size: 13px;
}

.search-bar-wrapper input::placeholder {
    color: #62626a;
}


/* ==========================================================================
   PROFILE — COMPLETELY NEW
   ========================================================================== */

#profile-screen {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.045),
            transparent 35%
        ),
        #000;
}

.profile-top-bar {
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    border-bottom: 1px solid rgba(255,255,255,.055);

    background: rgba(0,0,0,.45);

    backdrop-filter: blur(25px);
}

.profile-top-bar h2 {
    font-size: 16px;
    font-weight: 800;
}

.profile-top-bar i {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.05);

    color: #b4b4bb;

    cursor: pointer;

    transition:
        transform .3s var(--spring),
        background .25s ease;
}

.profile-top-bar i:active {
    transform: scale(.82);
}

.profile-meta-block {
    padding: 24px 17px 12px;

    display: flex;
    align-items: center;

    gap: 22px;
}

.avatar-ring-container {
    width: 92px;
    height: 92px;

    flex-shrink: 0;

    padding: 3px;

    border-radius: 50%;

    background: var(--insta-gradient);

    position: relative;

    animation: profileRing 6s linear infinite;
}

.avatar-ring-container::before {
    content: "";

    position: absolute;
    inset: -5px;

    border-radius: inherit;

    border: 1px solid rgba(255,255,255,.12);

    animation: ringRotate 6s linear infinite reverse;
}

.avatar-ring-container::after {
    content: "";

    position: absolute;
    inset: -9px;

    border-radius: inherit;

    border: 1px dashed rgba(255,255,255,.08);

    animation: ringRotate 12s linear infinite;
}

@keyframes profileRing {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

.premium-avatar-node {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #080808;

    border: 3px solid #000;

    font-size: 25px;
    font-weight: 800;

    overflow: hidden;
}

.premium-avatar-node img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.metrics-row-strip {
    flex: 1;

    display: grid;
    grid-template-columns: repeat(3,1fr);

    gap: 8px;
}

.stat-box {
    padding: 11px 5px;

    text-align: center;

    border-radius: 15px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.055);

    transition:
        transform .3s var(--spring),
        background .25s ease;
}

.stat-box:hover {
    transform: translateY(-3px);

    background: rgba(255,255,255,.065);
}

.stat-box strong {
    display: block;

    font-size: 16px;
}

.stat-box span {
    display: block;

    margin-top: 3px;

    color: #85858d;

    font-size: 10px;
}

.profile-bio-summary {
    padding: 9px 17px 15px;

    font-size: 12.5px;

    line-height: 1.5;
}

.profile-bio-summary h3 {
    margin-bottom: 3px;

    font-size: 14px;
}

.profile-bio-summary a {
    display: block;

    margin-top: 4px;

    color: #b7ddff;

    text-decoration: none;
}

.profile-action-buttons {
    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    width: 100% !important;

    padding: 0 17px 15px !important;
}

.profile-action-buttons button,
.profile-action-buttons .edit-profile-btn,
.profile-action-buttons #open-theme-modal-btn {
    flex: 1 1 0 !important;

    min-width: 0 !important;

    height: 37px !important;

    padding: 0 7px !important;

    margin: 0 !important;

    border-radius: 12px !important;

    font-size: 10.5px !important;

    white-space: nowrap !important;

    border: 1px solid rgba(255,255,255,.10) !important;

    background: rgba(255,255,255,.055) !important;

    color: white !important;

    transition:
        transform .3s var(--spring),
        background .25s ease;
}

.profile-action-buttons button:hover {
    background: rgba(255,255,255,.10) !important;
    transform: translateY(-2px);
}

.edit-profile-btn {
    font-weight: 700;
}

.profile-view-tab-strip {
    height: 49px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);

    background: rgba(255,255,255,.025);

    font-size: 18px;
}

#profile-posts-grid,
.posts-grid-container {
    display: grid !important;

    grid-template-columns: repeat(3,1fr) !important;

    gap: 2px !important;

    width: 100% !important;
}

.grid-post-item {
    width: 100% !important;

    aspect-ratio: 1 / 1 !important;

    position: relative;

    overflow: hidden;

    background: #111;
}

.grid-post-item img,
.grid-post-item video {
    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover !important;

    transition:
        transform .6s var(--ease),
        filter .3s ease;
}

.grid-post-item:hover img,
.grid-post-item:hover video {
    transform: scale(1.06);
    filter: brightness(1.08);
}


/* ==========================================================================
   PROFILE THEMES
   ========================================================================== */

#profile-screen.theme-cyberpunk {
    background:
        radial-gradient(circle at 50% 0%, #002b49, transparent 40%),
        #030308;
}

#profile-screen.theme-cyberpunk .avatar-ring-container {
    box-shadow: 0 0 30px rgba(0,242,254,.3);
}

#profile-screen.theme-cyberpunk #profile-top-username {
    color: #00f2fe;
}

#profile-screen.theme-gold {
    background:
        radial-gradient(circle at 50% 0%, #2a1f00, transparent 40%),
        #030308;
}

#profile-screen.theme-gold .avatar-ring-container {
    box-shadow: 0 0 30px rgba(255,215,0,.22);
}

#profile-screen.theme-gold #profile-top-username {
    background: linear-gradient(
        135deg,
        #bf953f,
        #fcf6ba,
        #b38728
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#profile-screen.theme-emerald {
    background:
        radial-gradient(circle at 50% 0%, #003829, transparent 40%),
        #030308;
}

#profile-screen.theme-emerald .avatar-ring-container {
    box-shadow: 0 0 30px rgba(56,239,125,.22);
}

#profile-screen.theme-emerald #profile-top-username {
    color: #38ef7d;
}

.theme-card.active {
    border-color: var(--insta-blue) !important;

    box-shadow:
        0 0 25px rgba(0,149,246,.18) !important;
}


/* ==========================================================================
   USERNAME + BADGE
   ========================================================================== */

.username-badge-wrapper {
    display: inline-flex !important;

    align-items: center !important;

    gap: 5px !important;
}

#profile-top-username {
    margin: 0 !important;

    font-size: 16px !important;

    font-weight: 800 !important;

    line-height: 1 !important;
}

#user-badge-container {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    font-size: 14px !important;
}


/* ==========================================================================
   FLOATING NAVIGATION — NEW GLASS CAPSULE
   ========================================================================== */

.app-navigation-bar {
    position: absolute;

    left: 5%;

    bottom: 19px;

    width: 90%;
    height: 57px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 16px;

    z-index: 9999;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.035)
        );

    border: 1px solid rgba(255,255,255,.13);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 18px 45px rgba(0,0,0,.55);

    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px);

    overflow: visible;
}

.app-navigation-bar::before {
    content: "";

    position: absolute;

    left: 15%;
    right: 15%;
    top: 0;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
}

.nav-tab {
    width: 37px;
    height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #85858c;

    font-size: 19px;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .3s var(--spring),
        background .25s ease;
}

.nav-tab:hover {
    color: white;

    background: rgba(255,255,255,.06);

    transform: translateY(-2px);
}

.nav-tab.active {
    color: white;

    background: rgba(255,255,255,.09);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08);
}

.main-action-center {
    position: relative;
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #282828;
    border-radius: 50%;

    overflow: hidden;

    background: #212121;

    box-shadow:
        -5px -5px 5px rgba(255, 255, 255, 0.1),
        10px 10px 10px rgba(0, 0, 0, 0.4),
        inset -5px -5px 5px rgba(255, 255, 255, 0.2),
        inset 10px 10px 10px rgba(0, 0, 0, 0.4);
}


/* COLOUR INSIDE THE CIRCLE */
.main-action-center::after {
    content: "";

    position: absolute;
    inset: 3px;

    border-radius: 50%;

    background: conic-gradient(
        from 0deg,
        #ff7402 0deg,
        #ffe700 45deg,

        #ff1493 90deg,
        #ff4fd8 135deg,

        #7c3aed 180deg,
        #4f46e5 225deg,

        #00c6ff 270deg,
        #00f5d4 315deg,

        #ff7402 360deg
    );

    /* little glow */
    filter: blur(2px);

    opacity: 1;

    animation: gradientCircle 3s linear infinite;

    z-index: 0;
}

@keyframes gradientCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* DARK CENTER */
.main-action-center::before {
    content: "";

    position: absolute;
    inset: 10px;

    background: #181818;

    border-radius: 50%;

    border: 2px solid #292929;

    z-index: 2;

    box-shadow:
        inset -2px -2px 5px rgba(255,255,255,.18),
        inset 3px 3px 5px rgba(0,0,0,.5);
}


/* PLUS */
.main-action-center .action-gradient-glow {
    position: relative;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: transparent;

    color: white;

    font-size: 17px;

    z-index: 3;

    box-shadow:
    0 0 8px rgba(255, 116, 2, .35),
    0 0 16px rgba(255, 20, 147, .20),
    -5px -5px 5px rgba(255,255,255,.1),
    10px 10px 10px rgba(0,0,0,.4),
    inset -5px -5px 5px rgba(255,255,255,.2),
    inset 10px 10px 10px rgba(0,0,0,.4);
}


/* ICON */
.main-action-center .action-gradient-glow i {
    position: relative;
    z-index: 4;
}


/* ROTATE */
@keyframes plusColorRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.action-gradient-glow {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    background: var(--insta-gradient);

    color: white;

    font-size: 17px;

    border: 0px solid #000;

    box-shadow:
        0 7px 25px rgba(214,41,118,.3);

    transition:
        transform .35s var(--spring),
        box-shadow .3s ease;
}

.action-gradient-glow:hover {
    transform: scale(1.07) rotate(2deg);

    box-shadow:
        0 10px 32px rgba(214,41,118,.4);
}

.action-gradient-glow:active {
    transform: scale(.9);
}


/* ==========================================================================
   DRAWERS
   ========================================================================== */

.component-drawer {
    position: absolute;

    top: 0;
    right: -100%;

    width: 100%;
    height: 100%;

    z-index: 9999;

    display: flex;
    flex-direction: column;

    pointer-events: none;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.02)
        );

    backdrop-filter: blur(30px);

    transition:
        right .5s var(--ease);
}

.component-drawer.open {
    right: 0;

    pointer-events: auto;
}

.component-drawer.drawer-bottom {
    top: auto;

    right: 0;
    bottom: -100%;

    width: 100%;
    height: 72%;

    border-radius: 27px 27px 0 0;

    transition:
        bottom .5s var(--ease);
}

.component-drawer.drawer-bottom.open {
    bottom: 0;
}

.drawer-header {
    height: 61px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    border-bottom: 1px solid var(--border-dim);

    background: rgba(0,0,0,.35);
}

.drawer-header span {
    font-size: 15px;
    font-weight: 800;
}

.drawer-header i {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.06);

    cursor: pointer;

    transition: transform .3s var(--spring);
}

.drawer-header i:active {
    transform: scale(.8);
}

.drawer-body {
    flex: 1;

    overflow-y: auto;

    padding: 12px 14px;

    scrollbar-width: none;
}

.drawer-body::-webkit-scrollbar {
    display: none;
}

.drawer-item-row {
    min-height: 62px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px;

    margin-bottom: 6px;

    border-radius: 16px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.045);

    transition:
        transform .3s var(--spring),
        background .25s ease;
}

.drawer-item-row:hover {
    background: rgba(255,255,255,.065);

    transform: translateX(3px);
}

.mini-avatar {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(#111,#111) padding-box,
        var(--insta-gradient) border-box;

    border: 2px solid transparent;

    font-size: 11px;
    font-weight: 700;
}

.item-text {
    font-size: 12px;
}

.item-text strong {
    color: white !important;

    display: block;

    margin-bottom: 3px;
}


/* ==========================================================================
   MESSAGES — COMPLETELY NEW
   ========================================================================== */

.chat-inbox-layout {
    width: 100%;
    height: 100%;

    display: flex;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(255,255,255,.035),
            transparent 30%
        );
}


/* CONTACT RAIL */

#chat-threads-sidebar {
    width: 78px;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    padding: 14px 7px;

    overflow-y: auto;

    border-right: 1px solid rgba(255,255,255,.065);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.012)
        );

    backdrop-filter: blur(25px);

    scrollbar-width: none;
}

#chat-threads-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-user-row {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 5px;

    position: relative;

    cursor: pointer;

    transition: transform .3s var(--spring);
}

.sidebar-user-row:hover {
    transform: translateY(-3px);
}

.sidebar-user-row .chat-avatar {
    width: 51px;
    height: 51px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    background:
        linear-gradient(#111,#111) padding-box,
        var(--insta-gradient) border-box;

    border: 2px solid transparent;

    font-size: 13px;
    font-weight: 700;
}

.sidebar-user-row .chat-avatar::after {
    content: "";

    position: absolute;
    inset: -4px;

    border-radius: inherit;

    border: 1px solid rgba(255,255,255,.10);

    animation: ringRotate 6s linear infinite;
}

.sidebar-user-row .chat-meta-preview {
    width: 100%;

    display: block;

    overflow: hidden;

    text-align: center;

    color: #88888f;

    font-size: 8px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ACTIVE CHAT */

.sidebar-user-row.active .chat-avatar {
    box-shadow:
        0 0 0 3px rgba(255,255,255,.035),
        0 0 22px rgba(214,41,118,.18);
}


/* CHAT VIEW */

.chat-viewpane-active {
    flex: 1;

    min-width: 0;

    height: 100%;

    display: flex;
    flex-direction: column;

    position: relative;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.04),
            transparent 35%
        ),
        #000;
}


/* MESSAGE HEADER */

.messaging-header {
    min-height: 62px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    border-bottom: 1px solid rgba(255,255,255,.065);

    background: rgba(0,0,0,.55);

    backdrop-filter: blur(25px);

    z-index: 5;
}

.messaging-header h3 {
    font-size: 14px;

    font-weight: 800;
}

.messaging-header::after {
    content: "online";

    margin-left: 8px;

    padding: 3px 7px;

    border-radius: 20px;

    background: rgba(56,239,125,.08);

    color: #72e69a;

    font-size: 8px;

    letter-spacing: .2px;
}


/* MESSAGES */

.messages-display {
    flex: 1;

    min-height: 0;

    overflow-y: auto;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 18px 14px 125px;

    scrollbar-width: none;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255,255,255,.012),
            transparent 50%
        );
}

.messages-display::-webkit-scrollbar {
    display: none;
}

.bubble {
    position: relative;

    max-width: 78%;

    padding: 10px 14px;

    border-radius: 19px;

    font-size: 12.5px;

    line-height: 1.45;

    animation: messageAppear .4s var(--ease);
}

@keyframes messageAppear {

    from {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bubble.sender {
    align-self: flex-end;

    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(214,41,118,.85),
            rgba(79,91,213,.82)
        );

    border: 1px solid rgba(255,255,255,.14);

    border-bottom-right-radius: 6px;

    box-shadow:
        0 8px 22px rgba(214,41,118,.12);
}

.bubble.recipient {
    align-self: flex-start;

    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.035)
        );

    border: 1px solid rgba(255,255,255,.09);

    backdrop-filter: blur(18px);

    border-bottom-left-radius: 6px;
}

.msg-time {
    margin-top: 5px;

    color: rgba(255,255,255,.48);

    font-size: 8px;

    text-align: right;
}

.messages-display::after {
    content: "";

    display: block;

    height: 20px;

    flex-shrink: 0;
}


/* MESSAGE INPUT */

.messaging-input-row {
    position: absolute;

    left: 8px;
    right: 8px;
    bottom: 77px;

    height: 57px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 6px 7px;

    z-index: 20;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.035)
        );

    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        0 18px 45px rgba(0,0,0,.45);

    backdrop-filter: blur(28px);
}

.messaging-input-row input {
    flex: 1;

    min-width: 0;

    height: 42px;

    padding: 0 14px;

    border-radius: 15px;

    outline: none;

    border: 1px solid rgba(255,255,255,.065);

    background: rgba(255,255,255,.045);

    color: white;

    font-size: 12.5px;

    transition:
        background .25s ease,
        border .25s ease;
}

.messaging-input-row input:focus {
    background: rgba(255,255,255,.075);

    border-color: rgba(255,255,255,.14);
}

.messaging-input-row button {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    border: none;

    background: var(--insta-gradient);

    color: white;

    font-size: 15px;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(214,41,118,.22);

    transition:
        transform .3s var(--spring);
}

.messaging-input-row button:active {
    transform: scale(.84) rotate(-5deg);
}


/* ==========================================================================
   NOTIFICATIONS — COMPLETELY NEW
   ========================================================================== */

#notifications-screen,
.notifications-screen {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(214,41,118,.035),
            transparent 35%
        ),
        #000;
}


/* Generic notification rows */

.notification-item,
.notification-row,
.notification-card {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 7px 12px;

    padding: 12px;

    min-height: 66px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.025)
        );

    border: 1px solid rgba(255,255,255,.075);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045);

    backdrop-filter: blur(22px);

    transition:
        transform .3s var(--spring),
        background .25s ease,
        border-color .25s ease;
}

.notification-item:hover,
.notification-row:hover,
.notification-card:hover {
    transform: translateX(3px);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.085),
            rgba(255,255,255,.035)
        );

    border-color: rgba(255,255,255,.12);
}


/* Notification avatar */

.notification-item img,
.notification-row img,
.notification-card img {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

    padding: 2px;

    background:
        linear-gradient(#111,#111) padding-box,
        var(--insta-gradient) border-box;

    border: 2px solid transparent;
}


/* Notification text */

.notification-item strong,
.notification-row strong,
.notification-card strong {
    font-size: 12px;
    font-weight: 700;
}

.notification-item span,
.notification-row span,
.notification-card span {
    color: #92929a;

    font-size: 11px;

    line-height: 1.4;
}

.notification-item small,
.notification-row small,
.notification-card small {
    display: block;

    margin-top: 3px;

    color: #5f5f67;

    font-size: 8px;
}


/* unread */

.notification-item.unread,
.notification-row.unread,
.notification-card.unread {
    border-color: rgba(0,149,246,.18);
}

.notification-item.unread::before,
.notification-row.unread::before,
.notification-card.unread::before {
    content: "";

    position: absolute;

    left: 5px;
    top: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--insta-blue);

    box-shadow:
        0 0 12px rgba(0,149,246,.65);
}


/* ==========================================================================
   COMMENTS MODAL
   ========================================================================== */

.custom-modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: flex-end;
    justify-content: center;

    padding: 0;

    background: rgba(0,0,0,.62);

    backdrop-filter: blur(14px);
}

.custom-modal-card {
    width: 100%;
    max-width: 420px;

    height: min(78vh, 620px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 28px 28px 0 0;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.085),
            rgba(255,255,255,.025)
        );

    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        0 -20px 70px rgba(0,0,0,.55);

    backdrop-filter: blur(30px);

    animation: modalSheet .45s var(--ease);
}

@keyframes modalSheet {

    from {
        transform: translateY(100%);
        opacity: .6;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-modal-card::before {
    content: "";

    width: 38px;
    height: 4px;

    flex-shrink: 0;

    align-self: center;

    margin: 9px 0 2px;

    border-radius: 10px;

    background: rgba(255,255,255,.20);
}

.custom-modal-header {
    min-height: 53px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    border-bottom: 1px solid rgba(255,255,255,.065);
}

.custom-modal-header h3 {
    font-size: 15px;
    font-weight: 800;
}

.modal-close-icon {
    width: 33px;
    height: 33px;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.06);

    color: #aaa;

    cursor: pointer;

    transition:
        transform .3s var(--spring);
}

.modal-close-icon:active {
    transform: scale(.8);
}

.custom-modal-body {
    flex: 1;

    overflow-y: auto;

    padding: 13px;

    display: flex;
    flex-direction: column;

    gap: 8px;

    scrollbar-width: none;
}

.custom-modal-body::-webkit-scrollbar {
    display: none;
}

.comment-item {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 10px;

    border-radius: 15px;

    background: rgba(255,255,255,.025);

    font-size: 12.5px;

    line-height: 1.45;
}

.comment-item strong {
    color: white;

    font-weight: 700;
}

.comment-item span {
    color: #d5d5d9;
}

.custom-modal-footer {
    min-height: 63px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px 12px;

    border-top: 1px solid rgba(255,255,255,.065);

    background: rgba(0,0,0,.4);

    backdrop-filter: blur(20px);
}

.custom-modal-footer input {
    flex: 1;

    min-width: 0;

    height: 42px;

    padding: 0 13px;

    border-radius: 15px;

    border: 1px solid rgba(255,255,255,.07);

    outline: none;

    background: rgba(255,255,255,.045);

    color: white;

    font-size: 12px;
}

.custom-modal-footer button {
    border: none;

    background: transparent;

    color: var(--insta-blue);

    font-weight: 700;

    font-size: 12px;

    cursor: pointer;
}


/* ==========================================================================
   REELS — FULL SCREEN
   ========================================================================== */

#reels-screen {
    position: fixed;

    inset: 0;

    z-index: 1000;

    width: 100vw;
    height: 100vh;

    background: #000;
}

.reels-container {
    width: 100%;
    height: 100%;

    overflow-y: scroll;

    scroll-snap-type: y mandatory;

    scrollbar-width: none;
}

.reels-container::-webkit-scrollbar {
    display: none;
}

.reel-card {
    width: 100%;
    height: 100vh;

    position: relative;

    scroll-snap-align: start;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #000;
}

.reel-media-content {
    width: 100%;
    height: 100%;

    max-width: 100vw;
    max-height: 100vh;

    object-fit: contain;

    border: none;
}


/* REEL GLASS ACTIONS */

.reel-actions-overlay {
    position: absolute;

    right: 13px;
    bottom: 95px;

    display: flex;
    flex-direction: column;

    gap: 13px;

    align-items: center;

    z-index: 10;
}

.reel-action-btn {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 2px;

    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, 0.11);

    background: rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(18px);

    color: white;

    font-size: 22px;

    cursor: pointer;

    filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));

    transition:
        transform .3s var(--spring),
        background .25s ease;
}

.reel-action-btn:hover {
    transform: translateY(-3px);

    background: rgba(255,255,255,.09);
}

.reel-action-btn:active {
    transform: scale(.86);
}

.reel-action-btn span {
    font-size: 8px;
    font-weight: 700;
}

.reel-like-btn i.liked {
    color: var(--insta-danger);

    transform: scale(1.15);

    filter:
        drop-shadow(0 0 10px rgba(255,48,64,.35));
}

.reel-like-btn i {
    transition:
        transform .25s var(--spring),
        color .2s ease;
}


/* REEL USER INFO */

.reel-user-info {
    position: absolute;

    left: 15px;
    bottom: 25px;

    z-index: 10;

    max-width: 72%;

    color: white;
}

.reel-user-header {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 9px;
}

.reel-user-avatar {
    width: 39px;
    height: 39px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid white;

    box-shadow:
        0 4px 15px rgba(0,0,0,.4);
}

.reel-username {
    font-size: 14px;

    font-weight: 800;
}

.reel-caption {
    font-size: 12.5px;

    line-height: 1.45;

    color: #e6e6e8;

    text-shadow:
        0 2px 8px rgba(0,0,0,.7);
}


/* ==========================================================================
   REEL MUSIC DISC
   ========================================================================== */

.reel-music-row {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 11px;
}

.reel-music-disc {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    padding: 3px;

    border-radius: 50%;

    background: #111;

    border: 2px solid rgba(255,255,255,.75);

    animation: reelMusicSpin 5s linear infinite;
}

.reel-music-disc-inner {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    overflow: hidden;

    background: #000;
}

.reel-music-disc-inner img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.reel-music-text {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 5px;

    color: white;
}

.reel-music-note {
    font-size: 11px;
}

.reel-song-name {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 12px;
}

@keyframes reelMusicSpin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================================
   SMALL SCREEN OPTIMIZATION
   ========================================================================== */

@media (max-width: 380px) {

    .app-navigation-bar {
        left: 3%;
        width: 94%;
        padding: 0 10px;
    }

    .nav-tab {
        width: 34px;
    }

    .profile-meta-block {
        gap: 16px;
        padding-left: 13px;
        padding-right: 13px;
    }

    .premium-avatar-node,
    .avatar-ring-container {
        width: 82px;
        height: 82px;
    }

    #chat-threads-sidebar {
        width: 69px;
    }

    .messaging-input-row {
        left: 5px;
        right: 5px;
    }
}


/* ==========================================================================
   ACCESSIBILITY / MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}


/* ==========================================================================
   FINAL MICRO POLISH
   ========================================================================== */

button,
input,
textarea {
    font-family: inherit;
}

button {
    -webkit-user-select: none;
    user-select: none;
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(214,41,118,.35);
    color: white;
}

input::placeholder,
textarea::placeholder {
    color: #5f5f67;
}

a {
    color: inherit;
}

.hidden {
    display: none !important;
}

.media-drop-zone {
    width: 100%;
    height: 170px;

    border: 1px dashed rgba(255,255,255,0.16);

    border-radius: 22px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.015)
        );

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s var(--ease-premium);
}

.media-drop-zone:hover {
    border-color: rgba(255,255,255,0.3);

    transform: translateY(-2px);
}

.drop-zone-prompt {
    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;
}
.icon-glow {
    width: 52px;
    height: 52px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.11),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(255,255,255,0.1);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 11px;

    font-size: 20px;

    color: #fff;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.drop-zone-prompt span {
    font-size: 13px;
    font-weight: 700;
}

.drop-zone-prompt p {
    font-size: 11px;

    color: var(--text-muted);

    margin-top: 5px;
}
/* =========================================================
   SASTAGRAM — NAV BAR COLOR REFLECTION BOOST
   ========================================================= */

.app-navigation-bar {
    background: rgba(15, 15, 18, 0.48) !important;

    /* subtle glass color reflection */
    background-image:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 255, 255, 0.16),
            transparent 55%
        ),
        radial-gradient(
            circle at 15% 100%,
            rgba(79, 91, 213, 0),
            transparent 50%
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.14) !important;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

    backdrop-filter: blur(22px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
}

/* Make active icon reflect the Instagram gradient */
.nav-tab.active {
    background: rgba(255, 255, 255, 1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 0 6px rgba(214, 41, 118, 0.28));
}

/* Center + button gets a little more life */
.action-gradient-glow {
    box-shadow:
        0 0 18px rgba(214, 41, 118, 0),
        0 4px 18px rgba(0, 0, 0, 0.4) !important;
}
/* ==========================================================================
   END — SASTAGRAM V2 ULTRA GLASS
   ========================================================================== */
   /* =========================================================
   SASTAGRAM — REMOVE CHEAP BUTTON / STAT BOX BACKGROUNDS
   ========================================================= */

/* Reel comment / share / like buttons */
.reel-action-btn,
.reel-actions-overlay button {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Reel action icons */
.reel-action-btn i {
    background: transparent !important;
    box-shadow: none !important;
}

/* Profile followers / following / posts */
.metrics-row-strip,
.stat-box,
.stat-box strong,
.stat-box span {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove any possible glass/card styling around individual stats */
.stat-box {
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Keep profile numbers clean */
.stat-box strong {
    display: block;
    color: #fff;
}

/* Keep labels subtle */
.stat-box span {
    color: rgba(255,255,255,0.62);
}
/* =========================================================
   SASTAGRAM — STRICT VIEWPORT FIT
   ========================================================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

body {
    min-height: 100dvh;
    max-height: 100dvh;
}

/* App must never exceed the screen */
.phone-container {
    width: 100% !important;
    max-width: 412px;
    height: 100dvh !important;
    max-height: 100dvh !important;

    margin: 0 auto;
    overflow: hidden !important;

    position: relative;
}

/* Prevent accidental horizontal overflow */
.phone-container,
.viewport-canvas,
.app-screen,
.screen-content {
    max-width: 100%;
    overflow-x: hidden !important;
}

/* Screens stay inside the app */
.app-screen {
    width: 100% !important;
    height: 100% !important;
}

/* Remove viewport-width elements that can escape the phone */
#reels-screen {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

/* Images/videos can never push the layout outside */
img,
video,
canvas,
iframe {
    max-width: 100%;
}
