:root {
    color-scheme: dark;
    --bg: #070e16;
    --surface: #0d1a28;
    --surface2: #122234;
    --hover: #172b40;
    --border: #203247;
    --text: #eef5ff;
    --muted: #93a8c1;
    --blue: #1599ff;
    --blue2: #0876db;
    --header-h: 66px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    /*background: radial-gradient(ellipse at 50% -25%, #12283d 0%, var(--bg) 58%);*/
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 Inter, Arial, sans-serif
}

button,
input,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px
}

.gw-header {
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0b1826f5;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px)
}

.gw-header-inner {
    max-width: 1520px;
    height: 100%;
    margin: auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px
}

.gw-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 275px
}

.gw-brand-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: url(/assets/geoweb/logo.png);
    background-size: cover;
    color: #062034;
}

.gw-brand strong {
    display: block;
    font-size: 25px;
    letter-spacing: -1.2px;
    line-height: 1.15
}

.gw-brand strong span {
    color: var(--blue)
}

.gw-brand small {
    display: block;
    font-size: 10px;
    color: var(--muted)
}

.gw-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(540px, 100%);
    height: 40px;
    margin: auto;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: var(--surface2);
    border-radius: 10px;
    color: var(--muted)
}

.gw-search input {
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    min-width: 0;
    flex: 1;
    font-size: 13px
}

.gw-search kbd {
    border: 1px solid #35485d;
    border-radius: 5px;
    padding: 0 7px;
    font-size: 12px
}

.gw-header-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto
}

.gw-icon-button {
    width: 36px;
    height: 36px;
    position: relative;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: #dbe8f7;
    font-size: 19px;
    border-radius: 9px
}

.gw-icon-button:hover {
    background: var(--hover)
}

.gw-count {
    position: absolute;
    right: 0;
    top: -2px;
    background: #f52769;
    border-radius: 99px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff
}

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    var(--muted);
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color:    var(--muted);
   opacity:  1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    var(--muted);
   opacity:  1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color:    var(--muted);
}
::-ms-input-placeholder { /* Microsoft Edge */
   color:    var(--muted);
}

::placeholder { /* Most modern browsers support this now. */
   color:    var(--muted);
}

.gw-primary {
    border: 1px solid var(--blue);
    background: transparent;
    color: #39adff;
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12px;
    min-width: 80px;
    font-weight: 700;
}

.gw-primary:hover {
    filter: brightness(1.12)
}

.gw-header-post {
    min-width: 110px
}

.gw-sidebar-toggle {
    display: none
}

.gw-shell {
    max-width: 1520px;
    margin: auto;
    padding: 14px 22px 32px;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 640px) minmax(280px, 340px);
    gap: 24px;
    justify-content: center;
    align-items: start
}

.gw-left {
    position: sticky;
    top: calc(var(--header-h) + 14px);
    max-height: calc(100vh - var(--header-h) - 26px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #29445c transparent;
    padding: 0 8px 10px 0
}

.gw-main-nav {
    display: grid;
    gap: 3px
}

.gw-nav-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 16px;
    border-radius: 9px;
    font-weight: 600;
    min-height: 43px
}

.gw-nav-link i {
    font-size: 20px;
    width: 25px;
    text-align: center
}

.gw-nav-link:hover,
.gw-nav-link.gw-active {
    background: #102d49;
    color: #42b1ff
}

.gw-nav-link.gw-active {
    box-shadow: inset 3px 0 var(--blue)
}

.gw-nav-count {
    margin-left: auto;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    border-radius: 30px;
    padding: 1px 7px
}

.gw-left-section {
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding-top: 12px
}

.gw-section-heading {
    text-transform: uppercase;
    letter-spacing: .045em;
    font-size: 11px;
    color: #a8c0dd;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px 8px
}

.gw-community {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600
}

.gw-community:hover,
.gw-browse:hover {
    background: var(--hover)
}

.gw-community small,
.gw-sidebar-profile small,
.gw-user-info small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400
}

