﻿/* Harici font isteği kaldırıldı; yerel font yığını kullanılır. */

:root {
    --rail: #e4e5e9;
    --side: #f2f3f5;
    --card: #ffffff;
    --hairline: #d8d9dd;
    --hover: #d8d9dd;
    --profile: #ecedef;
    --muted: #5b5e65;
    --icon: #4d5058;
    --text-strong: #060606;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --empty-logo: #c7c9ce;
    --bubble-mine: #1e1f22;
    --bubble-mine-fg: #f2f3f5;
    --bubble-other: #3f4147;
    --bubble-other-fg: #f2f3f5;

    /* WINEX tasarım tokenları */
    --wx-success: #23a55a;
    --wx-warning: #f0b232;
    --wx-danger: #d9363b;
    --wx-radius-sm: 4px;
    --wx-radius-md: 8px;
    --wx-radius-lg: 16px;
    --wx-space-1: 4px;
    --wx-space-2: 8px;
    --wx-space-3: 12px;
    --wx-space-4: 16px;
    --wx-space-5: 24px;
    --wx-space-6: 32px;
    --wx-z-rail: 36;
    --wx-z-sidebar: 26;
    --wx-z-chat: 46;
    --wx-z-panel: 60;
    --wx-z-modal: 900;
}

[data-theme="dark"] {
    --rail: #1e1f22;
    --side: #2b2d31;
    --card: #313338;
    --hairline: #232428;
    --hover: #35373c;
    --profile: #232428;
    --muted: #949ba4;
    --icon: #b5bac1;
    --text-strong: #f2f3f5;
    --empty-logo: #4e5058;
    --bubble-mine: #4e5058;
    --bubble-mine-fg: #f2f3f5;
    --bubble-other: #6d6f78;
    --bubble-other-fg: #f2f3f5;
}

[data-theme="black"] {
    --rail: #000000;
    --side: #111214;
    --card: #18191c;
    --hairline: #232428;
    --hover: #232428;
    --profile: #0e0f11;
    --muted: #7c818a;
    --icon: #9ea3ab;
    --text-strong: #e8e9ec;
    --empty-logo: #3f4147;
    --bubble-mine: #3a3b40;
    --bubble-mine-fg: #f2f3f5;
    --bubble-other: #54555c;
    --bubble-other-fg: #f2f3f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Firjar', 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background: var(--side);
    color: var(--text-strong);
}

main {
    width: 100%;
    display: flex;
}

main aside {
    width: 6%;
    padding: 12px;
    background-color: var(--rail);
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    height: 100vh;
    gap: 10px;
}

.winex-aside-btn {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #fff;
    background-color: var(--accent);
    border-radius: 15px;
    width: 45px;
    height: 45px;
    cursor: pointer;
}

.winex-aside-btn svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

aside img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

aside .icon i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22%;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
    transition: all .18s ease-in-out;
}

aside .icon.green i {
    background-color: #23a559;
}

aside .icon i:hover {
    border-radius: 14px;
    transform: translateY(-2px);
}

aside .icon.green i:hover {
    background-color: #1f8c4a;
}

aside .icon.blurple i {
    background-color: #5865f2;
}

aside .icon.blurple i:hover {
    background-color: #4752c4;
}

aside img:hover {
    border-radius: 15px;
}

hr {
    width: 50%;
    border-radius: 30px;
    border: 1px solid var(--hairline);
}

main .sidebar-chat {
    width: 19%;
    height: 100vh;
    background-color: var(--side);
    position: relative;
    overflow-y: auto;
}

main .sidebar-chat .top-nav {
    width: 100%;
    padding: 7px 7px;
    border-bottom: 2px solid var(--hairline);
}

main .sidebar-chat .top-nav input {
    width: 100%;
    padding: 7px;
    border-radius: 5px;
    background-color: var(--rail);
    border: none;
    outline: none;
    color: var(--text-strong);
}

main .sidebar-chat .list-item svg path {
    fill: var(--icon);
}

main .sidebar-chat .list-item {
    width: 100%;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
    background-color: transparent;
    cursor: pointer;
    border-radius: 5px;
    transition: all .1s ease-in-out;
    color: var(--icon);
    position: relative;
}

main .sidebar-chat .list-item:hover {
    background-color: var(--hover);
    color: var(--text-strong);
    fill: var(--text-strong);
}

main .sidebar-chat .list-item:hover svg path {
    fill: var(--text-strong);
}

main .sidebar-chat .list-item.active {
    background-color: var(--hover);
    color: var(--text-strong);
}

main .sidebar-chat .list-item.active svg path {
    fill: var(--text-strong);
}

main .sidebar-chat .list {
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

main .sidebar-chat .list .list-item:nth-child(3) {
    background-image: linear-gradient(135deg, #5865f2 0%, #8b5cf6 50%, #eb459e 100%);
    background-position: right;
    background-size: cover;
    position: relative;
}

main .sidebar-chat .list .list-item:nth-child(3):hover {
    backdrop-filter: grayscale(100);
}

main .sidebar-chat .list .list-item .new {
    background-color: #d9363b;
    color: white;
    border-radius: 30px;
    padding: 1px 6px;
    font-size: 12px;
    font-weight: 800;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0%, -50%);
}

main .sidebar-chat .list .list-item .buy {
    background-image: linear-gradient(to right, hsl(269 calc(1 * 52.7%) 52.7% / 1), hsl(325 calc(1 * 31.7%) 51.8% / 1));
    color: white;
    border-radius: 30px;
    padding: 1px 5px;
    font-size: 12px;
    font-weight: 800;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0%, -50%);
}

main .sidebar-chat .dm {
    width: 100%;
    margin-top: 10px;
}

main .sidebar-chat .dm h1 {
    padding: 10px 15px 5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    cursor: pointer;
}

main .sidebar-chat .dm h1:hover {
    color: var(--icon);
}

main .sidebar-chat .dm .friends {
    padding: 0 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

main .sidebar-chat .dm .friends .f-li {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    transition: background .15s ease;
}

main .sidebar-chat .dm .friends .f-li.active {
    background-color: var(--hover);
    color: var(--text-strong);
}

main .sidebar-chat .dm .friends .f-li p {
    color: var(--muted);
    font-weight: 500;
    font-size: 16px;
}

main .sidebar-chat .dm .friends .f-li:hover {
    background-color: var(--hover);
}

main .sidebar-chat .dm .friends .f-li:hover>.img-wrapper::after {
    background-color: var(--hover);
    box-shadow: 0px 0px 0px 3px var(--hover);
}

main .sidebar-chat .dm .friends .f-li:hover>p {
    color: var(--icon);
}

main .sidebar-chat .dm .friends .f-li .img-wrapper {
    width: 30px;
    height: 30px;
    position: relative;
    display: inline-block;
}

main .sidebar-chat .dm .friends .f-li .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

main .sidebar-chat .dm .friends .f-li .img-wrapper::after {
    content: "";
    position: absolute;
    bottom: 1px;
    right: -1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--side);
    border: 3px solid #868990;
    box-shadow: 0px 0px 0px 3px var(--side);
}

main .sidebar-chat .dm .friends .f-li i {
    font-size: 14px;
    color: var(--muted);
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translate(0%, -50%);
    display: none;
}

main .sidebar-chat .dm .friends .f-li:hover>i {
    display: block;
}

main .sidebar-chat .profile {
    background-color: var(--profile);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    animation: profileBarIn .35s ease both;
}

@keyframes profileBarIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

main .sidebar-chat .profile .img-wrapper {
    width: 34px;
    height: 34px;
    position: relative;
    display: inline-block;
}

main .sidebar-chat .profile .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

main .sidebar-chat .profile .img-wrapper::after {
    content: "";
    position: absolute;
    bottom: 1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #868990;
    box-shadow: 0px 0px 0px 3px var(--profile);
    transition: background-color .3s ease;
}