.gw-community-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #ffffff36;
    border-radius: 7px;
    font-size: 17px
}

.gw-yellow {
    background: #876111;
    color: #ffe456
}

.gw-orange {
    background: #70330c;
    color: #ffae39
}

.gw-red {
    background: #52101c;
    color: #ff4568
}

.gw-purple {
    background: #48136b;
    color: #d876ff
}

.gw-green {
    background: #0e5528;
    color: #52e67c
}

.gw-browse {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--muted);
    padding: 9px 12px;
    font-size: 12px
}

.gw-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px
}

.gw-shortcuts a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    min-height: 68px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 9px;
    text-align: center
}

.gw-shortcuts i {
    font-size: 18px;
    color: #a9c8ec
}

.gw-shortcuts a:hover {
    background: var(--hover)
}

.gw-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
    padding: 14px 4px
}

.gw-sidebar-profile>span:nth-child(2) {
    flex: 1
}

.gw-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-weight: 800;
    font-size: 20px;
}

.gw-my-avatar {
    color: #101822;
}

.gw-my-avatar img {
    width: 100%;
    height: 100%;
}

.gw-avatar-gold {
    background: linear-gradient(135deg, #ffdb40, #ee8100);
    color: #181e2b
}

.gw-avatar-purple {
    background: linear-gradient(135deg, #ec2fff, #4413a1);
    color: white
}

.gw-avatar-blue {
    background: linear-gradient(135deg, #16d8fa, #1550d8)
}

.gw-avatar-pink {
    background: linear-gradient(135deg, #fb3997, #7026a3)
}

.gw-avatar-white {
    background: #f1f5fa;
    color: #253248
}

.gw-avatar-green {
    background: linear-gradient(135deg, #2af579, #076c41)
}

.gw-feed {
    min-width: 0
}

.gw-composer,
.gw-post,
.gw-panel {
    background: linear-gradient(125deg, #0e1b29, #0b1724);
    border: 1px solid var(--border);
    border-radius: 12px
}

.gw-composer {
    padding: 20px
}

.gw-compose-main {
    display: flex;
    align-items: flex-start;
    gap: 13px
}

.gw-compose-main textarea {
    resize: vertical;
    min-height: 54px;
    max-height: 220px;
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface2);
    border-radius: 10px;
    color: var(--text);
    padding: 14px;
    outline: 0
}

.gw-compose-main textarea::placeholder {
    color: var(--muted)
}

.gw-compose-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 0 54px;
    gap: 10px
}

.gw-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.gw-media-actions button {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px
}

.gw-media-actions button:hover {
    background: var(--hover)
}

.gw-media-actions i {
    font-size: 17px
}

.gw-violet-text {
    color: #735aff
}

.gw-blue-text {
    color: var(--blue)
}

.gw-green-text {
    color: #25d6b7
}

.gw-compose-notice {
    margin: 8px 0 0 54px;
    color: var(--muted);
    font-size: 12px
}

.gw-feed-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 8px 0 0;
}

.gw-feed-tabs button {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-weight: 600;
    padding: 15px 5px;
    position: relative
}

.gw-feed-tabs button.gw-selected {
    color: #35aeff
}

.gw-feed-tabs button.gw-selected:after {
    content: "";
    height: 3px;
    width: 72px;
    max-width: 90%;
    background: var(--blue);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px
}

.gw-posts {
    display: grid;
    gap: 12px
}

.gw-post {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px
}

.gw-post-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 23px
}

.gw-post-body {
    flex: 1;
    min-width: 0
}

.gw-post-head {
    display: flex;
    justify-content: space-between;
    gap: 10px
}

.gw-post-author {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px
}

.gw-post-author strong {
    font-size: 13px
}

.gw-post-author span {
    color: var(--muted);
    font-size: 12px
}

.gw-verified {
    color: var(--blue)
}

.gw-ellipsis {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 2px 6px
}

.gw-post-text {
    font-size: 14px;
    color: #c8d8ed;
    overflow-wrap: anywhere
}

.gw-post-text p {
    margin: 6px 0 12px
}

.gw-dashle-grid {
    display: grid;
    grid-template-columns: repeat(5, 15px);
    grid-template-rows: repeat(3, 15px);
    gap: 4px;
    margin: 12px 0 14px
}

.gw-dashle-grid span {
    background: #40435b;
    border-radius: 2px
}

.gw-dashle-grid .gold {
    background: linear-gradient(#ffce64, #ff8a31)
}

.gw-dashle-grid .green {
    background: linear-gradient(#57f4b0, #14b782)
}

.gw-poll {
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12px
}

.gw-poll strong {
    font-weight: 600
}

.gw-poll strong i {
    margin-right: 5px
}

.gw-poll small {
    display: block;
    color: var(--muted);
    margin: 3px 0 8px
}

.gw-secondary {
    background: #1d3146;
    color: #cbdcf0;
    border: 1px solid #30475f;
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px
}

.gw-poll-results {
    margin-top: 10px
}

.gw-poll-results>div:not(.gw-poll-bar) {
    display: flex;
    justify-content: space-between
}

.gw-poll-bar {
    height: 7px;
    border-radius: 4px;
    background: #223448;
    overflow: hidden;
    margin: 4px 0 10px
}

.gw-poll-bar span {
    display: block;
    height: 100%;
    background: var(--blue)
}

.gw-post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    gap: 8px
}

.gw-post-actions button {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    padding: 4px 0
}

.gw-post-actions button:hover {
    color: var(--blue)
}

.gw-post-actions .gw-like {
    color: #f13575
}

.gw-post-actions .gw-like[aria-pressed=true] {
    color: #ff3c7b
}

.gw-post-actions .gw-save[aria-pressed=true] {
    color: var(--blue)
}

.gw-level-banner {
    height: 170px;
    border: 1px solid #1a5c90;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #056d9b 0%, #002a59 35%, #020d24 75%)
}

.gw-level-banner:before,
.gw-level-banner:after {
    content: "";
    position: absolute;
    width: 120%;
    height: 70px;
    bottom: -38px;
    left: -10%;
    transform: rotate(-8deg);
    background: repeating-linear-gradient(90deg, transparent 0 38px, #00d8ff 39px 42px, transparent 43px 80px);
    filter: drop-shadow(0 0 10px #00c9ff)
}

.gw-level-banner:after {
    transform: rotate(9deg);
    bottom: -55px
}

.gw-level-banner span {
    z-index: 1;
    color: #adf8ff;
    font-size: 75px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 5px;
    text-shadow: 0 0 12px #00dcff, 0 0 38px #00baff
}

.gw-level-banner i {
    position: absolute;
    right: 24px;
    top: 20px;
    color: #26e5ff;
    opacity: .7;
    font-size: 26px
}

.gw-right {
    display: grid;
    gap: 12px;
    position: sticky;
    top: calc(var(--header-h) + 14px);
    max-height: calc(100vh - var(--header-h) - 25px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #29445c transparent;
    padding: 0 8px 10px 0
}

.gw-panel {
    padding: 20px
}

.gw-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px
}

.gw-panel-title h2 {
    font-size: 15px;
    margin: 0;
    letter-spacing: -.3px
}

.gw-panel-title a {
    color: var(--blue);
    font-size: 11px;
    white-space: nowrap
}

.gw-trend {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--border)
}

.gw-trend:last-child,
.gw-user:last-child,
.gw-level:last-child {
    border-bottom: 0
}

.gw-trend>span:first-child {
    color: var(--muted);
    width: 17px;
    text-align: center
}

.gw-trend>div {
    flex: 1;
    min-width: 0
}

.gw-trend strong,
.gw-user strong,
.gw-level strong {
    display: block;
    font-size: 12px;
    font-weight: 600
}

.gw-trend small,
.gw-level small {
    display: block;
    color: var(--muted);
    font-size: 11px
}

.gw-trend-art {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid #ffffff24;
    font-size: 22px
}

.gw-art-purple {
    background: radial-gradient(#a02aff, #350051);
    color: #f3a3ff
}

.gw-art-blue {
    background: radial-gradient(#008eff, #002659);
    color: #b4f4ff
}

.gw-art-green {
    background: radial-gradient(#18bd59, #093d2b);
    color: #b0ffae
}

.gw-art-orange {
    background: radial-gradient(#ff920a, #5a1c00);
    color: #ffe38b
}

.gw-art-red {
    background: radial-gradient(#e42d28, #390800);
    color: #ffc0aa
}

.gw-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0
}

.gw-user .gw-avatar {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    font-size: 16px
}

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

.gw-user-info strong,
.gw-user-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.gw-follow {
    border: 1px solid var(--blue);
    background: transparent;
    color: #39adff;
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12px;
    min-width: 80px;
    font-weight: 700;
}

.gw-follow:hover,
.gw-follow.gw-following {
    background: #103452
}

.gw-level {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border)
}

.gw-level-thumb {
    flex: 0 0 92px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    font-size: 28px
}

.gw-level small b {
    color: #ffc52e
}

.gw-mobile-nav {
    display: none
}

body.gw-light {
    color-scheme: light;
    --bg: #f1f5f9;
    --surface: #fff;
    --surface2: #eef4fa;
    --hover: #e7f0fa;
    --border: #d6e2ed;
    --text: #162437;
    --muted: #62758a;
    background: #f1f5f9
}

body.gw-light .gw-header {
    background: #ffffffed
}

body.gw-light .gw-composer,
body.gw-light .gw-post,
body.gw-light .gw-panel {
    background: #fff
}

body.gw-light .gw-icon-button {
    color: #162437
}

body.gw-light .gw-post-text {
    color: #334b65
}

body.gw-light .gw-nav-link.gw-active {
    background: #dceeff;
    color: #087cdd
}

body.gw-light .gw-brand-icon {
    color: #063149
}

@media(max-width:1260px) {
    .gw-shell {
        grid-template-columns: 220px minmax(0, 640px) minmax(250px, 300px);
        gap: 14px;
        padding-inline: 14px
    }

    .gw-brand {
        flex-basis: 220px
    }

    .gw-header-inner {
        padding-inline: 14px;
        gap: 12px
    }

    .gw-nav-link {
        gap: 12px;
        padding-inline: 12px
    }

    .gw-level-thumb {
        flex-basis: 70px
    }
}

@media(max-width:1080px) {
    .gw-shell {
        grid-template-columns: 210px minmax(0, 640px)
    }

    .gw-right {
        display: none
    }

    .gw-brand {
        flex-basis: 210px
    }

    .gw-header-actions {
        gap: 5px
    }
}

@media(max-width:720px) {
    :root {
        --header-h: 58px
    }

    .gw-header-inner {
        gap: 8px
    }

    .gw-brand {
        flex: 0 0 auto
    }

    .gw-brand-icon {
        width: 36px;
        height: 36px;
        font-size: 20px
    }

    .gw-brand strong {
        font-size: 19px
    }

    .gw-brand small {
        display: none
    }

    .gw-sidebar-toggle {
        display: grid
    }

    .gw-search {
        margin-left: auto;
        width: min(290px, 100%);
        height: 36px
    }

    .gw-search kbd,
    .gw-theme-button,
    .gw-header-notifications,
    .gw-header-post,
    .gw-header-actions>a:not(.gw-my-avatar) {
        display: none
    }

    .gw-header-actions {
        margin-left: 0
    }

    .gw-header-actions .gw-avatar {
        width: 33px;
        height: 33px;
        font-size: 15px
    }

    .gw-shell {
        display: block;
        padding: 10px 10px 90px
    }

    .gw-feed {
        max-width: 640px;
        margin: auto
    }

    .gw-left {
        display: none;
        position: fixed;
        z-index: 45;
        top: var(--header-h);
        left: 0;
        width: min(310px, 85vw);
        height: calc(100vh - var(--header-h));
        max-height: none;
        background: #0b1826;
        border-right: 1px solid var(--border);
        padding: 12px;
        box-shadow: 20px 0 50px #0008
    }

    .gw-left.gw-open {
        display: block
    }

    .gw-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
        height: 65px;
        justify-content: space-around;
        align-items: center;
        background: #0b1826f7;
        border-top: 1px solid var(--border);
        backdrop-filter: blur(12px)
    }

    .gw-mobile-nav a,
    .gw-mobile-nav button {
        display: grid;
        justify-items: center;
        gap: 2px;
        background: none;
        border: 0;
        color: var(--muted);
        font-size: 10px
    }

    .gw-mobile-nav i {
        font-size: 19px
    }

    .gw-composer {
        padding: 12px
    }

    .gw-post {
        padding: 12px;
        gap: 9px
    }

    .gw-post-avatar {
        width: 38px;
        height: 38px
    }

    .gw-level-banner {
        height: 130px
    }

    .gw-level-banner span {
        font-size: 56px
    }
}

@media(max-width:440px) {
    .gw-brand strong {
        font-size: 17px
    }

    .gw-brand-icon {
        display: none
    }

    .gw-search {
        width: 100%;
        padding-inline: 9px
    }

    .gw-search input {
        font-size: 11px
    }

    .gw-compose-actions {
        margin-left: 0;
        align-items: flex-end
    }

    .gw-media-actions button {
        padding: 7px
    }

    .gw-media-actions button span {
        display: none
    }

    .gw-post-author span {
        font-size: 11px
    }

    .gw-post-actions {
        gap: 4px
    }

    .gw-level-banner span {
        font-size: 46px
    }
}

/* Header aligned precisely with the three page columns */
@media (min-width:1081px) {
    .gw-header-inner {
        display: grid;
        grid-template-columns: minmax(220px, 280px) minmax(0, 640px) minmax(280px, 340px);
        gap: 24px;
        justify-content: center;
    }

    .gw-brand {
        min-width: 0;
        flex: none;
    }

    .gw-search {
        width: 100%;
        max-width: none;
        margin: 0;
        min-width: 0;
    }

    .gw-header-actions {
        width: 100%;
        min-width: 0;
        margin: 0;
        justify-content: flex-end;
        gap: 20px;
    }
}

@media (min-width:1081px) and (max-width:1260px) {
    .gw-header-inner {
        grid-template-columns: 220px minmax(0, 640px) minmax(250px, 300px);
        gap: 14px;
    }
}

@media (min-width:721px) and (max-width:1080px) {
    .gw-header-inner {
        display: grid;
        grid-template-columns: 210px minmax(0, 640px);
        gap: 14px;
        justify-content: center;
    }

    .gw-brand {
        min-width: 0;
        flex: none;
    }

    .gw-search {
        width: 100%;
        max-width: none;
        margin: 0;
        min-width: 0;
        padding-right: 155px;
    }

    .gw-header-actions {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        gap: 5px;
    }

    .gw-header-actions .gw-theme-button,
    .gw-header-actions .gw-header-post {
        display: none;
    }
}


/* =========================================
   GEOWEB MODAL
========================================= */

.gw-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

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

    padding: 20px;

    background: rgba(3, 7, 15, 0.76);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}

.gw-modal-overlay.gw-modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal container */

.gw-modal {
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 520px;
    max-height: min(85vh, 760px);
    max-height: min(85dvh, 760px);

    background: #151c2b;
    color: #edf2fa;

    border: 1px solid #2a3548;
    border-radius: 18px;

    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);

    overflow: hidden;

    transform: translateY(12px) scale(.98);
    transition: transform .22s ease;
}

.gw-modal-overlay.gw-modal-open .gw-modal {
    transform: translateY(0) scale(1);
}

/* Header */

.gw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 20px 24px;
    border-bottom: 1px solid #2a3548;

    flex-shrink: 0;
}

.gw-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gw-modal-heading > i {
    color: #58a6ff;
    font-size: 19px;
}

.gw-modal-heading h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.gw-modal-close {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;
    flex-shrink: 0;

    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #91a0b8;

    cursor: pointer;
    transition: background .15s, color .15s;
}

.gw-modal-close:hover {
    background: #273348;
    color: #fff;
}

/* Scrollable content */

.gw-modal-content {
    padding: 24px;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #35435a transparent;
}

.gw-modal-description {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #9eacc2;
}

/* Form fields */

.gw-modal-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.gw-modal-field:last-child {
    margin-bottom: 0;
}

.gw-modal-field label {
    font-size: 13px;
    font-weight: 600;
    color: #dce5f3;
}

.gw-modal-field input,
.gw-modal-field textarea,
.gw-modal-field select {
    box-sizing: border-box;
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #2b394e;
    border-radius: 10px;

    background: #0d1420;
    color: #edf2fa;

    font: inherit;
    font-size: 14px;

    outline: none;
    transition:
        border-color .15s,
        box-shadow .15s;
}

.gw-modal-field textarea {
    resize: vertical;
    min-height: 110px;
}

.gw-modal-field input:focus,
.gw-modal-field textarea:focus,
.gw-modal-field select:focus {
    border-color: #348ff5;
    box-shadow: 0 0 0 3px rgba(52,143,245,.13);
}

.gw-modal-field input::placeholder,
.gw-modal-field textarea::placeholder {
    color: #68788e;
}

/* Footer */

.gw-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding: 16px 24px;

    border-top: 1px solid #2a3548;
    flex-shrink: 0;
}

.gw-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;
    padding: 0 19px;

    border: 1px solid transparent;
    border-radius: 10px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition:
        background .15s,
        transform .15s;
}

.gw-modal-btn:active {
    transform: scale(.97);
}

.gw-modal-btn-secondary {
    background: #263246;
    color: #dce5f3;
}

.gw-modal-btn-secondary:hover {
    background: #34435b;
}

.gw-modal-btn-primary {
    background: #2485ef;
    color: #fff;
}

.gw-modal-btn-primary:hover {
    background: #419bff;
}

/* Prevent page scrolling */

body.gw-modal-active {
    overflow: hidden;
}

/* Mobile */

@media (max-width: 600px) {
    .gw-modal-overlay {
        padding: 12px;
    }

    .gw-modal {
        max-height: calc(100dvh - 24px);
        border-radius: 15px;
    }

    .gw-modal-header {
        padding: 17px 18px;
    }

    .gw-modal-content {
        padding: 20px 18px;
    }

    .gw-modal-footer {
        padding: 14px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-modal-overlay,
    .gw-modal {
        transition: none;
    }
}

.gw-feed-tabs {
    position: relative;
    display: flex;
}

.gw-feed-tabs button {
    position: relative;
    flex: 1;
    padding: 16px 12px;

    background: transparent;
    border: none;
    color: #91a0b8;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition: color 0.2s ease;
}

.gw-feed-tabs button:hover {
    color: #e7edf7;
    background: rgba(255, 255, 255, 0.025);
}

.gw-feed-tabs button.gw-selected {
    color: #1d9bf0;
}

/* Remove the original individual underline */
.gw-feed-tabs button::after {
    display: none !important;
}

/* The moving indicator */
.gw-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;

    height: 4px;
    width: 0;

    background: #1d9bf0;
    border-radius: 4px 4px 0 0;

    pointer-events: none;

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .gw-tab-indicator {
        transition: none;
    }
}

.gw-feed {
    transition: opacity 0.15s ease;
}

.gw-feed.gw-page-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   GEOWEB PROFILE
======================================== */

.gw-profile {
    width: 100%;
    min-width: 0;
    color: #edf2fa;
}

/* Header */

.gw-profile-top {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 20px;
    min-height: 60px;
    box-sizing: border-box;
}

.gw-profile-back,
.gw-profile-more {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #e7edf7;
    cursor: pointer;
}

.gw-profile-back:hover,
.gw-profile-more:hover {
    background: #202d40;
}

.gw-profile-top h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.gw-profile-top span {
    color: #8e9eb5;
    font-size: 12px;
}

.gw-profile-more {
    margin-left: auto;
}

/* Cover */

.gw-profile-cover {
    height: 190px;
    background: linear-gradient(
        135deg,
        #102a48,
        #1255a3,
        #261b59
    );
    overflow: hidden;
}

.gw-profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main profile section */

.gw-profile-main {
    position: relative;
    padding: 0 20px 20px;
}

.gw-profile-avatar {
    position: absolute;
    top: -64px;
    left: 20px;

    width: 120px;
    height: 120px;

    border: 5px solid #0c1420;
    border-radius: 50%;

    background: #151f30;
    overflow: hidden;
    box-sizing: border-box;
}

.gw-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Action buttons */

.gw-profile-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    height: 65px;
}

.gw-profile-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #314057;
    background: transparent;
    color: #e7edf7;
    cursor: pointer;
}

.gw-profile-icon-btn:hover {
    background: #1e2b3d;
}

.gw-profile-follow {
    min-width: 100px;
    height: 38px;
    padding: 0 20px;

    background: #1689f7;
    color: #fff;
    border: 0;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.gw-profile-follow:hover {
    background: #329cff;
}

/* User details */

.gw-profile-details {
    padding-top: 5px;
}

.gw-profile-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gw-profile-name h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
}

.gw-profile-name i {
    color: #1d9bf0;
    font-size: 17px;
}

.gw-profile-username {
    margin-top: 3px;
    color: #8e9eb5;
    font-size: 14px;
}

.gw-profile-bio {
    margin: 18px 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #dce5f3;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gw-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: #8e9eb5;
    font-size: 13px;
}

.gw-profile-meta i {
    margin-right: 5px;
}

.gw-profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 18px;
}

.gw-profile-stats a {
    color: #8e9eb5;
    font-size: 13px;
    text-decoration: none;
}

.gw-profile-stats a:hover {
    text-decoration: underline;
}

.gw-profile-stats strong {
    color: #edf2fa;
    margin-right: 4px;
}

/* Geometry Dash stats */

.gw-profile-gd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
}