main .sidebar-chat .profile .img-wrapper.status-online::after { background-color: #23a55a; }
main .sidebar-chat .profile .img-wrapper.status-idle::after { background-color: #f0b232; }
main .sidebar-chat .profile .img-wrapper.status-dnd::after { background-color: #d9373c; }
main .sidebar-chat .profile .img-wrapper.status-invisible::after { background-color: #80848e; }
main .sidebar-chat .profile .img-wrapper.status-offline::after { background-color: #868990; }

main .sidebar-chat .profile .left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s ease;
}

main .sidebar-chat .profile .left:hover {
    background: var(--hover);
}

main .sidebar-chat .profile .left .txt {
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    line-height: 16px;
}

main .sidebar-chat .profile .left .txt p {
    font-weight: 700;
    font-size: 15px;
}

main .sidebar-chat .profile .left .txt span {
    font-weight: 300;
    font-size: 13px;
}

main .sidebar-chat .profile .right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

main .sidebar-chat .profile .right i {
    cursor: pointer;
    color: var(--icon);
}

main .sidebar-chat .profile .right i.mute {
    transition: all 0s;
    color: #d9373c;
    animation: spring .2s;
    transform: translateX(3px);
}

main .sidebar-chat .profile .right i.fa-gear {
    transition: all .5s ease-in-out;
    transform: rotate(0deg);
}

main .sidebar-chat .profile .right i.fa-gear:hover {
    transform: rotate(180deg);
}

@keyframes spring {
    0% {
        transform: translateX(0px);
    }

    25% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(2px);
    }
}

main .rightside-area {
    width: 75%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

main .rightside-area nav {
    width: 100%;
    padding: 11px 15px;
    border-bottom: 2px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

main .rightside-area nav .left-side {
    display: flex;
    align-items: center;
}

main .rightside-area nav .icons-end {
    display: flex;
    align-items: center;
    gap: 15px;
}

main .rightside-area nav .icons-end i {
    font-size: 22px;
    color: var(--icon);
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

main .rightside-area nav .icons-end #iconCalendar {
    border-right: 1px solid var(--hairline);
    padding-right: 15px;
}

main .rightside-area nav .one {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 16px;
    border-right: 1px solid var(--hairline);
    width: 100px;
}

main .rightside-area nav .one svg path {
    fill: var(--muted);
}

main .rightside-area nav .buttons {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
}

main .rightside-area nav .buttons {
    padding: 0 20px;
}

main .rightside-area nav .buttons button {
    background-color: transparent;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 400;
    color: var(--text-strong);
}

main .rightside-area nav .buttons button.active {
    background-color: var(--hover);
    font-weight: 600;
}

main .rightside-area nav .buttons button:hover {
    background-color: var(--hover);
    font-weight: 500;
}

main .rightside-area nav .buttons button:nth-last-child(1) {
    background-color: #247f46;
    color: white;
    font-weight: 600;
}

main .rightside-area .bottom {
    flex: 1;
    display: flex;
}

.loader-home {
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: var(--side);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
}

.loader-home svg {
    width: 110px;
    height: 110px;
    color: var(--text-strong);
    margin-bottom: 30px;
}

.loader-home svg .winex-ring {
    animation: ringOrbit 2.4s linear infinite;
}

.loader-home svg .winex-ring-back {
    animation-name: ringOrbitBack;
}

@keyframes ringOrbit {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -1047;
    }
}

@keyframes ringOrbitBack {
    from {
        stroke-dashoffset: 523.5;
    }

    to {
        stroke-dashoffset: -523.5;
    }
}

.loader-home h1 {
    font-size: 14px;
    color: var(--text-strong);
    margin-bottom: 15px;
}

.rest-of-words {
    font-size: 16px;
    color: var(--text-strong);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.button-style {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-strong);
    background-color: var(--hover);
    margin-right: 5px;
}

.loader-tip-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.loader-version {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--text-strong);
    background-color: var(--hover);
    border-radius: 8px;
    padding: 8px 22px;
}

main .rightside-area .bottom .left {
    background-color: var(--card);
    height: 100%;
    width: 65%;
    border-right: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 50px;
}

main .rightside-area .bottom .left p {
    color: var(--muted);
}

main .rightside-area .bottom .right {
    background-color: var(--card);
    height: 100%;
    width: 35%;
    padding: 20px 15px;
}

main .rightside-area .bottom .right h1 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 20px;
}

main .rightside-area .bottom .right .sec {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
}

main .rightside-area .bottom .right .sec h2 {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

main .rightside-area .bottom .right .sec p {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.empty-winex-logo {
    width: 190px;
    height: 190px;
    color: var(--empty-logo);
}

@media screen and (max-width: 1250px) {
    main .sidebar-chat {
        width: 22%;
    }

    main .rightside-area {
        width: 72%;
    }
}

@media screen and (max-width: 1050px) {
    main .sidebar-chat {
        width: 26%;
    }

    main .rightside-area {
        width: 68%;
    }

    main .rightside-area .bottom .left {
        width: 100%;
        border: none;
    }

    main .rightside-area .bottom .right {
        display: none;
    }

    main .rightside-area nav .icons-end {
        display: none;
    }
}

@media screen and (max-width: 850px) {
    main aside {
        width: 10%;
    }

    main .sidebar-chat {
        width: 30%;
    }

    main .rightside-area {
        width: 60%;
    }

    main .rightside-area nav .left-side button:nth-child(3) {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    main aside {
        width: 15%;
    }

    main .sidebar-chat {
        width: 85%;
    }
}

@media screen and (max-width: 350px) {
    main aside {
        width: 20%;
    }

    main .sidebar-chat {
        width: 80%;
    }
}

@media screen and (max-height: 510px) {
    main .sidebar-chat .profile {
        position: sticky;
    }
}

/* --- Durum (status) seçim menüsü --- */
.profile { position: absolute; }
.status-menu { position: absolute; bottom: calc(100% + 8px); left: 8px; background: var(--card); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.28); padding: 6px; z-index: 960; display: none; min-width: 190px; }
.status-menu.visible { display: block; animation: fadeIn .15s ease; }
.status-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: none; background: transparent; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-strong); cursor: pointer; text-align: left; }
.status-menu-item:hover { background: var(--hover); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-online-bg { background: #23a55a; } .dot-idle-bg { background: #f0b232; } .dot-dnd-bg { background: #d9373c; } .dot-invisible-bg { background: #868990; }

/* --- WINEX logo (auth & loader) --- */
.auth-card .auth-logo,
.auth-logo svg {
    width: 52px;
    height: 52px;
    color: #5865f2;
    margin: 0 auto 8px;
    display: block;
}

/* --- Ayarlar penceresi (Discord temasına uygun koyu) --- */
.settings-overlay { position: fixed; inset: 0; z-index: 970; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 3vh 3vw; overflow: hidden; zoom: 0.8; }
.settings-overlay.visible { display: flex; animation: fadeIn .18s ease; }
.settings-window { position: relative; width: min(1560px, 96vw); max-width: 100%; height: 75vh; background: #313338; border-radius: 18px; display: flex; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.settings-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #b5bac1; background: transparent; color: #b5bac1; font-size: 18px; cursor: pointer; z-index: 2; transition: all .15s ease; }
.settings-close:hover { color: #f2f3f5; border-color: #f2f3f5; background: rgba(255,255,255,.06); }
.settings-nav { width: 250px; flex-shrink: 0; background: #2b2d31; padding: 24px 8px 16px 24px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.settings-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 14px; border-bottom: 1px solid #1e1f22; margin-bottom: 10px; }
.settings-user img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.settings-user .su-name { font-size: 15px; font-weight: 700; color: #f2f3f5; }
.settings-user .su-edit { font-size: 11px; color: #b5bac1; cursor: pointer; }
.settings-user .su-edit:hover { color: #f2f3f5; }
.settings-nav input.settings-search { background: #1e1f22; border: none; outline: none; color: #dbdee1; border-radius: 6px; padding: 9px 10px; font-size: 13px; margin-bottom: 12px; }
.settings-nav-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #949ba4; padding: 8px 10px 4px; }
.settings-nav-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; background: transparent; color: #b5bac1; font-size: 14px; border-radius: 5px; cursor: pointer; }
.settings-nav-item:hover { background: #35373c; color: #dbdee1; }
.settings-nav-item.active { background: #404249; color: #f2f3f5; font-weight: 600; }
.settings-logout { margin-top: auto; padding: 9px 10px; border: 1px solid #da373c; color: #da373c; background: transparent; border-radius: 6px; font-weight: 700; cursor: pointer; }
.settings-logout:hover { background: #da373c; color: #fff; }
.settings-footer { font-size: 10px; color: #7c818a; text-align: center; padding: 10px 6px 0; }
.settings-content { flex: 1; overflow: hidden; background: #313338; color: #dbdee1; position: relative; }
.settings-section { display: none; height: 100%; overflow-y: auto; padding: 26px 34px; background: #313338; margin: 0; }
.settings-section.active { display: block; animation: settingsPageIn .38s cubic-bezier(.2,.9,.25,1) both; }
.settings-section.active h2 { animation: settingsRowIn .45s .04s both; }
.settings-section.active .settings-card, .settings-section.active .donate-box { animation: settingsRowIn .5s .1s both; }
.settings-section.active .settings-row { animation: settingsRowIn .42s both; }
.settings-section.active .settings-row:nth-child(1) { animation-delay: .06s; }
.settings-section.active .settings-row:nth-child(2) { animation-delay: .11s; }
.settings-section.active .settings-row:nth-child(3) { animation-delay: .16s; }
.settings-section.active .settings-row:nth-child(4) { animation-delay: .21s; }
.settings-section.active .settings-row:nth-child(5) { animation-delay: .26s; }
.settings-section.active .settings-row:nth-child(6) { animation-delay: .31s; }
.settings-section.active .settings-row:nth-child(7) { animation-delay: .36s; }
@keyframes settingsPageIn { from { opacity: 0; transform: translateX(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes settingsRowIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.settings-section::-webkit-scrollbar { width: 10px; }
.settings-section::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 6px; border: 2px solid #313338; }
.settings-nav-item { animation: navItemIn .4s both; }
.settings-nav-item:nth-child(1) { animation-delay: .02s; }
.settings-nav-item:nth-child(2) { animation-delay: .04s; }
.settings-nav-item:nth-child(3) { animation-delay: .06s; }
.settings-nav-item:nth-child(4) { animation-delay: .08s; }
.settings-nav-item:nth-child(5) { animation-delay: .1s; }
@keyframes navItemIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.settings-nav-item { position: relative; transition: background .18s ease, color .18s ease, transform .18s ease; }
.settings-nav-item:hover { transform: translateX(5px); }
.settings-nav-item.active { background: #404249; color: #f2f3f5; font-weight: 600; }
.settings-nav-item.active::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 4px; background: #5865f2; animation: navBarIn .3s both; }
@keyframes navBarIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.settings-section { margin-bottom: 34px; }
.settings-section h2 { font-size: 21px; font-weight: 800; color: #f2f3f5; margin-bottom: 14px; }
.settings-card { background: #2b2d31; border-radius: 10px; padding: 18px 20px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #1e1f22; }
.settings-row:last-child { border-bottom: none; }
.settings-row .sr-label { font-size: 13px; font-weight: 700; color: #b5bac1; text-transform: uppercase; letter-spacing: .04em; }
.settings-row .sr-value { font-size: 14px; color: #f2f3f5; margin-top: 3px; }
.settings-btn { border: none; background: #404249; color: #f2f3f5; border-radius: 6px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.settings-btn:hover { background: #4e5058; }
.settings-btn.primary { background: #5865f2; }
.settings-btn.primary:hover { background: #4752c4; }
.settings-btn.green { background: #247f46; }
.settings-input { background: #1e1f22; border: 1px solid #1e1f22; outline: none; color: #f2f3f5; border-radius: 6px; padding: 9px 10px; font-size: 13px; width: 240px; }
.settings-input:focus { border-color: #5865f2; }
.settings-inline-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.settings-msg { font-size: 12px; margin-top: 8px; min-height: 16px; }
.settings-msg.ok { color: #23a55a; } .settings-msg.err { color: #f23f43; }
.settings-note { font-size: 12px; color: #949ba4; margin-top: 6px; }
.settings-verified { color: #23a55a; font-weight: 700; } .settings-unverified { color: #f0b232; font-weight: 700; }

/* --- Tema: anahtar (switch) ve örnekler (swatches) --- */
.switch { position: relative; width: 44px; height: 24px; display: inline-block; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: #80848e; transition: background .2s ease; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; pointer-events: none; }
.switch input:checked + .switch-track { background: #5865f2; }
.switch input:checked ~ .switch-thumb { transform: translateX(20px); }
.theme-swatches { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.theme-swatch { width: 56px; height: 56px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; position: relative; transition: transform .15s ease; }
.theme-swatch:hover { transform: scale(1.06); }
.theme-swatch.selected { border-color: #5865f2; }
.theme-swatch.light { background: #ffffff; }
.theme-swatch.dark { background: #313338; }
.theme-swatch.black { background: #000000; }
.theme-swatch.auto { background: linear-gradient(135deg, #ffffff 50%, #111214 50%); }
.theme-swatch .swatch-check { position: absolute; top: -9px; right: -9px; background: #5865f2; color: #fff; border-radius: 50%; width: 22px; height: 22px; font-size: 11px; align-items: center; justify-content: center; display: none; }
.theme-swatch.selected .swatch-check { display: flex; }

/* --- Bağış --- */
.donate-amounts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 100%; max-width: 520px; }
.donate-amount { background: #1e1f22; color: #f2f3f5; border: 2px solid transparent; border-radius: 8px; padding: 14px 0; font-size: 16px; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.donate-amount:hover { background: #35373c; }
.donate-amount.selected { border-color: #5865f2; background: #2b2d31; color: #fff; }
.donate-custom { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 520px; }
.donate-currency { font-size: 18px; font-weight: 800; color: #b5bac1; }
.donate-custom .settings-input { flex: 1; }
.donate-iban-box, .donate-paylink-box { display: flex; flex-direction: column; align-items: stretch; gap: 8px; background: #2b2d31; border-radius: 10px; padding: 14px 16px; width: 100%; max-width: 520px; text-align: left; }
.donate-iban-row { display: flex; gap: 8px; align-items: center; }
.donate-iban { flex: 1; font-size: 13px !important; word-break: break-all; }
.donate-warning { display: flex; align-items: center; gap: 10px; background: rgba(240,178,50,.12); border: 1px solid rgba(240,178,50,.4); color: #f0b232; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; max-width: 520px; text-align: left; }
@media (max-width: 600px) { .donate-amounts { grid-template-columns: repeat(3, 1fr); } }

/* --- Hesap sağlığı --- */
.health-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; cursor: pointer; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.health-chip .health-text { font-size: 11px; font-weight: 700; }
.health-overlay { position: fixed; inset: 0; z-index: 980; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; }
.health-overlay.visible { display: flex; animation: fadeIn .18s ease; }
.health-window { position: relative; background: #313338; width: 560px; max-width: calc(100vw - 40px); border-radius: 18px; padding: 28px 26px 22px; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.health-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.health-logo { width: 110px; height: 110px; color: #23a55a; }
.health-title { font-size: 22px; font-weight: 800; color: #f2f3f5; }
.health-word { font-weight: 900; }
.health-sub { font-size: 13px; color: #949ba4; margin-top: 6px; min-height: 18px; }
.health-steps { display: flex; justify-content: space-between; gap: 6px; position: relative; margin: 10px 6px 6px; }
.health-steps::before { content: ""; position: absolute; top: 11px; left: 24px; right: 24px; height: 2px; background: #404249; }
.health-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; }
.health-step-dot { width: 24px; height: 24px; border-radius: 50%; background: #404249; border: 3px solid #313338; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; z-index: 1; }
.health-step-label { font-size: 12px; font-weight: 800; color: #f2f3f5; }
.health-step:not(.current) .health-step-label { color: #949ba4; }
.health-note { font-size: 11px; color: #7c818a; margin: 14px 0 12px; }
.health-chip { cursor: pointer; }

/* --- Engellenenler (ayarlar) --- */
.blocked-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; }
.blocked-row:hover { background: #35373c; }
.blocked-row .fr-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.blocked-row .fr-info { display: flex; flex-direction: column; min-width: 0; }
.blocked-row .fr-name { font-weight: 700; font-size: 14px; color: #f2f3f5; }
.blocked-row .fr-status { font-size: 11px; color: #949ba4; }
.blocked-row .fr-btn { margin-left: auto; flex-shrink: 0; }

/* --- Ayarlar: ikonlar, cihaz ızgarası, kısayollar, radyolar --- */
.settings-nav-icon { width: 20px; margin-right: 10px; color: #949ba4; font-size: 13px; }
.settings-nav-item.active .settings-nav-icon { color: #f2f3f5; }
.settings-link { color: #5865f2; text-decoration: none; font-size: 12px; }
.settings-link:hover { text-decoration: underline; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 10px; }
.device-item { background: #1e1f22; border-radius: 6px; padding: 8px 10px; }
.device-item .di-label { font-size: 10px; text-transform: uppercase; color: #949ba4; letter-spacing: .05em; }
.device-item .di-value { font-size: 12px; color: #f2f3f5; margin-top: 3px; word-break: break-word; }
.shortcut-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.shortcut-name { font-size: 14px; color: #f2f3f5; width: 170px; }
.kbd { background: #1e1f22; border: 1px solid #404249; border-bottom: 3px solid #1e1f22; border-radius: 6px; padding: 4px 12px; font-family: Consolas, monospace; font-size: 12px; color: #dbdee1; min-width: 76px; text-align: center; }
.kbd.capturing { border-color: #5865f2; color: #5865f2; animation: kbdPulse 1s infinite; }
@keyframes kbdPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.radio-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #dbdee1; padding: 5px 2px; cursor: pointer; }
.radio-row input { accent-color: #5865f2; width: 15px; height: 15px; }
.settings-btn.red { background: #da373c; color: #fff; }
.settings-btn.red:hover { background: #a12828; }
.danger-zone { border: 1px solid rgba(218,55,60,.4); border-radius: 8px; padding: 13px 12px 13px 16px; }
.settings-content code { background: #1e1f22; padding: 1px 6px; border-radius: 4px; font-size: 11px; color: #dbdee1; }
.donate-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 18px 10px; }
.donate-logo { width: 130px; height: 130px; color: #b5bac1; }
.donate-box h2 { margin: 0; }
.donate-box p { color: #b5bac1; font-size: 14px; }
.donate-open { font-size: 15px !important; padding: 12px 30px !important; border-radius: 8px !important; }

/* --- Genel ölçek: arayüzü %125 yapar (masaüstü) --- */
main aside, main .sidebar-chat { height: 100vh; height: 100dvh; }
.settings-window { height: 75vh; }

@media screen and (max-width: 900px) {
    main aside, main .sidebar-chat { height: 100dvh; }
}

/* --- Mobil: adres çubuğu ile 100vh zıplamasın --- */
@media screen and (max-width: 750px) {
    main aside, main .sidebar-chat { height: 100dvh; }
    main .rightside-area nav .buttons { overflow-x: auto; flex-wrap: nowrap; max-width: 95vw; scrollbar-width: none; }
    main .rightside-area nav .buttons::-webkit-scrollbar { display: none; }
    main .rightside-area nav .buttons button { flex-shrink: 0; }
}

/* --- Yüksek kontrast modu --- */
html[data-contrast="high"] {
    --rail: #000000;
    --side: #000000;
    --card: #000000;
    --hairline: #ffffff;
    --hover: #222222;
    --profile: #000000;
    --muted: #ffffff;
    --icon: #ffeb3b;
    --text-strong: #ffffff;
    --accent: #ffeb3b;
    --accent-hover: #ffffff;
}

/* --- Hareketi azalt --- */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* --- Odak çerçevesini her zaman göster --- */
html[data-focus="always"] :focus {
    outline: 3px solid var(--accent) !important;
    outline-offset: 2px !important;
}

/* --- WINEX keşif ve sunucu oluşturma --- */
.discover-overlay { position: fixed; inset: 0; z-index: 960; background: var(--side); display: none; animation: fadeIn .25s ease; }
.discover-overlay.visible { display: flex; }
.discover-window { display: flex; width: 100%; height: 100vh; position: relative; }
.discover-nav { width: 260px; background: var(--side); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; padding: 24px 12px 12px; gap: 2px; }
.discover-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 18px; color: var(--text-strong); font-size: 18px; font-weight: 800; }
.discover-brand svg { color: var(--accent); }
.discover-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: none; background: transparent; color: var(--icon); font-size: 15px; font-weight: 600; border-radius: 8px; cursor: pointer; }
.discover-nav-item:hover { background: var(--hover); color: var(--text-strong); }
.discover-nav-item.active { background: var(--hover); color: var(--text-strong); }
.discover-nav-item i { width: 20px; }
.discover-nav-spacer { flex: 1; }
.discover-nav-footer { font-size: 11px; color: var(--muted); padding: 10px; border-top: 1px solid var(--hairline); }
.discover-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.discover-page { height: 100%; overflow-y: auto; }
.discover-tabs { display: flex; gap: 26px; padding: 16px 34px 0; border-bottom: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.discover-tabs::-webkit-scrollbar { display: none; }
.discover-tab { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; font-weight: 700; padding: 10px 2px 16px; cursor: pointer; white-space: nowrap; }
.discover-tab:hover { color: var(--text-strong); }
.discover-tab.active { color: var(--text-strong); border-color: var(--accent); }
.discover-body { padding: 22px 34px 46px; }
.discover-hero { border-radius: 12px; padding: 44px 46px; margin-bottom: 22px; background: linear-gradient(120deg, #ffffff 0%, #e9ecff 35%, #fdeaf6 70%, #ffffff 100%); background-size: 300% 300%; animation: wxFlow 14s linear infinite; color: #14141c; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.discover-hero h1 { font-size: 42px; font-weight: 900; line-height: 1.1; letter-spacing: .02em; margin: 0 0 14px; }
.discover-hero p { font-size: 15px; color: #45465a; font-weight: 600; margin: 0; }
.discover-section-title { font-size: 18px; font-weight: 800; color: var(--text-strong); margin: 4px 0 14px; }
.discover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.discover-loader, .discover-empty-msg { color: var(--muted); font-size: 14px; padding: 14px 2px; }
.discover-empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.discover-empty i { font-size: 42px; }
.discover-empty h3 { color: var(--text-strong); margin: 4px 0; }
.server-card { background: var(--profile); border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); transition: transform .18s ease, border-color .18s ease; display: flex; flex-direction: column; }
.server-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.server-card-banner { height: 104px; position: relative; display: block; }
.server-card-banner-img { display: block; height: 104px; object-fit: cover; }
.server-card-icon { position: relative; margin: -28px 0 0 14px; z-index: 2; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 800; font-size: 21px; display: flex; align-items: center; justify-content: center; border: 3px solid #1a1b1e; overflow: hidden; object-fit: cover; }
.server-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-card-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.server-card-name { color: var(--text-strong); font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.server-card-name i { color: #23a55a; font-size: 14px; }
.server-card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; min-height: 34px; }
.server-card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; margin-top: auto; }
.server-card-meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #23a55a; margin-right: 5px; }
.server-join-btn { margin-top: 10px; }

/* --- Öne çıkan sunucu kartları (WINEX yorumu) --- */
.wx-featured-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.wx-featured-card.server-card {
    border-radius: 16px; border-color: color-mix(in srgb, var(--hairline) 80%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--profile) 96%, #7c6cff 4%), var(--profile));
    box-shadow: 0 8px 26px rgba(0,0,0,.24); transition: transform .24s cubic-bezier(.2,1.2,.4,1), box-shadow .24s, border-color .24s;
    position: relative;
}
.wx-featured-card.server-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at 50% -20%, rgba(139,124,255,.16), transparent 62%);
    opacity: 0; transition: opacity .25s;
}
.wx-featured-card.server-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 20px 46px rgba(0,0,0,.42); }
.wx-featured-card.server-card:hover::after { opacity: 1; }
.wx-fc-banner { height: 106px; position: relative; overflow: hidden; flex: none; }
.wx-fc-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.wx-featured-card:hover .wx-fc-banner-img { transform: scale(1.06); }
.wx-fc-banner::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.04) 45%, rgba(0,0,0,.42) 100%);
}
.wx-fc-banner.wx-fc-gradient::after {
    content: ""; position: absolute; inset: -60% -20%; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
    transform: translateX(-40%); animation: wxFcSheen 6.5s ease-in-out infinite;
}
@keyframes wxFcSheen { 0%,55% { transform: translateX(-45%); } 80%,100% { transform: translateX(45%); } }
html[data-anim="off"] .wx-fc-banner.wx-fc-gradient::after { animation: none; display: none; }
.wx-fc-icon-wrap { position: relative; margin: -30px 0 0 15px; z-index: 3; width: 60px; height: 60px; flex: none; }
.wx-fc-icon {
    width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 22px; overflow: hidden; border: 3px solid var(--profile);
    box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08) inset;
    transition: transform .24s cubic-bezier(.2,1.2,.4,1);
}
.wx-featured-card:hover .wx-fc-icon { transform: rotate(-4deg) scale(1.05); }
.wx-fc-icon img { width: 100%; height: 100%; object-fit: cover; }
.wx-fc-verified {
    position: absolute; right: -5px; bottom: -5px; width: 23px; height: 23px; border-radius: 50%;
    background: #5865f2; border: 3px solid var(--profile); color: #fff; display: grid; place-items: center;
    font-size: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.4);
}
.wx-fc-body { padding: 6px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.wx-fc-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wx-fc-name > span:first-child { color: var(--text-strong); font-weight: 900; font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wx-fc-open {
    flex: none; font-size: 9px; font-weight: 900; letter-spacing: .1em; padding: 3px 7px; border-radius: 999px;
    color: #23a55a; background: rgba(35,165,90,.14); border: 1px solid rgba(35,165,90,.35);
}
.wx-fc-desc {
    font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; min-height: 38px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wx-fc-stats { display: flex; align-items: center; gap: 14px; margin-top: 2px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.wx-fc-stats b { color: var(--text-strong); font-weight: 800; }
.wx-fc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: 1px; }
.wx-fc-dot.on { background: #23a55a; box-shadow: 0 0 8px rgba(35,165,90,.65); }
.wx-fc-dot.mem { background: #9aa0aa; }
.wx-fc-lvl {
    display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 900; letter-spacing: .04em;
    padding: 3px 8px; border-radius: 999px; color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}
.wx-fc-join { margin-top: 11px; width: 100%; border-radius: 10px; font-weight: 800; }
/* Sunucu Keşfi kartları — Discord sunucu arayüzüyle aynı dil, yalnızca #dHome içinde */
#dHome .wx-featured-card.server-card { border-radius: 8px; background: #2b2d31; border: 1px solid #3f4147; box-shadow: 0 4px 16px rgba(0,0,0,.24); }
#dHome .wx-featured-card.server-card:hover { border-color: #5865f2; box-shadow: 0 10px 26px rgba(0,0,0,.38); }
#dHome .wx-featured-card.server-card::after { display: none; }
#dHome .wx-fc-banner { height: 100px; }
#dHome .wx-fc-banner.wx-fc-gradient::after { display: none; animation: none; }
#dHome .wx-fc-icon-wrap { margin-left: 14px; }
#dHome .wx-fc-icon { border-radius: 50%; border-color: #2b2d31; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
#dHome .wx-fc-verified { border-color: #2b2d31; background: #23a55a; }
#dHome .wx-fc-body { padding: 8px 14px 14px; }
#dHome .wx-fc-name > span:first-child { color: #f2f3f5; font-size: 15px; font-weight: 800; }
#dHome .wx-fc-open { color: #23a55a; background: rgba(35,165,90,.12); }
#dHome .wx-fc-desc, #dHome .wx-fc-stats { color: #b5bac1; }
#dHome .wx-fc-stats b { color: #f2f3f5; }
#dHome .wx-fc-join { border-radius: 4px; background: #5865f2; color: #fff; }
.discover-page-inner { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.discover-page-icon { font-size: 52px; color: var(--icon); }
.discover-page-inner h1 { color: var(--text-strong); }

.wizard-overlay { position: fixed; inset: 0; z-index: 970; background: rgba(0,0,0,.62); display: none; align-items: center; justify-content: center; padding: 40px 16px; }
.wizard-overlay.visible { display: flex; animation: fadeIn .2s ease; }
.wizard-window { position: relative; background: #313338; width: 480px; max-width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; border-radius: 16px; padding: 30px 30px 30px; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.wizard-window h1 { font-size: 22px; font-weight: 800; color: #f2f3f5; text-align: center; margin: 6px 0 6px; }
.wizard-sub { font-size: 13px; color: #949ba4; text-align: center; margin: 0 0 18px; line-height: 1.5; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: wizardStepIn .3s ease both; }
@keyframes wizardStepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.wizard-back { position: absolute; top: 14px; left: 14px; background: transparent; border: none; color: #b5bac1; font-size: 18px; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; }
.wizard-back:hover { color: #f2f3f5; background: rgba(255,255,255,.06); }
.wizard-choice { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 14px; background: #2b2d31; border: 2px solid transparent; border-radius: 10px; color: #f2f3f5; font-size: 15px; font-weight: 700; cursor: pointer; text-align: left; margin-bottom: 10px; transition: all .15s ease; }
.wizard-choice:hover { border-color: #5865f2; background: #35373c; }
.wizard-choice-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.wizard-choice-arrow { margin-left: auto; color: #949ba4; }
.wizard-divider { text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #949ba4; margin: 14px 0 12px; }
.wizard-invite { display: flex; gap: 8px; margin-bottom: 4px; }
.wizard-invite .settings-input { flex: 1; width: auto; }
.wizard-skip { text-align: center; font-size: 13px; color: #949ba4; margin: 14px 0 0; }
.wizard-skip a { color: #5865f2; text-decoration: none; }
.wizard-skip a:hover { text-decoration: underline; }
.wizard-icon-upload { position: relative; display: flex; justify-content: center; margin: 10px 0 18px; }
.wizard-icon-circle { width: 96px; height: 96px; border-radius: 50%; border: 2px dashed #404249; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #949ba4; cursor: pointer; overflow: hidden; position: relative; }
.wizard-icon-circle:hover { border-color: #5865f2; color: #b5bac1; }
.wizard-icon-circle i { font-size: 22px; }
.wizard-icon-circle span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.wizard-icon-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wizard-icon-plus { position: absolute; bottom: 4px; right: calc(50% - 66px); width: 28px; height: 28px; background: #5865f2; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid #313338; pointer-events: none; }
.wizard-field-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #b5bac1; margin-bottom: 6px; }
.wizard-required { color: #f23f43; }
.wizard-name { width: 100%; }
.wizard-legal { font-size: 11px; color: #949ba4; margin: 10px 0 16px; }
.wizard-legal a { color: #5865f2; text-decoration: none; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; }
.wizard-actions .settings-btn { padding: 10px 18px; }

.settings-footer { font-size: 10px; color: #7c818a; text-align: center; padding: 12px 6px 0; letter-spacing: .02em; }

@media (max-width: 900px) {
    .settings-window { flex-direction: column; }
    .settings-nav { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px; }
    .settings-content { padding: 16px; }
}

/* =================================================================
   WINEX — mikro animasyonlar (küçük, akıcı; GPU transform/opacity)
   ================================================================= */

/* Giriş kartı ve logo sahne açılışı */
.auth-card {
    animation: authCardIn .45s cubic-bezier(.16,1,.3,1) both;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(18px) scale(.96); }
    to { opacity: 1; transform: none; }
}

.auth-logo {
    animation: logoPop .55s cubic-bezier(.16,1.3,.3,1) .08s both;
}

@keyframes logoPop {
    0% { opacity: 0; transform: scale(.5) rotate(-12deg); }
    60% { transform: scale(1.08); }
    100% { opacity: 1; transform: none; }
}

/* Form adımları arası geçiş */
.auth-step {
    animation: authStepIn .3s ease both;
}

@keyframes authStepIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

/* Kod girişi */
.auth-code {
    text-align: center;
    letter-spacing: 12px;
    font-size: 26px !important;
    font-weight: 800;
    padding: 14px 12px !important;
}

/* Giriş alanları odak halkası */
.auth-card input,
.auth-card .auth-btn {
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.auth-card input {
    box-shadow: 0 0 0 0 transparent;
}

.auth-card input:focus {
    border-color: #5865f2;
    box-shadow: 0 0 0 3px rgba(88,101,242,.28);
}

.auth-btn {
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88,101,242,.38);
}

.auth-btn:active {
    transform: translateY(0) scale(.98);
}

/* DM listesindeki her öğe hafif sırayla belirir */
.f-li {
    animation: dmItemIn .32s ease both;
}

.f-li:nth-child(2) { animation-delay: .03s; }
.f-li:nth-child(3) { animation-delay: .06s; }
.f-li:nth-child(4) { animation-delay: .09s; }
.f-li:nth-child(5) { animation-delay: .12s; }

@keyframes dmItemIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: none; }
}

/* Sekme çubuğu butonları */
.buttons button {
    position: relative;
    transition: background-color .2s ease, color .2s ease, transform .18s ease;
}

.buttons button:active {
    transform: scale(.96);
}

/* Arkadaş satırları (ana panel) */
.friend-row {
    animation: rowFade .3s ease both;
}

@keyframes rowFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* Tüm aksiyon butonları */
.fr-btn {
    transition: transform .15s ease, filter .15s ease;
}

.fr-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.fr-btn:active {
    transform: translateY(0) scale(.96);
}

/* Sol ray simgeleri */
aside .icon i:hover {
    transform: translateY(-2px) scale(1.06);
}

aside .icon i:active {
    transform: translateY(0) scale(.96);
}

/* Sol raydaki yeşil + / pusula girişi */
.winner-rail,
main aside {
    animation: asideIn .35s ease both;
}

@keyframes asideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}

/* Sunucu kartları */
.server-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.server-card:hover {
    box-shadow: 0 14px 30px rgba(0,0,0,.4);
}

/* Boş durum logosu — sakin nefes animasyonu */
.empty-winex-logo {
    animation: breathe 3.4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: .82; }
    50% { transform: scale(1.05); opacity: .96; }
}

/* Çevrimiçi noktası — nazik nabız */
.img-wrapper.status-online::after {
    animation: onlinePulse 2.6s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { background-color: #23a55a; }
    50% { background-color: #3ddc78; }
}

/* Profil butonları */
main .sidebar-chat .profile .left:active {
    transform: scale(.97);
}

.health-chip {
    animation: chipIn .4s ease both;
}

@keyframes chipIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* Keşif sekmeleri */
.discover-tab {
    transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.discover-tab.active {
    border-color: var(--accent);
}

/* Hesap durumu penceresi — adımlar */
.health-step {
    animation: stepIn .35s ease both;
}

.health-step:nth-child(2) { animation-delay: .06s; }
.health-step:nth-child(3) { animation-delay: .12s; }
.health-step:nth-child(4) { animation-delay: .18s; }
.health-step:nth-child(5) { animation-delay: .24s; }

@keyframes stepIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.health-logo {
    animation: logoPop .5s cubic-bezier(.16,1.3,.3,1) both;
}

/* ===== WINEX Sohbet (DM) ===== */
.chat-view { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--side); z-index: 5; }
.chat-header { height: 62px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--side); }
.chat-back { background: transparent; border: none; color: var(--muted); font-size: 18px; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; }
.chat-back:hover { color: var(--text-strong); background: var(--hover); }
.chat-avatar { position: relative; width: 40px; height: 40px; flex: 0 0 auto; }
.chat-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hairline); }
.chat-status-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #23a55a; border: 2px solid var(--side); transition: background .2s ease; }
.chat-status-dot.idle { background: #f0b232; }
.chat-status-dot.dnd { background: #d9373c; }
.chat-status-dot.offline { background: #80848e; }
.chat-head-info { display: flex; flex-direction: column; min-width: 0; }
.chat-head-name { font-size: 15px; font-weight: 800; color: var(--text-strong); }
.chat-head-status { font-size: 12px; color: var(--muted); }
.chat-head-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn { background: transparent; border: none; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.icon-btn:hover { color: var(--text-strong); background: var(--hover); }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-messages::-webkit-scrollbar { width: 8px; }
.chat-messages::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 4px; }
.chat-msg { display: flex; gap: 12px; align-items: flex-start; animation: chatMsgIn .28s ease both; }
@keyframes chatMsgIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-msg-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.chat-msg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 78%; align-items: flex-start; }
.chat-msg-meta { display: flex; align-items: baseline; gap: 8px; justify-content: flex-start; }
.chat-msg-name { font-size: 13px; font-weight: 800; color: var(--text-strong); }
.chat-msg-time { font-size: 11px; color: var(--muted); }
.chat-msg-text { font-size: 14.5px; color: var(--bubble-other-fg); line-height: 1.45; background: var(--bubble-other); padding: 8px 12px; border-radius: 4px 12px 12px 12px; white-space: pre-wrap; word-wrap: break-word; }
.chat-msg.mine .chat-msg-text { background: var(--bubble-mine); color: var(--bubble-mine-fg); border-radius: 12px 12px 4px 12px; }
.chat-msg-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin: 12px 0; }
.chat-msg-divider::before, .chat-msg-divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.chat-composer { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--hairline); background: var(--side); }
.chat-composer input { flex: 1; background: var(--rail); border: 1px solid transparent; border-radius: 8px; padding: 12px 14px; color: var(--text-strong); font-size: 14.5px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.chat-composer input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88,101,242,.25); }
.chat-send { width: 46px; height: 46px; border: none; border-radius: 8px; background: var(--accent); color: #fff; font-size: 16px; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.chat-send:hover { background: #4752c4; transform: translateY(-1px); }
.chat-send:active { transform: translateY(0) scale(.96); }

.bottom.chat-hidden { display: none !important; }
/* ===== Sağ tık menüsü ===== */
.context-menu { position: fixed; z-index: 9999; background: #111214; border-radius: 8px; padding: 6px; min-width: 220px; box-shadow: 0 16px 40px rgba(0,0,0,.6); display: none; border: 1px solid #2a2b30; }
.ctx-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: none; color: #dbdee1; font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 5px; cursor: pointer; }
.ctx-item i { width: 18px; color: #949ba4; font-size: 13px; }
.ctx-item:hover { background: #5865f2; color: #fff; }
.ctx-item:hover i { color: #fff; }
.ctx-item.danger { color: #f23f43; }
.ctx-item.danger i { color: #f23f43; }
.ctx-item.danger:hover { background: #da373c; color: #fff; }
.ctx-item.danger:hover i { color: #fff; }
.ctx-hr { border: none; border-top: 1px solid #2a2b30; margin: 4px 8px; }

/* ===== Profil önizleme (Discord popout tarzı) ===== */
.profile-modal.popout { width: 340px; border-radius: 16px; overflow: hidden; }
.pm-more { position: absolute !important; top: 10px; right: 10px !important; z-index: 3; background: rgba(0,0,0,.35) !important; border-color: rgba(255,255,255,.45) !important; color: #fff !important; width: 32px !important; height: 32px !important; font-size: 16px !important; display: flex; align-items: center; justify-content: center; }
.pm-banner { height: 110px; background: linear-gradient(135deg, #5865f2 0%, #8b5cf6 55%, #eb459e 100%); position: relative; }
.pm-body { padding: 0 20px 20px; text-align: center; position: relative; margin-top: -46px; }
.pm-avatar-wrap { position: relative; display: inline-block; }
.pm-avatar { width: 104px; height: 104px; border-radius: 50%; border: 5px solid #313338; object-fit: cover; background: #5865f2; }
.pm-presence { position: absolute; bottom: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid #313338; background: #80848e; }
.pm-presence.online { background: #23a55a; }
.pm-presence.idle { background: #f0b232; }
.pm-presence.dnd { background: #d9373c; }
.pm-presence.invisible { background: #80848e; }
.pm-name-row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.pm-name { font-size: 20px; font-weight: 800; color: #f2f3f5; }
.pm-status-pill { font-size: 11px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: #404249; color: #b5bac1; display: none; }
.pm-username { font-size: 12px; font-weight: 600; color: #949ba4; margin-top: 4px; }
.pm-badges { display: flex; gap: 6px; justify-content: center; margin-top: 10px; min-height: 0; }
.pm-badge { width: 24px; height: 24px; border-radius: 6px; background: #2b2d31; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #dbdee1; }
.pm-status-text { font-size: 13px; color: #b5bac1; font-style: italic; margin-top: 10px; min-height: 18px; }
.pm-hr { border: none; border-top: 1px solid #1e1f22; margin: 14px 0; }
.pm-bio-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #949ba4; text-align: left; margin-bottom: 6px; }
.pm-bio { text-align: left; font-size: 14px; color: #dbdee1; background: #2b2d31; border-radius: 8px; padding: 10px 12px; min-height: 44px; }
.pm-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.f-li.muted p { opacity: .55; }
.nick-tag { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ===== WINEX Chat v2: yanıt, düzenleme, dosya, pin, arama ===== */
.chat-stage { position: relative; flex: 1; display: flex; min-height: 0; }
.chat-messages { scroll-behavior: smooth; }
.chat-search-bar { display: none; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--hairline); background: var(--side); }
.chat-search-bar.open { display: flex; }
.chat-search-ico { color: var(--muted); font-size: 13px; }
.chat-search-bar input { flex: 1; background: var(--rail); border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; color: var(--text-strong); outline: none; font-size: 13.5px; }
.chat-search-bar input:focus { border-color: var(--accent); }
.chat-search-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chat-search-close { background: transparent; border: none; color: var(--muted); cursor: pointer; }
.chat-pins { position: relative; top: auto; right: auto; bottom: auto; flex: 0 0 auto; width: 0; min-width: 0; max-width: 86%; overflow: hidden; border-left: 1px solid transparent; transition: width .22s ease, border-color .22s ease; display: flex; flex-direction: column; z-index: 6; background: #111214; }
.chat-pins-inner, .chat-pins-head, .chat-pins-list { width: 330px; }
.chat-pins.open { width: 330px; border-left-color: var(--hairline); transform: none; }
.chat-pins-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--hairline); font-size: 13px; font-weight: 800; color: var(--text-strong); }
.chat-pins-head button { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.chat-pins-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pin-row { background: #1e1f22; border: 1px solid #2a2b30; border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.pin-row:hover { border-color: var(--accent); }
.pin-author { font-size: 12px; font-weight: 800; color: var(--accent); }
.pin-text { font-size: 13px; color: #dbdee1; margin: 3px 0; word-wrap: break-word; }
.pin-time { font-size: 10.5px; color: var(--muted); }
.member-panel { position: fixed; top: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; width: 300px; max-width: 88vw; background: #111214; border-left: 1px solid var(--hairline); transform: translateX(102%); transition: transform .22s ease; display: flex; flex-direction: column; z-index: 96; }
.member-panel.open { transform: none; }
.member-panel-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.member-row:hover { background: #1e1f22; }
.member-row img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.member-row div { display: flex; flex-direction: column; min-width: 0; }
.member-name { font-size: 13.5px; font-weight: 700; color: var(--text-strong); }
.member-status { font-size: 11.5px; color: var(--muted); }

.chat-msg { position: relative; }
.chat-msg-actions { display: flex; gap: 2px; align-self: flex-start; margin-top: 18px; opacity: 0; pointer-events: none; transition: opacity .12s ease; background: #1e1f22; border: 1px solid #2a2b30; border-radius: 8px; padding: 2px; height: fit-content; }
.chat-msg:hover .chat-msg-actions { opacity: 1; pointer-events: auto; }
.chat-msg-actions button { width: 28px; height: 28px; border: none; background: transparent; color: #949ba4; border-radius: 5px; cursor: pointer; font-size: 11.5px; }
.chat-msg-actions button:hover { background: var(--accent); color: #fff; }
.chat-msg-actions button.danger:hover { background: #da373c; }
.chat-msg .chat-msg-text { text-align: left; }
.chat-msg.mine .chat-msg-reply { align-self: flex-start; }
.chat-msg-reply { display: flex; flex-direction: column; gap: 1px; background: rgba(0,0,0,.22); border-left: 3px solid #a9b1ff; padding: 4px 9px; border-radius: 6px; max-width: 100%; cursor: pointer; margin-bottom: 2px; }
.chat-msg-reply .rep-name { font-size: 11px; font-weight: 800; color: #c7cdff; }
.chat-msg-reply .rep-text { font-size: 11.5px; color: #dfe3ff; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msg-text.md { display: block; }
.chat-msg-text.md a { color: #c7cdff; text-decoration: underline; }
.chat-msg-text.md code { background: rgba(0,0,0,.28); border-radius: 4px; padding: 1px 5px; font-family: Consolas, monospace; font-size: 13px; }
.chat-msg-text.md pre.md-code { background: rgba(0,0,0,.34); border-radius: 8px; padding: 8px 10px; margin: 4px 0; overflow-x: auto; white-space: pre; }
.chat-msg-text.md .mention { background: rgba(255,255,255,.22); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.chat-msg-edited { font-size: 10px; color: rgba(255,255,255,.6); }
.chat-msg-files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.chat-file-img { display: block; max-width: 260px; }
.chat-file-img img { max-width: 260px; max-height: 200px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); object-fit: cover; }
.chat-file { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 7px 10px; color: #fff; text-decoration: none; font-size: 12.5px; max-width: 260px; }
.chat-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msg-pinned-tag { font-size: 10.5px; color: #ffd479; display: flex; align-items: center; gap: 4px; }
.chat-msg.flash { animation: msgFlash 1.5s ease; }
@keyframes msgFlash { 0%,100% { background: transparent; } 20% { background: rgba(88,101,242,.28); } 60% { background: rgba(88,101,242,.12); } }
.chat-msg.search-result { background: rgba(88,101,242,.07); border-radius: 8px; }

.chat-reply-bar { display: none; align-items: center; gap: 10px; padding: 7px 14px; background: #1e1f22; border-top: 1px solid var(--hairline); }
.chat-reply-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-reply-label { font-size: 11.5px; font-weight: 800; color: var(--accent); }
.chat-reply-text { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-reply-cancel { background: transparent; border: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 6px; }
.chat-reply-cancel:hover { background: var(--hover); color: var(--text-strong); }
.chat-input-wrap { position: relative; flex: 1; display: flex; }
.chat-input-wrap input { flex: 1; }
.chat-attach-preview { display: none; flex-wrap: wrap; gap: 8px; padding: 8px 14px 0; }
.attach-chip { display: flex; align-items: center; gap: 8px; background: #1e1f22; border: 1px solid #2a2b30; border-radius: 8px; padding: 6px 8px; max-width: 240px; }
.attach-chip img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.attach-chip i { width: 36px; text-align: center; color: var(--muted); }
.attach-name { font-size: 11.5px; font-weight: 700; color: #dbdee1; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach-size { font-size: 10.5px; color: var(--muted); }
.attach-remove { background: transparent; border: none; color: var(--muted); cursor: pointer; }
.attach-remove:hover { color: #f23f43; }
.chat-attach-btn { width: 46px; height: 46px; border: none; border-radius: 8px; background: var(--rail); color: var(--muted); cursor: pointer; font-size: 16px; flex: 0 0 auto; }
.chat-attach-btn:hover { color: var(--text-strong); background: var(--hover); }
.mention-pop { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: #111214; border: 1px solid #2a2b30; border-radius: 8px; padding: 5px; display: none; flex-direction: column; gap: 2px; z-index: 20; box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.mention-pop.open { display: flex; }
.mention-item { text-align: left; background: transparent; border: none; color: #dbdee1; padding: 7px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: 600; }
.mention-item:hover, .mention-item.active { background: var(--accent); color: #fff; }

/* DM listesi: rozet + grup */
.f-li .unread-badge { margin-left: auto; background: #f23f43; color: #fff; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.f-li.has-unread p { color: #fff; font-weight: 800; }
.dm-group-head { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; color: var(--muted); padding: 12px 10px 4px; }
.f-li-group .group-avatar { width: 34px; height: 34px; border-radius: 12px; overflow: hidden; }
.group-avatar-face { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, #5865f2, #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
#dmHeader i { cursor: pointer; margin-left: 6px; font-size: 12px; opacity: .8; }
#dmHeader i:hover { opacity: 1; }

/* Grup DM modal */
.group-modal { width: 420px; max-width: 92vw; border-radius: 14px; background: #313338; overflow: hidden; }
.group-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #1e1f22; }
.group-modal-head h3 { font-size: 17px; color: #f2f3f5; }
.group-modal-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.group-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #949ba4; margin-top: 4px; }
.group-friend-list { display: flex; flex-direction: column; gap: 3px; max-height: 260px; overflow-y: auto; }
.group-friend-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.group-friend-row:hover { background: #3a3c41; }
.group-friend-row input { accent-color: #5865f2; width: 16px; height: 16px; }
.group-friend-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.group-friend-row span { font-size: 14px; color: #dbdee1; font-weight: 600; }
.group-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; background: #2b2d31; }

/* ===== Sunucu rayı ===== */
.rail-sep { width: 28px; height: 2px; background: var(--hairline); border-radius: 1px; margin: 2px 0; }
.rail-servers { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; overflow-y: auto; padding-bottom: 8px; }
.rail-server { position: relative; width: 44px; height: 44px; border-radius: 14px; background: var(--hover); color: var(--text-strong); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; cursor: pointer; transition: border-radius .16s ease, background .16s ease, transform .16s ease; overflow: hidden; flex: 0 0 auto; }
.rail-server img { width: 100%; height: 100%; object-fit: cover; }
.rail-server:hover { border-radius: 50%; background: var(--accent); color: #fff; transform: translateY(-1px); }
.rail-server.active { border-radius: 50%; background: var(--accent); color: #fff; }
.rail-server.active::before { content: ""; position: absolute; left: -12px; width: 4px; height: 28px; border-radius: 0 4px 4px 0; background: #fff; }

/* ===== Sunucu kenar çubuğu ===== */
.server-view { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--side); display: none; flex-direction: column; z-index: 3; }
.server-view.open { display: flex; }
.server-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px; border-bottom: 1px solid var(--hairline); }
.server-head span { flex: 1; font-size: 15px; font-weight: 800; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-head button { background: transparent; border: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 6px; }
.server-head button:hover { background: var(--hover); color: var(--text-strong); }
.server-channels { flex: 1; overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.channel-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.channel-row i { font-size: 13px; width: 16px; text-align: center; }
.channel-row:hover { background: var(--hover); color: var(--text-strong); }
.channel-row.active { background: var(--hover); color: #fff; }
.channel-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-cat { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.channel-cat i { cursor: pointer; opacity: .7; font-size: 10px; }
.channel-cat i:hover { opacity: 1; color: var(--text-strong); }
.channel-add { margin-top: 8px; background: transparent; border: 1px dashed var(--hairline); color: var(--muted); border-radius: 6px; padding: 7px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.channel-add:hover { color: var(--text-strong); border-color: var(--accent); }
.server-foot { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--hairline); }
.server-foot button { flex: 1; background: var(--rail); border: none; color: var(--text-strong); border-radius: 6px; padding: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.server-foot button:hover { background: var(--hover); }
#serverSettingsBtn { flex: 0 0 38px; }
.channel-hash { width: 40px; height: 40px; border-radius: 12px; background: var(--rail); color: var(--text-strong); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; }

/* ===== Sunucu modalları ===== */
.channel-type-row { display: flex; gap: 8px; }
.channel-type { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; background: #2b2d31; border: 1px solid #404249; color: #b5bac1; border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.channel-type.active { border-color: #5865f2; background: rgba(88,101,242,.16); color: #fff; }
.server-settings-modal { width: 760px; max-width: 94vw; height: 560px; max-height: 88vh; background: #313338; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ss-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #1e1f22; }
.ss-head h3 { font-size: 17px; color: #f2f3f5; }
.ss-body { flex: 1; display: flex; min-height: 0; }
.ss-nav { width: 180px; background: #2b2d31; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.ss-nav-item { text-align: left; background: transparent; border: none; color: #b5bac1; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ss-nav-item:hover { background: #35373c; color: #f2f3f5; }
.ss-nav-item.active { background: #404249; color: #fff; }
.ss-pages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ss-page { display: none; flex-direction: column; gap: 10px; }
.ss-page.active { display: flex; }
.ss-list { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.ss-row { display: flex; align-items: center; gap: 9px; background: #2b2d31; border: 1px solid #3f4147; border-radius: 7px; padding: 8px 10px; font-size: 13.5px; color: #dbdee1; }
.ss-row i { color: #949ba4; width: 16px; text-align: center; }
.ss-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ss-role-tag { font-size: 11px; color: #949ba4; }
.ss-mini { background: transparent; border: none; color: #949ba4; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; }
.ss-mini:hover { background: #404249; color: #fff; }
.ss-mini.danger:hover { background: #da373c; color: #fff; }
.ss-role-row { display: flex; align-items: center; gap: 8px; background: #2b2d31; border: 1px solid #3f4147; border-radius: 7px; padding: 8px 10px; flex-wrap: wrap; }
.ss-role-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.ss-role-name { font-weight: 700; color: #f2f3f5; font-size: 13.5px; margin-right: auto; }
.ss-perm { font-size: 11.5px; color: #b5bac1; display: flex; align-items: center; gap: 4px; }
.ss-perm input { accent-color: #5865f2; }
.settings-color { width: 42px; height: 38px; border: none; background: transparent; padding: 0; }

/* ===== Çoklu hesap menüsü ===== */
.account-menu { position: absolute; bottom: calc(100% + 8px); left: 8px; right: 8px; background: #111214; border: 1px solid #2a2b30; border-radius: 10px; padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 60; box-shadow: 0 -12px 34px rgba(0,0,0,.55); }
.account-menu.open { display: flex; }
.account-menu-head { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 6px 8px 4px; }
.account-row { display: flex; align-items: center; gap: 9px; background: transparent; border: none; border-radius: 7px; padding: 7px 8px; cursor: pointer; text-align: left; width: 100%; color: #dbdee1; }
.account-row:hover { background: var(--hover); }
.account-row.current { background: rgba(88,101,242,.14); }
.account-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.account-row div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-email { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-check { color: #23a55a; font-size: 12px; }
.acc-remove { color: var(--muted); font-size: 11px; padding: 4px; }
.acc-remove:hover { color: #f23f43; }
.account-add { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px dashed #3a3c41; border-radius: 7px; padding: 8px; margin-top: 4px; color: #b5bac1; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.account-add:hover { color: #fff; border-color: var(--accent); }
.profile .right { display: flex; align-items: center; gap: 8px; }

/* ===== DM filtreleri / favoriler / arkadaş grupları ===== */
.dm-filters { display: flex; gap: 5px; padding: 8px 8px 4px; overflow-x: auto; scrollbar-width: none; }
.dm-filters::-webkit-scrollbar { display: none; }
.dm-filter { flex: 0 0 auto; background: var(--rail); border: 1px solid transparent; color: #b5bac1; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 20px; cursor: pointer; white-space: nowrap; }
.dm-filter:hover { color: #fff; border-color: #4b4d54; }
.dm-filter.active { background: rgba(88,101,242,.25); border-color: rgba(88,101,242,.6); color: #fff; }
.f-li .fav-star { color: #f0b232; font-size: 10px; margin-left: -4px; margin-right: -2px; }
.fg-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.fg-row { display: flex; align-items: center; gap: 9px; background: #2b2d31; border: 1px solid #3f4147; border-radius: 8px; padding: 9px 11px; }
.fg-row i.fa-folder { color: #f0b232; }
.fg-name { flex: 1; font-size: 13.5px; font-weight: 700; color: #f2f3f5; cursor: pointer; }
.fg-name:hover { text-decoration: underline; }
.fg-count { font-size: 11px; color: #949ba4; }
.fg-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow-y: auto; }
.fg-pick-row { display: flex; align-items: center; gap: 6px; background: #2b2d31; border: 1px solid #3f4147; border-radius: 20px; padding: 4px 10px 4px 6px; cursor: pointer; }
.fg-pick-row input { accent-color: #5865f2; }
.fg-pick-row img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.fg-pick-row span { font-size: 12px; color: #dbdee1; font-weight: 600; }

/* ===== Takvim ===== */
.calendar-modal { width: 860px; max-width: 96vw; height: 620px; max-height: 90vh; background: #313338; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #1e1f22; }
.cal-title { font-size: 16px; font-weight: 800; color: #f2f3f5; display: flex; align-items: center; gap: 8px; }
.cal-title i { color: #5865f2; }
.cal-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cal-nav button { background: transparent; border: none; color: #b5bac1; cursor: pointer; width: 28px; height: 28px; border-radius: 6px; }
.cal-nav button:hover { background: #404249; color: #fff; }
#calMonthLabel { font-size: 14px; font-weight: 700; color: #dbdee1; text-transform: capitalize; min-width: 140px; text-align: center; }
.cal-head .settings-close { position: static; }
.cal-body { flex: 1; display: flex; min-height: 0; }
.cal-grid-wrap { flex: 1; display: flex; flex-direction: column; padding: 12px 14px; min-width: 0; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-weekdays span { font-size: 10.5px; font-weight: 800; color: #949ba4; text-transform: uppercase; text-align: center; letter-spacing: .04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 4px; flex: 1; min-height: 0; }
.cal-cell { position: relative; background: #2b2d31; border: 1px solid transparent; border-radius: 8px; color: #dbdee1; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; }
.cal-cell:hover { border-color: #4b4d54; }
.cal-cell.other { color: #6d6f78; background: #26272b; }
.cal-cell.today .cal-daynum { color: #5865f2; font-weight: 800; }
.cal-cell.selected { border-color: #5865f2; background: rgba(88,101,242,.16); }
.cal-dots { display: flex; gap: 2px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal-day-events { margin-top: 10px; max-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.cal-day-head { font-size: 11.5px; font-weight: 800; color: #949ba4; text-transform: capitalize; }
.cal-event { display: flex; align-items: center; gap: 8px; background: #2b2d31; border-left: 3px solid #5865f2; border-radius: 6px; padding: 7px 10px; }
.ce-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ce-time { font-size: 10.5px; color: #949ba4; font-weight: 700; }
.ce-title { font-size: 13px; color: #f2f3f5; font-weight: 700; }
.ce-meta { font-size: 11px; color: #949ba4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-form { width: 280px; border-left: 1px solid #1e1f22; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
#iconCalendar { cursor: pointer; }
@media (max-width: 760px) { .cal-body { flex-direction: column; } .cal-form { width: auto; border-left: none; border-top: 1px solid #1e1f22; } .cal-grid { grid-auto-rows: 44px; } }

/* ===== Sesli kanal dock ===== */
.voice-dock { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none; align-items: center; gap: 10px; background: #111214; border: 1px solid #2a2b30; border-radius: 12px; padding: 9px 12px; box-shadow: 0 12px 34px rgba(0,0,0,.55); max-width: calc(100vw - 36px); }
.voice-dock.open { display: flex; }
.vd-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vd-info > i { color: #23a55a; font-size: 15px; }
.vd-info div { display: flex; flex-direction: column; min-width: 0; }
#vdRoom { font-size: 12.5px; font-weight: 800; color: #f2f3f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
#vdStatus { font-size: 10.5px; color: #23a55a; font-weight: 700; }
.vd-users { display: flex; gap: 4px; align-items: center; }
.vd-user { position: relative; width: 32px; height: 32px; }
.vd-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #23a55a; }
.vd-user.muted img { border-color: #6d6f78; }
.vd-user i { position: absolute; right: -3px; bottom: -3px; background: #111214; color: #dbdee1; font-size: 8px; border-radius: 50%; padding: 2px; }
.vd-user.muted i { color: #f23f43; }
.voice-dock > button { width: 36px; height: 36px; border-radius: 8px; border: none; background: #2b2d31; color: #dbdee1; cursor: pointer; font-size: 13px; }
.voice-dock > button:hover { background: #404249; color: #fff; }
.voice-dock > button.active { background: rgba(88,101,242,.3); color: #fff; }
.voice-dock > button.danger:hover { background: #da373c; color: #fff; }
.channel-voice-count { margin-left: auto; background: #23a55a; color: #fff; font-size: 10px; font-weight: 800; border-radius: 8px; padding: 1px 6px; }
.channel-row.connected { color: #23a55a; }
.channel-row.connected i { color: #23a55a; }

/* ===== Video katmanı ===== */
.video-layer { position: fixed; top: 16px; right: 16px; z-index: 95; display: none; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; max-width: min(620px, 60vw); }
.video-layer.open { display: grid; }
.video-tile { position: relative; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid #2a2b30; min-height: 120px; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-tile .vt-name { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px #000; }
@media (max-width: 720px) { .video-layer { max-width: calc(100vw - 24px); left: 12px; right: 12px; grid-template-columns: 1fr 1fr; } .voice-dock { left: 10px; right: 10px; bottom: 10px; } }

/* ===== Mağaza ===== */
.shop-modal { width: 720px; max-width: 94vw; max-height: 88vh; background: #313338; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.shop-banner { display: flex; align-items: center; gap: 14px; margin: 16px 18px 6px; padding: 18px; border-radius: 12px; background: linear-gradient(120deg,#5865f2,#8b5cf6); color: #fff; }
.shop-banner-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.shop-banner-txt b { font-size: 16px; }
.shop-banner-txt span { font-size: 12.5px; opacity: .9; }
.shop-banner > i { font-size: 34px; opacity: .85; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; padding: 14px 18px; overflow-y: auto; }
.shop-card { background: #2b2d31; border: 1px solid #3f4147; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.shop-ico { font-size: 22px; }
.shop-name { font-size: 14px; font-weight: 800; color: #f2f3f5; }
.shop-desc { font-size: 11.5px; color: #949ba4; flex: 1; }
.shop-card .settings-btn { margin-top: 6px; }

/* ============ MOBILE OVERHAUL (<=750px) ============ */
.icons-end .mobile-panel-back { display: none; } /* winex-inline.css .icon-btn{display:inline-flex} kuralından daha özgül */
@media screen and (max-width: 750px) {
    html, body { height: 100%; overflow: hidden; }
    main { height: 100vh; height: 100dvh; overflow: hidden; }
    main aside { position: fixed; left: 0; top: 0; bottom: 0; width: 60px; padding: 10px 4px; gap: 8px; z-index: 36; height: 100dvh; }
    aside .icon i { width: 42px; height: 42px; font-size: 17px; border-radius: 14px; }
    aside img { width: 40px; height: 40px; }
    .rail-servers { overflow-y: auto; scrollbar-width: none; }
    main .sidebar-chat { position: fixed; left: 60px; top: 0; bottom: 0; width: calc(100vw - 60px); height: 100dvh; z-index: 26; }
    main .sidebar-chat .list { padding-bottom: 4px; }
    main .rightside-area { display: none; }
    body.mobile-chat-open main .rightside-area,
    body.mobile-panel-open main .rightside-area { display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: 60px; width: auto; height: 100dvh; z-index: 46; background: var(--side); }
    body.mobile-chat-open main aside,
    body.mobile-panel-open main aside { display: flex; z-index: 47; }
    body.mobile-chat-open .sidebar-chat,
    body.mobile-panel-open .sidebar-chat { display: none; }
    .chat-back { display: inline-flex; align-items: center; justify-content: center; }
    .icons-end .mobile-panel-back { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }
    main .rightside-area nav { padding: 10px 8px; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    main .rightside-area nav .buttons { overflow-x: auto; scrollbar-width: none; }
    main .rightside-area nav .icons-end { display: flex; flex-shrink: 0; }
    .chat-header { padding: 8px 10px; gap: 6px; }
    .chat-head-name { font-size: 15px; }
    .chat-input-wrap, .chat-input { font-size: 16px; }
    .member-panel, .chat-pins { width: 100vw; max-width: 100vw; z-index: 60; }
    .settings-overlay { padding: 0; zoom: 1; }
    .settings-window { width: 100vw; height: 100dvh; max-width: 100vw; border-radius: 0; flex-direction: column; }
    .settings-nav { width: 100%; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .settings-nav::-webkit-scrollbar { display: none; }
    .settings-nav-label { display: none; }
    .settings-nav-item { flex: 0 0 auto; white-space: nowrap; border-radius: 18px; }
    .settings-logout { flex: 0 0 auto; white-space: nowrap; }
    .settings-footer { display: none; }
    .settings-content { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .settings-row { flex-wrap: wrap; gap: 10px; }
    .settings-inline-form { flex-wrap: wrap; }
    .settings-input { min-width: 0; }
    .wizard-window { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; min-height: 100dvh; }
    .wizard-overlay { padding: 0; }
    .profile-modal { width: calc(100vw - 24px); max-width: 100vw; }
    .group-modal { width: calc(100vw - 24px); }
    .discover-grid, .server-grid { grid-template-columns: 1fr !important; }
    .context-menu { max-width: 78vw; }
    .toast { width: max-content; max-width: 90vw; text-align: center; }
    .account-menu { right: 0; width: 92vw; max-width: 320px; }
    .status-menu { left: 0; }
    .dm-filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .channel-hash { width: 44px; height: 44px; font-size: 16px; }
}
@media screen and (max-width: 420px) {
    main aside { width: 52px; }
    main .sidebar-chat { left: 52px; width: calc(100vw - 52px) !important; }
    body.mobile-chat-open main .rightside-area,
    body.mobile-panel-open main .rightside-area { left: 52px; }
    aside .icon i { width: 38px; height: 38px; font-size: 15px; }
    main .rightside-area nav .left-side .one p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *:not(:is([data-frame],[data-frame] img,[class*="wx-nfx-"],[class*="wx-ban-"],.wx-title,.badge-mini,.badge-mini *,.badge-ico,.badge-ico *,.pm-badge-chip *,.wx-slogan,#accountSwitchBtn,#accountSwitchBtn *,.account-menu,.account-menu *)), *:not(:is([data-frame],[data-frame] img,[class*="wx-nfx-"],[class*="wx-ban-"],.wx-title,.badge-mini,.badge-mini *,.badge-ico,.badge-ico *,.pm-badge-chip *,.wx-slogan,#accountSwitchBtn,#accountSwitchBtn *,.account-menu,.account-menu *))::before, *:not(:is([data-frame],[data-frame] img,[class*="wx-nfx-"],[class*="wx-ban-"],.wx-title,.badge-mini,.badge-mini *,.badge-ico,.badge-ico *,.pm-badge-chip *,.wx-slogan,#accountSwitchBtn,#accountSwitchBtn *,.account-menu,.account-menu *))::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

@media screen and (min-width: 751px) { .chat-back { display: none; } }


/* ============ KOZMETİKLER ============ */
/* Rozet renk değişkenleri */
.badge-early{--badge-bg:#f0b232;--badge-fg:#3d2e00}
.badge-verified{--badge-bg:#23a55a;--badge-fg:#04180c}
.badge-bug{--badge-bg:#8b5cf6;--badge-fg:#1c1030}
.badge-code{--badge-bg:#0ea5e9;--badge-fg:#032232}
.badge-star{--badge-bg:#ffd166;--badge-fg:#3a2b00}
.badge-fire{--badge-bg:#f97316;--badge-fg:#351100}
.badge-gem{--badge-bg:#67e8f9;--badge-fg:#032630}
.badge-crown{--badge-bg:#facc15;--badge-fg:#3d2e00}
.badge-rainbow{--badge-bg:linear-gradient(90deg,#ff5f6d,#ffc371,#a8ff78,#00d2ff,#c86bff);--badge-fg:#111}
.badge-legend{--badge-bg:#d9373c;--badge-fg:#2e0505}
.badge-artist{--badge-bg:#f472b6;--badge-fg:#300c20}
.badge-gamer{--badge-bg:#22c55e;--badge-fg:#04180c}
.badge-night{--badge-bg:#6366f1;--badge-fg:#0d0f2e}
.badge-sun{--badge-bg:#fde68a;--badge-fg:#3a2b00}
.badge-heart{--badge-bg:#fb7185;--badge-fg:#330d16}
.badge-mini{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:4px;background:var(--badge-bg);color:var(--badge-fg);font-size:9px;margin-left:4px;vertical-align:-2px}
.pm-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:10px 0 2px;min-height:6px}
.pm-badge-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:14px;background:var(--badge-bg);color:var(--badge-fg);font-size:11.5px;font-weight:800}
.pm-badges-empty{font-size:12px;color:#80848e}

/* Büyük halka çerçeveler — box-shadow parıltısı (layout'u bozmaz) */
.pm-avatar-wrap{position:relative;display:inline-block;line-height:0}
@keyframes frameSpin{to{transform:rotate(360deg)}}
.shop-frame-preview{position:relative;width:88px;height:88px;margin:0 auto;border-radius:50%}
.shop-frame-preview img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:4px solid #2b2d31}
[data-frame="neon"]{--ring:conic-gradient(#00fff0,#ff00e5,#00fff0);--spin:2.6s;--fr1:#00fff0;--fr2:rgba(0,255,240,.75)}
[data-frame="galaxy"]{--ring:conic-gradient(#7c3aed,#2563eb,#db2777,#7c3aed);--spin:4s;--fr1:#7c3aed;--fr2:rgba(124,58,237,.7)}
[data-frame="fire"]{--ring:conic-gradient(#f97316,#ef4444,#facc15,#f97316);--spin:1.6s;--fr1:#f97316;--fr2:rgba(249,115,22,.8)}
[data-frame="rainbow"]{--ring:conic-gradient(#ff5f6d,#ffc371,#a8ff78,#00d2ff,#c86bff,#ff5f6d);--spin:3s;--fr1:#ff5f6d;--fr2:rgba(255,95,109,.7)}
[data-frame="gold"]{--ring:conic-gradient(#f5d97a,#b8860b,#fff3c4,#d4af37,#f5d97a);--spin:3.4s;--fr1:#d4af37;--fr2:rgba(212,175,55,.8)}
[data-frame="pulse"]{--ring:#5865f2;--spin:1.4s;--fr1:#5865f2;--fr2:rgba(88,101,242,.8)}
[data-frame="pulse"]::before{animation:framePulse 1.5s ease-in-out infinite}
@keyframes framePulse{50%{transform:scale(1.09);opacity:.7}}
[data-frame="matrix"]{--ring:repeating-conic-gradient(#00ff41 0 18deg,#03210c 18deg 36deg);--spin:2.8s;--fr1:#00ff41;--fr2:rgba(0,255,65,.7)}
[data-frame="sakura"]{--ring:conic-gradient(#ffb7d5,#ff8fb8,#ffc8dd,#ff8fb8,#ffb7d5);--spin:3.6s;--fr1:#ffb7d5;--fr2:rgba(255,143,184,.75)}
[data-frame="cyberpunk"]{--ring:conic-gradient(#fcee0a,#00f0ff,#fcee0a);--spin:1.8s;--fr1:#fcee0a;--fr2:rgba(0,240,255,.75)}
[data-frame="frost"]{--ring:conic-gradient(#a5f3fc,#e0f2fe,#67e8f9,#a5f3fc);--spin:5s;--fr1:#a5f3fc;--fr2:rgba(165,243,252,.7)}
[data-frame="aurora"]{--ring:conic-gradient(#34d399,#22d3ee,#a78bfa,#34d399);--spin:6s;--fr1:#22d3ee;--fr2:rgba(52,211,153,.7)}

/* Küçük avatarlarda parlayan halka */
.pm-avatar[data-frame]:not([data-frame="none"]),
.shop-frame-preview[data-frame]:not([data-frame="none"]) img,
.fr-av[data-frame]:not([data-frame="none"]),
.chat-msg-avatar[data-frame]:not([data-frame="none"]),
#profileAvatar[data-frame]:not([data-frame="none"]),
#chatAvatar[data-frame]:not([data-frame="none"]){border-radius:50%;animation:frameGlow 2.4s ease-in-out infinite;box-shadow:0 0 0 3px var(--fr1),0 0 12px 3px var(--fr2)}
@keyframes frameGlow{50%{box-shadow:0 0 0 3px var(--fr2),0 0 17px 5px var(--fr1)}}

/* Mağaza sekmeleri */
.shop-tabs{display:flex;gap:6px;padding:14px 18px 0;border-bottom:1px solid #3f4147;background:#2b2d31;border-radius:16px 16px 0 0}
.shop-tab{background:transparent;border:none;color:#b5bac1;padding:9px 14px;border-radius:8px 8px 0 0;cursor:pointer;font-weight:700;font-size:13px;border-bottom:2px solid transparent}
.shop-tab:hover{color:#fff}
.shop-tab.active{color:#fff;border-bottom-color:#5865f2}
.shop-ico{font-size:30px;text-align:center}
.shop-ico.badge-ico{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--badge-bg);color:var(--badge-fg);font-size:26px;margin:0 auto}
.shop-card .settings-btn.primary{background:#5865f2;color:#fff;border-color:#5865f2}
.shop-font-preview{font-size:22px;color:#dbdee1;background:#1e1f22;border:1px dashed #3f4147;border-radius:8px;text-align:center;padding:14px 8px}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:14px 18px;overflow-y:auto;max-height:52vh}

.ss-role-lock{color:#99aab5;margin-left:auto;align-self:center}
.ss-role-default{background:rgba(88,101,242,.08)!important}


.splitter{width:6px;cursor:col-resize;background:transparent;align-self:stretch;z-index:30;transition:background .15s ease}
.splitter:hover{background:rgba(88,101,242,.4)}
.splitter.dragging{background:rgba(88,101,242,.7)}
@media screen and (max-width:750px){.splitter{display:none}}


/* Grup DM (çoklu avatar kolajı) */
.group-avatar{overflow:hidden;border-radius:22%}
.group-avatar-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);width:100%;height:100%;gap:1px;background:#2b2d31}
.group-avatar-grid[data-count="2"]{grid-template-rows:1fr}
.group-avatar-grid img{width:100%;height:100%;object-fit:cover}
.group-avatar-single{width:100%;height:100%}
.group-avatar-single img{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* ============ STANDART PLAN TANITIMI + PLAN PENCERESI ============ */
.promo-card{position:fixed;right:18px;bottom:18px;z-index:940;display:flex;align-items:center;gap:10px;background:#1e1f22;border:1px solid #3f4147;border-radius:14px;padding:10px 12px;box-shadow:0 14px 40px rgba(0,0,0,.45);max-width:300px;animation:promoIn .45s cubic-bezier(.2,1.4,.4,1)}
@keyframes promoIn{from{opacity:0;transform:translateY(16px) scale(.95)}to{opacity:1;transform:none}}
.promo-close{position:absolute;top:4px;right:6px;background:transparent;border:none;color:#80848e;cursor:pointer;font-size:11px}
.promo-close:hover{color:#fff}
.promo-icon{width:42px;height:42px;flex:0 0 42px;border-radius:10px;background:linear-gradient(135deg,#5865f2,#8b5cf6);display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px}
.promo-txt{display:flex;flex-direction:column;gap:2px;padding-right:14px}
.promo-txt b{font-size:12.5px;color:#f2f3f5;line-height:1.3}
.promo-txt span{font-size:12px;color:#dbdee1}
.promo-more{flex:0 0 auto;background:#5865f2;color:#fff;border:none;border-radius:8px;font-weight:700;font-size:12px;padding:8px 12px;cursor:pointer}
.promo-more:hover{background:#4752c4}
@media (max-width:1100px){.promo-card{display:none}}
.plan-modal{position:relative;width:min(880px,96vw);max-height:92vh;max-height:92dvh;overflow-y:auto;background:#313338;border-radius:18px;padding:26px 28px 20px;box-shadow:0 24px 64px rgba(0,0,0,.55);animation:authPop .25s;scrollbar-width:thin}
.plan-head h2{font-size:24px;font-weight:900;color:#fff;margin:0 0 4px}
.plan-head p{color:#b5bac1;font-size:13.5px;margin:0 0 16px}
.plan-billing{display:flex;gap:8px;margin-bottom:18px}
.plan-bill{background:#1e1f22;border:1px solid #3f4147;color:#b5bac1;border-radius:10px;padding:9px 18px;font-weight:700;cursor:pointer;font-size:13.5px}
.plan-bill.active{background:#5865f2;border-color:#5865f2;color:#fff}
.plan-save{background:#23a55a;color:#04220f;border-radius:10px;font-size:10.5px;padding:2px 7px;margin-left:6px;vertical-align:1px}
.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:760px){.plan-grid{grid-template-columns:1fr}}
.plan-card{position:relative;background:#2b2d31;border:1px solid #3f4147;border-radius:14px;padding:20px 18px;display:flex;flex-direction:column;gap:8px}
.plan-card.pro{border-color:#d4af37;background:linear-gradient(160deg,#2b2d31 60%,#3a2f10)}
.plan-badge{position:absolute;top:-11px;left:16px;background:#5865f2;color:#fff;font-size:11px;font-weight:800;letter-spacing:.4px;padding:4px 12px;border-radius:20px}
.pro-badge{background:linear-gradient(90deg,#facc15,#d97706);color:#332200}
.plan-name{font-size:15px;font-weight:800;color:#b5bac1;text-transform:uppercase;letter-spacing:1.5px}
.plan-price{font-size:44px;font-weight:900;color:#fff;line-height:1}
.plan-price small{font-size:14px;font-weight:600;color:#b5bac1}
.plan-note{font-size:12.5px;color:#f0b232;min-height:18px}
.plan-feats{list-style:none;margin:6px 0 10px;padding:0;display:flex;flex-direction:column;gap:8px;font-size:13.5px;color:#dbdee1}
.plan-feats i{color:#23a55a;margin-right:8px;width:16px}
.plan-cta{width:100%;margin-top:auto}
.settings-btn.gold{background:linear-gradient(90deg,#facc15,#d97706);border-color:#facc15;color:#332200;font-weight:800}
.settings-btn.gold:hover{filter:brightness(1.08)}
.plan-foot{font-size:12px;color:#80848e;text-align:center;margin:14px 4px 0;line-height:1.5}

/* ============ Discord tarzı onay kutusu ============ */
input[type="checkbox"]:not(.switch input){appearance:none;-webkit-appearance:none;width:20px;height:20px;border-radius:5px;border:1px solid #3f4147;background:#1e1f22;cursor:pointer;vertical-align:-4px;position:relative;transition:background .12s ease,border-color .12s ease;outline:none}
input[type="checkbox"]:not(.switch input):hover{border-color:#5865f2}
input[type="checkbox"]:not(.switch input):checked{background:#5865f2;border-color:#5865f2}
input[type="checkbox"]:not(.switch input):checked::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
input[type="checkbox"]:not(.switch input):focus-visible{box-shadow:0 0 0 3px rgba(88,101,242,.35)}
.badge-anchor{--badge-bg:#164e63;--badge-fg:#bfeaff}
.badge-brain{--badge-bg:#c084fc;--badge-fg:#2a0a4a}
.badge-feather{--badge-bg:#fb923c;--badge-fg:#3a1a00}
.badge-leaf{--badge-bg:#4ade80;--badge-fg:#052e10}
.badge-music{--badge-bg:#f472b6;--badge-fg:#330a1d}
.badge-camera{--badge-bg:#94a3b8;--badge-fg:#0f172a}
.badge-book{--badge-bg:#fde68a;--badge-fg:#3a2b00}
.badge-shield{--badge-bg:#60a5fa;--badge-fg:#0a1c3a}
[data-frame="void"]{--ring:conic-gradient(#0f0f1a,#4c1d95,#000,#4c1d95,#0f0f1a);--spin:5s;--fr1:#4c1d95;--fr2:rgba(139,92,246,.7)}
[data-frame="glitch"]{--ring:conic-gradient(#ff00ff 0 60deg,#00ffff 60deg 120deg,#ff00ff 120deg 180deg,#00ffff 180deg 240deg,#ff00ff 240deg 300deg,#00ffff 300deg 360deg);--spin:.9s;--fr1:#ff00ff;--fr2:rgba(0,255,255,.7)}
[data-frame="sunbeam"]{--ring:conic-gradient(#fbbf24,#f97316,#ef4444,#f97316,#fbbf24);--spin:2s;--fr1:#fbbf24;--fr2:rgba(251,191,36,.8)}
[data-frame="emerald"]{--ring:conic-gradient(#10b981,#34d399,#065f46,#34d399,#10b981);--spin:3.6s;--fr1:#10b981;--fr2:rgba(16,185,129,.7)}
[data-frame="ruby"]{--ring:conic-gradient(#ef4444,#f87171,#7f1d1d,#f87171,#ef4444);--spin:2.8s;--fr1:#ef4444;--fr2:rgba(239,68,68,.75)}
[data-frame="silver"]{--ring:conic-gradient(#e2e8f0,#94a3b8,#f8fafc,#64748b,#e2e8f0);--spin:4.4s;--fr1:#cbd5e1;--fr2:rgba(226,232,240,.7)}

/* AYARLAR - Discord ince ayarlari */
.settings-overlay{zoom:1 !important}
.settings-window{border:1px solid rgba(255,255,255,.07)}
.settings-close{border:none;background:#1e1f22;border-radius:12px;width:40px;height:40px;font-size:15px;color:#b5bac1;transition:transform .25s ease,background .15s ease,color .15s ease}
.settings-close:hover{background:#2b2d31;color:#fff;transform:rotate(90deg)}
.settings-nav{width:265px;padding:18px 10px 14px 20px}
.settings-user{background:linear-gradient(135deg,#2e3037 0%,#232428 100%);border:1px solid #3f4147;border-radius:12px;padding:12px;margin-bottom:12px}
.settings-user img{border:2px solid #5865f2;padding:2px;object-fit:cover}
.settings-user .su-name{font-size:16px}
.settings-user .su-edit{color:#00a8fc;font-weight:600}
.settings-user .su-edit:hover{color:#33baff;text-decoration:underline}
.settings-nav input.settings-search{border:1px solid transparent;transition:border-color .15s ease}
.settings-nav input.settings-search:focus{border-color:#5865f2}
.settings-nav-item{position:relative;border-radius:7px;padding:8px 12px;font-weight:600}
.settings-nav-item.active{background:#404249;color:#fff}
.settings-logout{width:100%;margin-top:auto}
.settings-section{padding:24px 32px}
.settings-section h2{font-size:22px;font-weight:800;color:#fff;letter-spacing:.2px;border-bottom:1px solid #3f4147;padding-bottom:12px;margin-bottom:14px}
.settings-footer{border-top:1px solid #3f4147;padding-top:10px}

/* ===================== WINEX yama 3 ===================== */

/* #1 — Çerçeve artık profil resminin ÜSTÜNDE, kenar boyunca durur (dışarı taşmaz) */
@property --wx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes wxRingSpin { to { --wx-ang: 360deg; } }
[data-frame], .shop-frame-preview[data-frame] img {
    --wx-c1: var(--a, var(--fr1, #5865f2));
    --wx-c2: var(--b, var(--fr2, #ffffff));
    --wx-stops: var(--wx-c1), var(--wx-c2), var(--wx-c1);
}
html img[data-frame]:not([data-frame="none"]),
html .shop-frame-preview[data-frame]:not([data-frame="none"]) img {
    box-sizing: border-box !important;
    padding: var(--wx-fw, 3px) !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-image: conic-gradient(from var(--wx-ang), var(--wx-stops)) !important;
    background-size: 100% 100% !important;
    background-origin: border-box !important;
    animation: wxRingSpin 4s linear infinite !important;
    filter: drop-shadow(0 0 3px var(--wx-c2));
}
html .pm-avatar[data-frame]:not([data-frame="none"]) { --wx-fw: 6px; }
html .shop-frame-preview[data-frame]:not([data-frame="none"]) img { --wx-fw: 5px; }
html .wx-live img[data-frame]:not([data-frame="none"]), html .wx-pe-body img[data-frame]:not([data-frame="none"]) { --wx-fw: 4px; }
html[data-fx=off] img[data-frame]:not([data-frame="none"]),
html[data-anim=off] img[data-frame]:not([data-frame="none"]) { animation: none !important; }

/* #2/#3/#4 — Canlı önizleme */
.wx-live { flex-direction: column; align-items: stretch; gap: 0; padding: 10px; overflow: hidden; }
.wx-lv-ban { height: 58px; border-radius: calc(var(--wx-r, 12px) - 2px); background: linear-gradient(135deg, #5865f2, #eb459e); }
.wx-lv-row { display: flex; align-items: center; gap: 14px; margin-top: -26px; padding: 0 8px; position: relative; }
.wx-lv-row img { box-shadow: 0 0 0 4px var(--side, #2b2d31); }
.wx-lv-info { min-width: 0; padding-top: 24px; }
.wx-lv-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-live .wx-b { margin-top: 2px; }

/* #4 — Ünvanlar */
.wx-title { transition: filter .2s; }
.wx-title:hover { filter: brightness(1.2); }

/* #6 — Afiş animasyonları */
@keyframes wxBanFlow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes wxBanSlide { to { background-position: 56px 56px; } }
.wx-ban-flow { background-size: 300% 300% !important; animation: wxBanFlow 9s ease-in-out infinite alternate; }
.wx-ban-slide { animation: wxBanSlide 6s linear infinite; }
html[data-anim=off] .wx-ban-flow, html[data-anim=off] .wx-ban-slide { animation: none !important; }

/* #7 — Site içi giriş kutusu */
.wx-pr-ov { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s; padding: 16px; }
.wx-pr-ov.show { opacity: 1; }
.wx-pr-box { width: 420px; max-width: 100%; background: var(--card, #313338); color: var(--text-strong, #fff); border-radius: 14px; padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.55); transform: scale(.94) translateY(8px); transition: transform .22s cubic-bezier(.2,1.3,.4,1); }
.wx-pr-ov.show .wx-pr-box { transform: none; }
.wx-pr-box h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.wx-pr-box label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #b5bac1); margin-bottom: 6px; }
.wx-pr-box input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--hairline, #3f4147); background: var(--side, #1e1f22); color: inherit; font-size: 15px; outline: none; }
.wx-pr-box input:focus { border-color: var(--wx-accent, #5865f2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wx-accent, #5865f2) 30%, transparent); }
.wx-pr-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* #8 — Kendine not DM'i */
.f-li.wx-self { order: -1; }
.wx-you { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--wx-accent, #5865f2) 30%, transparent); color: var(--wx-accent, #8ea1ff); vertical-align: middle; margin-left: 4px; letter-spacing: .3px; }
.wx-pin { margin-left: auto; font-size: 11px; opacity: .5; }
.wx-self-empty { margin: auto; max-width: 340px; text-align: center; padding: 40px 20px; color: var(--muted, #b5bac1); }
.wx-self-empty i { font-size: 38px; color: var(--wx-accent, #5865f2); margin-bottom: 10px; }
.wx-self-empty h3 { margin: 0 0 6px; color: var(--text-strong, #fff); }
.wx-self-empty p { font-size: 13px; line-height: 1.5; margin: 0; }
.wx-self-del { border: 0; background: transparent; color: var(--muted, #b5bac1); cursor: pointer; margin-left: 6px; opacity: 0; font-size: 11px; transition: opacity .15s, color .15s; }
.wx-self-msg:hover .wx-self-del { opacity: 1; }
.wx-self-del:hover { color: #ed4245; }

/* #9 — Koleksiyon */
.col-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.col-tabs { display: flex; gap: 6px; }
.col-tabs button { border: 0; background: var(--hover, rgba(127,127,127,.15)); color: inherit; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .16s, background .2s; }
.col-tabs button:hover { transform: translateY(-1px); }
.col-tabs button.on { background: var(--wx-accent, #5865f2); color: #fff; }
.col-only { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted, #b5bac1); }
.col-count { margin-bottom: 14px; font-size: 15px; }
.col-count b { font-size: 22px; }
.col-count span { color: var(--muted, #b5bac1); font-size: 12px; margin-left: 4px; }
.col-bar { height: 8px; border-radius: 999px; background: rgba(127,127,127,.2); overflow: hidden; margin-top: 8px; }
.col-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wx-accent, #5865f2), #eb459e); transition: width .5s cubic-bezier(.2,1,.3,1); }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 12px; }
.col-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 108px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--hairline, #3f4147); background: var(--side, #2b2d31); color: inherit; cursor: pointer; content-visibility: auto; contain-intrinsic-size: auto 108px; transition: transform .18s cubic-bezier(.2,1.4,.4,1), box-shadow .2s; }
.col-cell.own:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.col-cell.locked { opacity: .45; filter: grayscale(.9); }
.col-cell.r-legend.own { border-color: #f5c542; box-shadow: 0 0 0 1px #f5c54255; }
.col-cell.r-epic.own { border-color: #b36bff; }
.col-cell.r-rare.own { border-color: #4da3ff; }
.col-ico { display: flex; width: 48px; height: 48px; border-radius: 13px; align-items: center; justify-content: center; font-size: 22px; background: var(--badge-bg); color: var(--badge-fg); }
.col-tt { margin: 0 !important; font-size: 11px !important; white-space: normal !important; text-align: center; }
.col-nm { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.col-lock { position: absolute; top: 7px; right: 8px; font-size: 10px; opacity: .8; }

/* 3D kart */
.wx-c3-ov { position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, rgba(40,40,70,.85), rgba(0,0,0,.92)); opacity: 0; transition: opacity .22s; perspective: 1000px; }
.wx-c3-ov.show { opacity: 1; }
.wx-c3-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #cfd2da; }
.wx-c3-stage small { opacity: .6; font-size: 12px; }
.wx-c3-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --o: 0; position: relative; width: 300px; height: 420px; max-width: 80vw; border-radius: 20px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(.9); transition: transform .12s ease-out; box-shadow: 0 30px 70px rgba(0,0,0,.6); background: #1b1c22; }
.wx-c3-ov.show .wx-c3-card { transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1); }
.wx-c3-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 4px; background: var(--rim, linear-gradient(135deg, #888, #444)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.wx-c3-card.r-legend { --rim: linear-gradient(135deg, #ffe27a, #ff9d2e, #fff0a8, #ff9d2e); }
.wx-c3-card.r-epic { --rim: linear-gradient(135deg, #d59bff, #6a4cff, #d59bff); }
.wx-c3-card.r-rare { --rim: linear-gradient(135deg, #7cc4ff, #2f6bff, #7cc4ff); }
.wx-c3-in { position: absolute; inset: 10px; border-radius: 14px; display: flex; flex-direction: column; padding: 14px; background: linear-gradient(160deg, #272a36, #14151b); transform: translateZ(18px); }
.wx-c3-top, .wx-c3-foot { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.wx-c3-art { flex: 1; display: flex; align-items: center; justify-content: center; transform: translateZ(40px); }
.c3-ico { display: flex; width: 130px; height: 130px; border-radius: 32px; align-items: center; justify-content: center; font-size: 62px; background: var(--badge-bg); color: var(--badge-fg); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.c3-tt { font-size: 18px !important; padding: 8px 14px !important; margin: 0 !important; white-space: normal !important; text-align: center; border-radius: 12px !important; }
.wx-c3-name { font-size: 22px; font-weight: 900; text-align: center; color: #fff; transform: translateZ(30px); }
.wx-c3-desc { font-size: 12.5px; text-align: center; margin: 6px 0 14px; opacity: .75; min-height: 32px; }
.wx-c3-foil, .wx-c3-glare { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; opacity: calc(var(--o) * .6); transition: opacity .2s; }
.wx-c3-foil { background: linear-gradient(115deg, transparent 20%, rgba(255,0,150,.6) 35%, rgba(0,229,255,.6) 50%, rgba(120,255,120,.6) 65%, transparent 80%) var(--mx) var(--my) / 220% 220%; mix-blend-mode: color-dodge; }
.wx-c3-glare { background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 45%); mix-blend-mode: overlay; opacity: calc(var(--o) * .9); }

/* #5 — Profil düzenleyici */
.wx-pe-ov { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); padding: 16px; }
.wx-pe-ov.visible { display: flex; }
.wx-pe-win { position: relative; display: flex; width: min(860px, 100%); max-height: 92dvh; overflow: hidden; border-radius: 18px; background: var(--card, #313338); color: var(--text-strong, #fff); box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: wxPop .26s cubic-bezier(.2,1.3,.4,1) backwards; }
.wx-pe-x { position: absolute; top: 12px; right: 12px; z-index: 3; }
.wx-pe-form { flex: 1; min-width: 0; padding: 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.wx-pe-form h2 { margin: 0; font-size: 22px; }
.wx-pe-av { display: flex; align-items: center; gap: 16px; margin: 12px 0 6px; }
.wx-pe-av img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--side, #1e1f22); }
.wx-pe-n { float: right; font-weight: 600; opacity: .6; text-transform: none; letter-spacing: 0; }
.wx-pe-form textarea { resize: vertical; }
.wx-pe-shop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 12px; background: var(--side, #2b2d31); font-size: 13px; margin-top: 6px; }
.wx-pe-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.wx-pe-prev { width: 310px; flex: none; padding: 26px 22px; background: var(--side, #232428); display: flex; align-items: center; }
.wx-pe-card { width: 100%; border-radius: 16px; overflow: hidden; background: var(--card, #313338); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.wx-pe-ban { height: 92px; background: linear-gradient(135deg, #5865f2, #eb459e); }
.wx-pe-body { padding: 0 16px 16px; margin-top: -40px; }
.wx-pe-body img { width: 82px; height: 82px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 5px var(--card, #313338); background: #5865f2; }
.wx-pe-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wx-pe-nm { font-size: 19px; font-weight: 800; }
.wx-pe-bd { margin-top: 4px; min-height: 4px; }
.wx-pe-h { margin: 12px 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; opacity: .7; }
.wx-pe-bi { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; background: var(--side, #2b2d31); word-break: break-word; }
@media (max-width: 720px) { .wx-pe-win { flex-direction: column-reverse; overflow-y: auto; } .wx-pe-prev { width: auto; } }

/* #10 — Hesap değiştir animasyonu */
#accountSwitchBtn { cursor: pointer; transition: transform .45s cubic-bezier(.2,1.4,.4,1), color .2s, background-color .2s; border-radius: 8px; }
#accountSwitchBtn:hover { transform: rotate(180deg); color: var(--wx-accent, #5865f2); }
#accountSwitchBtn:active { transform: rotate(180deg) scale(.82); }
#accountSwitchBtn.wx-spin { animation: wxSwapSpin .65s cubic-bezier(.3,1.3,.4,1); }
@keyframes wxSwapSpin { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(250deg) scale(1.3); } 100% { transform: rotate(360deg) scale(1); } }
.account-menu.open { animation: wxMenuUp .24s cubic-bezier(.2,1.3,.4,1); transform-origin: bottom center; }
@keyframes wxMenuUp { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: none; } }
.account-menu.open .account-row { animation: rowFade .3s ease backwards; }
.account-menu.open .account-row:nth-child(2) { animation-delay: .04s; }
.account-menu.open .account-row:nth-child(3) { animation-delay: .08s; }
.account-menu.open .account-row:nth-child(4) { animation-delay: .12s; }
html[data-anim=off] #accountSwitchBtn, html[data-anim=off] .account-menu.open, html[data-anim=off] .account-menu.open .account-row { animation: none !important; transition: none !important; }

/* #11 — Şu An Etkin paneli */
main .rightside-area .bottom { position: relative; }
.wx-right-h { display: flex; align-items: center; justify-content: space-between; }
.wx-right-x { border: 0; background: transparent; color: var(--muted, #b5bac1); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; transition: background .15s, color .15s, transform .2s; }
.wx-right-x:hover { background: var(--hover, rgba(127,127,127,.2)); color: var(--text-strong, #fff); transform: rotate(90deg); }
.wx-right-split { flex: none; }
.wx-right-open { position: absolute; top: 12px; right: 14px; z-index: 5; display: none; align-items: center; gap: 8px; border: 0; padding: 8px 14px; border-radius: 999px; background: var(--card, #313338); color: var(--text-strong, #fff); font-weight: 700; font-size: 12.5px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform .18s cubic-bezier(.2,1.4,.4,1); }
.wx-right-open:hover { transform: translateY(-2px); }
@media (max-width: 750px) { .wx-right-split, .wx-right-open { display: none !important; } }

/* #13 — Sunucu görünümü */
#serverView { --srv-a: var(--srv-acc, var(--wx-accent, #5865f2)); isolation: isolate; overflow: hidden; }
#serverView > * { position: relative; z-index: 1; }
#serverView::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
#serverView[data-sbg]::before { opacity: 1; }
#serverView[data-sbg=aurora]::before { background: linear-gradient(120deg, color-mix(in srgb, var(--srv-a) 35%, transparent), rgba(0,255,170,.18), rgba(160,80,255,.28), color-mix(in srgb, var(--srv-a) 35%, transparent)); background-size: 300% 300%; animation: wxSrvFlow 12s ease-in-out infinite alternate; }
#serverView[data-sbg=mesh]::before { background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--srv-a) 45%, transparent), transparent 50%), radial-gradient(circle at 85% 80%, rgba(235,69,158,.3), transparent 55%); background-size: 160% 160%; animation: wxSrvFlow 14s ease-in-out infinite alternate; }
#serverView[data-sbg=stars]::before { background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 75%, #fff, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 85%, #fff, transparent); background-size: 160px 160px; animation: wxSrvStars 5s linear infinite alternate; }
#serverView[data-sbg=wave]::before { background: repeating-linear-gradient(115deg, color-mix(in srgb, var(--srv-a) 22%, transparent) 0 22px, transparent 22px 44px); animation: wxSrvSlide 8s linear infinite; }
@keyframes wxSrvFlow { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes wxSrvStars { from { opacity: .35; background-position: 0 0; } to { opacity: 1; background-position: 30px 30px; } }
@keyframes wxSrvSlide { to { background-position: 88px 0; } }
#serverView .server-head { border-bottom-color: color-mix(in srgb, var(--srv-a) 55%, transparent); }
#serverView[data-shead=flow] #serverName { background: linear-gradient(90deg, var(--srv-a), #fff, #eb459e, var(--srv-a)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: wxSrvFlow 5s linear infinite; }
#serverView[data-shead=neon] #serverName { color: var(--srv-a); text-shadow: 0 0 6px var(--srv-a), 0 0 16px var(--srv-a); }
#serverView[data-shead=shine] #serverName { background: linear-gradient(110deg, var(--text-strong, #fff) 40%, var(--srv-a) 50%, var(--text-strong, #fff) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: wxSrvShine 3s linear infinite; }
@keyframes wxSrvShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
#serverView .channel-row { transition: transform .18s cubic-bezier(.2,1.4,.4,1), background-color .2s, box-shadow .25s; }
#serverView[data-schan=slide] .channel-row:hover { transform: translateX(6px); }
#serverView[data-schan=glow] .channel-row:hover { box-shadow: 0 0 0 1px var(--srv-a), 0 0 16px color-mix(in srgb, var(--srv-a) 55%, transparent); }
#serverView[data-schan=pop] .channel-row:hover { transform: scale(1.04); }
#serverView[data-sround=sharp] .channel-row, #serverView[data-sround=sharp] .server-foot button { border-radius: 2px; }
#serverView[data-sround=soft] .channel-row, #serverView[data-sround=soft] .server-foot button { border-radius: 16px; }
#serverView .channel-row.active { background: color-mix(in srgb, var(--srv-a) 25%, transparent); }
html[data-anim=off] #serverView::before, html[data-anim=off] #serverView #serverName { animation: none !important; }

/* ===== Tur 2 ===== */
/* Hesap değiştir: satır içi <i> dönmez → inline-block şart; OS "animasyonları azalt" da engelliyordu */
#accountSwitchBtn, #accountSwitchBtn i { display: inline-block; transform-origin: 50% 50%; }
#accountSwitchBtn:hover { transform: rotate(180deg) scale(1.15); }

/* Koleksiyon: Pokémon kartı */
.col-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.col-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --o: 0; position: relative; display: flex; flex-direction: column; aspect-ratio: 5 / 7; padding: 10px; text-align: center; color: inherit; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden; background: linear-gradient(160deg, #272a36, #14151b); box-shadow: 0 0 0 3px var(--rim, #555), 0 8px 18px rgba(0,0,0,.35); transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .12s ease-out, box-shadow .2s; content-visibility: auto; contain-intrinsic-size: auto 210px; }
.col-card.r-legend { --rim: #f5c542; } .col-card.r-epic { --rim: #b36bff; } .col-card.r-rare { --rim: #4da3ff; } .col-card.r-common { --rim: #6b7280; }
.col-card.own:hover { box-shadow: 0 0 0 3px var(--rim), 0 16px 30px rgba(0,0,0,.5); }
.col-card.locked { opacity: .5; filter: grayscale(.85); cursor: not-allowed; }
.cc-top, .cc-foot { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.cc-art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.cc-art .col-ico { width: 64px; height: 64px; font-size: 30px; border-radius: 18px; }
.cc-name { font-size: 13.5px; font-weight: 900; color: #fff; margin-top: 4px; }
.cc-desc { font-size: 10.5px; line-height: 1.35; opacity: .75; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-foil, .cc-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.cc-foil { opacity: calc(var(--o) * .5); background: linear-gradient(115deg, transparent 20%, rgba(255,0,150,.6) 35%, rgba(0,229,255,.6) 50%, rgba(120,255,120,.6) 65%, transparent 80%) var(--mx) var(--my) / 220% 220%; mix-blend-mode: color-dodge; }
.cc-glare { opacity: calc(var(--o) * .8); background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 45%); mix-blend-mode: overlay; }
.col-card .col-lock { position: absolute; top: 8px; right: 10px; z-index: 2; }

/* Profil şekli seçenekleri: seçilen şekil diğer simgeleri bozmasın */
html[data-avshape] body .wx-opt .sh { clip-path: var(--shc, none) !important; border-radius: 0 !important; }

/* Sidebar isimleri: gerçek taşma davranışı (tooltip JS ile eklenir) */
.f-li p, #chatFriendName, .member-name, .shop-name, .server-head span, .fr-name, .friend-row p, .chat-msg-name, .chat-head-name {
    min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
/* Fade yalnızca mağaza font önizlemesinde; profil kullanıcı adı tamamen okunur */
.shop-font-preview {
    overflow: hidden; white-space: nowrap; text-overflow: clip; max-width: 100%; box-sizing: border-box;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.pm-name {
    -webkit-mask-image: none !important; mask-image: none !important;
    -webkit-text-fill-color: currentColor !important;
    overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 1.25;
}

/* Keşfet sloganı — akan siyah gradyan */
.wx-slogan {
    transition: opacity .42s ease, transform .42s ease, filter .42s ease;
    background: linear-gradient(100deg, #050506 0%, #34343d 24%, #0b0b0f 48%, #454552 72%, #050506 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: wxBlackFlow 6.5s linear infinite;
    filter: drop-shadow(0 3px 16px rgba(255,255,255,.14));
}
.wx-slogan.wx-out { opacity: 0; transform: translateY(-14px) scale(.97); filter: blur(8px); }
.wx-slogan.wx-in { animation: wxBlackFlow 6.5s linear infinite, wxSloganIn .6s cubic-bezier(.2,1.2,.4,1); }
@keyframes wxSloganIn { from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: drop-shadow(0 3px 16px rgba(255,255,255,.14)); } }
@keyframes wxBlackFlow { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }
html[data-anim="off"] .wx-slogan, html[data-anim="off"] .wx-slogan.wx-in { animation: none !important; background-position: 40% 50%; }

/* Sohbete özel görünüm */
#chatView { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 5; }
#chatView > * { position: relative; z-index: 1; }
#chatView[data-cvbg]::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--cv-bg) center / cover no-repeat; filter: blur(var(--cv-blur, 0)); transform: scale(1.04); }
#chatView[data-cvbg]::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: rgba(0,0,0,var(--cv-dim, .35)); }
#chatView[data-cvacc] { --wx-accent: var(--cv-acc); }
#chatView[data-cvacc] .chat-msg.mine .chat-msg-text { background: color-mix(in srgb, var(--cv-acc) 80%, #000); color: #fff; }
.wx-cp-box { width: 440px; }
.wx-cp-box label { margin-top: 14px; }
.wx-cp-row { display: flex; gap: 8px; }
.wx-cp-box input[type=range] { padding: 0; accent-color: var(--wx-accent, #5865f2); }
.wx-cp-sws { display: flex; gap: 8px; flex-wrap: wrap; }
.wx-cp-sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; color: inherit; background: var(--hover, #444); transition: transform .15s; }
.wx-cp-sw:hover { transform: scale(1.15); }
.wx-cp-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--wx-accent, #5865f2); }