.gw-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;

    min-width: 0;
    padding: 15px 6px;

    background: #121e2d;
    border: 1px solid #26374d;
    border-radius: 12px;
}

.gw-profile-stat i {
    font-size: 17px;
    color: #45a3ff;
    margin-bottom: 4px;
}

.gw-profile-stat:first-child i {
    color: #ffcc45;
}

.gw-profile-stat:nth-child(2) i {
    color: #58d5ff;
}

.gw-profile-stat:nth-child(3) i {
    color: #f46b8c;
}

.gw-profile-stat strong {
    font-size: 15px;
    font-weight: 700;
}

.gw-profile-stat span {
    font-size: 11px;
    color: #8e9eb5;
    text-align: center;
}

/* Profile tabs */

.gw-profile-tabs {
    position: relative;
    display: flex;
    border-bottom: 1px solid #273348;
}

.gw-profile-tabs button {
    flex: 1;
    padding: 17px 8px;
    border: 0;
    background: transparent;
    color: #91a0b8;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.gw-profile-tabs button:hover {
    background: rgba(255,255,255,.025);
}

.gw-profile-tabs button.gw-selected {
    color: #1d9bf0;
}

/* Reuse your animated tab indicator */

.gw-profile-tabs .gw-tab-indicator {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: #1d9bf0;
    pointer-events: none;

    transition:
        transform .3s cubic-bezier(.22,1,.36,1),
        width .3s cubic-bezier(.22,1,.36,1);
}

/* Posts */

.gw-profile-posts {
    min-height: 250px;
}

/* Mobile */

@media (max-width: 600px) {
    .gw-profile-cover {
        height: 140px;
    }

    .gw-profile-avatar {
        width: 94px;
        height: 94px;
        top: -50px;
    }

    .gw-profile-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .gw-profile-gd-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-profile-tabs .gw-tab-indicator {
        transition: none;
    }
}
