* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

html, body {
    min-height: 100%;
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    color: #f7f8ff;
    position: relative;
    overflow-x: hidden;
    background: #0b1020;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(90px);
    opacity: .55;
    z-index: -2;
    pointer-events: none;
}

body::before {
    width: 340px;
    height: 340px;
    top: -90px;
    left: -60px;
    background: rgba(78, 165, 255, .45);
}

body::after {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -120px;
    background: rgba(214, 72, 255, .30);
}

.background-anim {
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 15% 20%, rgba(65, 138, 255, 0.28), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(245, 72, 191, 0.24), transparent 24%),
        radial-gradient(circle at 55% 80%, rgba(86, 255, 183, 0.18), transparent 22%),
        linear-gradient(135deg, #060914 0%, #0f1630 36%, #121a3f 68%, #09111f 100%);
}

.background-noise {
    position: fixed;
    inset: 0;
    z-index: -3;
    opacity: .11;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
}

#stars-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    box-shadow: 0 0 12px rgba(255,255,255,.75);
    animation: drift linear infinite;
}

@keyframes drift {
    from { transform: translateY(0) translateX(0); opacity: 0; }
    35% { opacity: .9; }
    to { transform: translateY(-120px) translateX(60px); opacity: 0; }
}

.main-container {
    width: min(1180px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(300px, 390px);
    gap: 18px;
    position: relative;
    z-index: 10;
}

.login-card,
.users-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(11, 17, 33, .58);
    box-shadow:
        0 28px 70px rgba(0,0,0,.40),
        inset 0 1px 0 rgba(255,255,255,.10);
}

@supports (backdrop-filter: blur(22px)) or (-webkit-backdrop-filter: blur(22px)) {
    .login-card,
    .users-card,
    .modal-box {
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }
}

.login-card {
    padding: 20px;
}

.login-card__glow,
.users-card__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(50px);
    opacity: .45;
    pointer-events: none;
}

.glow-a {
    width: 220px;
    height: 220px;
    top: -70px;
    left: -60px;
    background: rgba(72, 184, 255, .36);
}

.glow-b {
    width: 260px;
    height: 260px;
    right: -120px;
    bottom: -100px;
    background: rgba(243, 100, 255, .24);
}

.users-card__glow {
    width: 220px;
    height: 220px;
    top: -40px;
    right: -100px;
    background: rgba(255, 219, 83, .20);
}

.login-grid {
    display: grid;
    grid-template-columns: minmax(220px, .82fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.intro-pane,
.form-pane {
    position: relative;
    border-radius: 26px;
}

.intro-pane {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
        rgba(255,255,255,.04);
}

.form-pane {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
        rgba(9, 12, 24, .30);
}

.brand-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #dce8ff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.brand-badge {
    margin-bottom: 16px;
}

.brand-badge__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #59ffa0;
    box-shadow: 0 0 0 6px rgba(89,255,160,.14);
}

.logo-area h1 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.05;
    margin-top: 18px;
    margin-bottom: 12px;
    letter-spacing: -.03em;
}

.logo-slogan {
    font-size: 17px;
    font-weight: 600;
    color: #f4d8ff;
    margin-bottom: 12px;
}

.logo-text,
.form-subtitle,
.users-subtitle,
.modal-header p {
    color: rgba(236, 240, 255, .78);
    line-height: 1.6;
    font-size: 14px;
}

.logo-orb {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.30), transparent 38%),
        linear-gradient(135deg, rgba(91,167,255,.52), rgba(236, 74, 255, .34));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        0 20px 50px rgba(17, 30, 84, .38);
}

.bounce-icon {
    font-size: 28px;
    color: #fff;
    animation: bounce 2s infinite;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.feature-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
    color: #f7f8ff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.feature-pills i {
    color: #88dfff;
}

.intro-showcase {
    margin-top: 18px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.04)),
        rgba(255,255,255,.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.showcase-avatars {
    display: flex;
    margin-bottom: 14px;
}

.showcase-avatar {
    width: 38px;
    height: 38px;
    margin-right: -10px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,.24);
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    background-size: cover;
    background-position: center;
}

.avatar-a {
    background: linear-gradient(135deg, #6ab5ff, #805dff);
}

.avatar-b {
    background: linear-gradient(135deg, #ff7ec9, #ffb36b);
}

.avatar-c {
    background: linear-gradient(135deg, #6bffc0, #3ba5ff);
}

.showcase-content strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.showcase-content p {
    color: rgba(236, 240, 255, .76);
    font-size: 12px;
    line-height: 1.6;
}

.showcase-bars {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.showcase-bars span {
    display: block;
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.15), rgba(255,255,255,.45));
}

.form-title {
    margin-top: 12px;
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -.03em;
}

.form-subtitle {
    margin-top: 6px;
    margin-bottom: 16px;
}

.alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 12px;
}

.alert-box i {
    font-size: 16px;
}

.alert-error {
    background: rgba(153, 27, 27, .18);
    color: #ffd4d4;
    border: 1px solid rgba(255, 126, 126, .24);
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    color: rgba(243,245,255,.78);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.tab-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.09);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(120, 170, 255, .30), rgba(245, 94, 255, .22));
    color: #fff;
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 12px 28px rgba(51, 78, 160, .28);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #dfe4ff;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px 0 48px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: .25s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.input-wrapper input::placeholder {
    color: rgba(255,255,255,.54);
}

.input-wrapper input:focus {
    border-color: rgba(120, 193, 255, .65);
    background: rgba(255,255,255,.10);
    box-shadow:
        0 0 0 4px rgba(95, 154, 255, .12),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.72);
    pointer-events: none;
}

.selection-area {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.gender-option {
    min-height: 76px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)),
        rgba(255,255,255,.04);
    transition: .25s ease;
    user-select: none;
}

.gender-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.20);
}

.gender-option i {
    font-size: 20px;
}

.gender-option span {
    font-size: 11px;
    letter-spacing: .08em;
    font-weight: 700;
}

#optErkek.selected,
#optErkek.active-default {
    background: linear-gradient(135deg, rgba(66, 162, 255, .42), rgba(73, 110, 255, .18));
    border-color: rgba(120,193,255,.60);
    box-shadow: 0 14px 30px rgba(33, 97, 175, .28);
}

#optBayan.selected {
    background: linear-gradient(135deg, rgba(255, 94, 166, .42), rgba(255, 150, 114, .16));
    border-color: rgba(255,174,212,.52);
    box-shadow: 0 14px 30px rgba(175, 55, 114, .28);
}

.avatar-option.selected {
    background: linear-gradient(135deg, rgba(255, 200, 78, .42), rgba(255, 127, 72, .18));
    border-color: rgba(255, 214, 132, .56);
    box-shadow: 0 14px 30px rgba(159, 102, 24, .28);
}

.submit-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 6px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6fb8ff 0%, #7b6dff 45%, #ed63ff 100%);
    box-shadow:
        0 18px 38px rgba(82, 90, 206, .38),
        inset 0 1px 0 rgba(255,255,255,.24);
    transition: .25s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 42px rgba(82, 90, 206, .44),
        inset 0 1px 0 rgba(255,255,255,.24);
}

.submit-btn.is-disabled,
.submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
}

.footer-links a {
    color: rgba(255,255,255,.84);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-sep {
    color: rgba(255,255,255,.45);
}

.footer-note {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(235,240,255,.70);
}

.users-card {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.card-header h3 {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.12;
}

.badge {
    min-width: 46px;
    min-height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(93,255,197,.25), rgba(74,171,255,.25));
    border: 1px solid rgba(132,255,215,.18);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.users-subtitle {
    margin-top: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.users-scroll {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
    max-height: calc(100vh - 170px);
}

.users-scroll::-webkit-scrollbar,
.avatar-grid::-webkit-scrollbar {
    width: 7px;
}

.users-scroll::-webkit-scrollbar-thumb,
.avatar-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 999px;
}

#onlineList {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: flex-start;
}

.profile-card,
.gallery-empty {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height:  124px;
    padding:  10px 10px 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)),
        rgba(16, 20, 36, .56);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
        0 18px 36px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profile-card::before,
.profile-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: .65;
}

.profile-card::before {
    width: 78px;
    height:  78px;
    top:  -34px;
    right:  -14px;
    filter: blur( 22px);
}

.profile-card::after {
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.06);
}

.profile-card.accent-cyan::before {
    background: rgba(75, 187, 255, .32);
}

.profile-card.accent-pink::before {
    background: rgba(255, 93, 167, .26);
}

.profile-card.accent-gold::before {
    background: rgba(255, 202, 87, .26);
}

.profile-card.accent-violet::before {
    background: rgba(163, 92, 255, .24);
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.22);
    box-shadow:
        0 22px 40px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.profile-card__shine,
.profile-card__orb {
    position: absolute;
    pointer-events: none;
}

.profile-card__shine {
    top: -28px;
    left:  -14px;
    width:  82px;
    height:  52px;
    transform: rotate(-18deg);
    background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0));
    opacity: .32;
}

.profile-card__orb {
    width: 10px;
    height:  10px;
    top:  10px;
    right:  10px;
    border-radius: 50%;
    background: #6cffb1;
    box-shadow: 0 0 0  6px rgba(108,255,177,.10);
}

.profile-chip {
    position: absolute;
    left: 8px;
    top:  8px;
    padding:  4px 8px;
    border-radius: 999px;
    font-size:  8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.10);
}

.profile-avatar-wrap {
    position: relative;
    width: 48px;
    height:  48px;
    margin:  12px auto 8px;
}

.profile-avatar-wrap img {
    position: relative;
    z-index: 2;
    width: 48px;
    height:  48px;
    border-radius:  15px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.20);
    box-shadow:
        0 14px 28px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.10);
}

.profile-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius:  18px;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0));
}

.u-name {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u-badge {
    display: block;
    margin-top: 4px;
    text-align: center;
    font-size:  9px;
    line-height:  1.25;
    color: #ffd56b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.u-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top:  6px;
    color: rgba(237,241,255,.68);
    font-size:  9px;
}

.gallery-empty {
    width: 100%;
    min-height: 120px;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(240,243,255,.72);
    border-style: dashed;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    padding: 20px;
    background: rgba(5, 7, 15, .70);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-box {
    position: relative;
    width: min(520px, 100%);
    padding: 24px;
    border-radius: 28px;
    color: #f5f6ff;
    background: rgba(14, 18, 34, .88);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 30px 80px rgba(0,0,0,.42);
}

.modal-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.avatar-grid {
    margin-top: 18px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.avatar-grid li {
    min-height: 74px;
}

.avatar-grid img {
    width: 100%;
    height: 74px;
    border-radius: 18px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .22s ease;
}

.avatar-grid img:hover {
    transform: translateY(-2px);
    border-color: rgba(132,185,255,.70);
    box-shadow: 0 14px 24px rgba(0,0,0,.22);
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(255,255,255,.14);
}


@media screen and (max-width: 1180px) and (min-width: 921px) {
    body.login-page {
        padding: 12px;
    }

    .main-container {
        width: min(1000px, calc(100vw - 24px));
        grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
        gap: 14px;
    }

    .login-card,
    .users-card {
        border-radius: 26px;
    }

    .login-card {
        padding: 16px;
    }

    .login-grid {
        grid-template-columns: minmax(190px, .78fr) minmax(290px, 1fr);
        gap: 14px;
    }

    .intro-pane,
    .form-pane {
        padding: 18px;
        border-radius: 22px;
    }

    .logo-area h1 {
        font-size: 28px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .logo-slogan {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .logo-text,
    .form-subtitle,
    .users-subtitle {
        font-size: 12px;
        line-height: 1.45;
    }

    .feature-pills {
        margin-top: 14px;
    }

    .feature-pills span {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .intro-showcase {
        margin-top: 14px;
        padding: 12px;
    }

    .showcase-bars {
        margin-top: 10px;
    }

    .section-kicker,
    .brand-badge {
        padding: 8px 12px;
        font-size: 11px;
    }

    .form-title {
        font-size: 24px;
        margin-top: 10px;
    }

    .tab-btn,
    .input-wrapper input {
        min-height: 46px;
    }

    .gender-option {
        min-height: 70px;
        border-radius: 18px;
    }

    .submit-btn {
        min-height: 50px;
        border-radius: 18px;
    }

    .footer-links,
    .footer-note {
        margin-top: 10px;
    }

    .users-card {
        padding: 16px 14px 14px;
    }

    .card-header h3 {
        font-size: 20px;
    }

    .badge {
        min-width: 42px;
        min-height: 42px;
        font-size: 15px;
    }

    .users-scroll {
        max-height: calc(100vh - 150px);
    }

    #onlineList {
        gap: 7px;
    }

    .profile-card,
    .gallery-empty {
        min-height: 118px;
        padding: 9px 9px 7px;
        border-radius: 18px;
    }

    .profile-chip {
        font-size: 8px;
        padding: 4px 7px;
    }

    .profile-avatar-wrap {
        width: 44px;
        height: 44px;
        margin: 11px auto 7px;
    }

    .profile-avatar-wrap img {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .u-name {
        font-size: 11px;
    }

    .u-badge,
    .u-meta {
        font-size: 8px;
    }
}

@media screen and (max-height: 760px) and (min-width: 921px) {
    body.login-page {
        padding: 10px;
        align-items: flex-start;
    }

    .main-container {
        width: min(1000px, calc(100vw - 20px));
        gap: 12px;
    }

    .login-card {
        padding: 14px;
    }

    .login-grid {
        gap: 12px;
    }

    .intro-pane,
    .form-pane,
    .users-card {
        padding: 16px;
    }

    .brand-badge,
    .section-kicker {
        margin-bottom: 0;
    }

    .logo-area h1 {
        font-size: 26px;
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .logo-slogan {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .feature-pills {
        margin-top: 12px;
    }

    .intro-showcase {
        display: none;
    }

    .form-title {
        font-size: 22px;
        margin-top: 8px;
    }

    .form-subtitle {
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .tab-buttons {
        margin-bottom: 12px;
    }

    .tab-btn,
    .input-wrapper input {
        min-height: 44px;
    }

    .gender-option {
        min-height: 64px;
    }

    .submit-btn {
        min-height: 48px;
        margin-top: 4px;
    }

    .footer-links,
    .footer-note {
        margin-top: 8px;
    }

    .users-subtitle {
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .users-scroll {
        max-height: calc(100vh - 135px);
    }

    .profile-card,
    .gallery-empty {
        min-height: 108px;
        padding: 8px 8px 7px;
    }

    .profile-avatar-wrap {
        width: 42px;
        height: 42px;
        margin: 10px auto 6px;
    }

    .profile-avatar-wrap img {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .u-meta {
        margin-top: 5px;
    }
}

@media screen and (max-width: 920px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .users-card {
        min-height: 400px;
    }
}

@media screen and (max-width: 860px) {
    body.login-page {
        padding: 18px 12px;
    }

    .login-card,
    .users-card {
        border-radius: 26px;
    }

    .login-card {
        padding: 16px;
    }

    .login-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-pane {
        order: -1;
    }

    .intro-pane,
    .form-pane {
        padding: 20px;
        border-radius: 22px;
    }

    #onlineList {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .profile-card,
    .gallery-empty {
        min-height: 104px;
        padding: 8px 8px 7px;
        border-radius: 18px;
    }

    .profile-avatar-wrap {
        width: 40px;
        height: 40px;
        margin: 10px auto 6px;
    }

    .profile-avatar-wrap img {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .u-name {
        font-size: 11px;
    }

    .u-badge,
    .u-meta {
        font-size: 8px;
    }
}

@media screen and (max-width: 620px) {
    .tab-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selection-area {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #onlineList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .card-header h3 {
        font-size: 20px;
    }

    .tab-btn,
    .input-wrapper input {
        min-height: 44px;
    }

    .gender-option {
        min-height: 62px;
        border-radius: 16px;
    }

    .profile-card,
    .gallery-empty {
        min-height: 100px;
        padding: 8px 7px 7px;
    }

    .profile-avatar-wrap {
        width: 38px;
        height: 38px;
        margin: 10px auto 6px;
    }

    .profile-avatar-wrap img {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
}

@media screen and (max-width: 420px) {
    .intro-pane,
    .form-pane,
    .users-card {
        padding: 16px;
    }

    .selection-area {
        gap: 7px;
    }

    .gender-option {
        min-height: 58px;
    }

    #onlineList {
        gap: 6px;
    }

    .profile-card,
    .gallery-empty {
        min-height: 94px;
        border-radius: 16px;
    }

    .profile-chip {
        left: 7px;
        top: 7px;
        padding: 3px 7px;
        font-size: 7px;
    }

    .profile-avatar-wrap {
        width: 34px;
        height: 34px;
        margin: 9px auto 5px;
    }

    .profile-avatar-wrap img {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .u-name {
        font-size: 10px;
    }

    .u-badge,
    .u-meta {
        font-size: 7px;
    }
}


/* ===== compact pc vitrin + cinsiyete gore avatar efektleri ===== */

.main-container {
    width: min(1060px, calc(100vw - 52px));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(278px, 312px);
    gap: 16px;
}

.users-card {
    padding: 16px 14px 14px;
}

.users-scroll {
    max-height: min(500px, calc(100vh - 172px));
}

#onlineList {
    gap: 7px;
}

.profile-card {
    min-height: 104px;
    padding: 8px 8px 7px;
    border-radius: 20px 20px 18px 12px;
}

.profile-card__shine {
    top: -24px;
    left: -10px;
    width: 72px;
    height: 46px;
    opacity: .26;
}

.profile-chip {
    left: 7px;
    top: 7px;
    padding: 3px 7px;
    font-size: 7px;
}

.profile-avatar-wrap {
    width: 62px;
    height: 62px;
    margin: 8px auto 5px;
    isolation: isolate;
}

.profile-avatar-wrap img {
    width: 56px;
    height: 56px;
    margin: 3px;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow:
        0 12px 26px rgba(0,0,0,.26),
        0 0 14px rgba(255,255,255,.04);
}

.profile-avatar-ring {
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 6px 18px rgba(0,0,0,.18);
}

.profile-avatar-halo,
.profile-avatar-spark {
    position: absolute;
    pointer-events: none;
}

.profile-avatar-halo {
    inset: -5px;
    border-radius: 23px;
    padding: 2px;
    opacity: .94;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.10));
    animation: avatarHaloSpin 5.8s linear infinite, avatarHaloPulse 1.9s ease-in-out infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

.profile-avatar-spark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: .95;
    filter: blur(.15px);
}

.profile-avatar-spark.spark-a {
    top: -3px;
    left: -1px;
    animation: avatarSparkFloatA 2.2s ease-in-out infinite;
}

.profile-avatar-spark.spark-b {
    right: -2px;
    bottom: -1px;
    animation: avatarSparkFloatB 2.8s ease-in-out infinite;
}

.profile-card.gender-bay {
    background:
        linear-gradient(180deg, rgba(108, 194, 255, .14), rgba(255,255,255,.03)),
        rgba(16, 20, 36, .56);
    border-color: rgba(123, 212, 255, .12);
}

.profile-card.gender-bayan {
    background:
        linear-gradient(180deg, rgba(255, 129, 207, .12), rgba(255,255,255,.03)),
        rgba(16, 20, 36, .56);
    border-color: rgba(255, 158, 223, .14);
}

.profile-card.gender-bay .profile-card__orb {
    background: #68ecff;
    box-shadow:
        0 0 0 6px rgba(104,236,255,.10),
        0 0 18px rgba(104,236,255,.45);
}

.profile-card.gender-bayan .profile-card__orb {
    background: #ff7fd4;
    box-shadow:
        0 0 0 6px rgba(255,127,212,.10),
        0 0 18px rgba(255,127,212,.45);
}

.profile-card.gender-bay .profile-avatar-halo {
    background: conic-gradient(from 0deg,
        rgba(100, 191, 255, .06),
        rgba(92, 241, 255, .98),
        rgba(102, 119, 255, .92),
        rgba(100, 191, 255, .06));
}

.profile-card.gender-bayan .profile-avatar-halo {
    background: conic-gradient(from 0deg,
        rgba(255, 125, 216, .06),
        rgba(255, 141, 196, .98),
        rgba(196, 109, 255, .90),
        rgba(255, 190, 110, .72),
        rgba(255, 125, 216, .06));
}

.profile-card.gender-bay .profile-avatar-spark {
    background: radial-gradient(circle at 30% 30%, #ffffff, #69f0ff 60%, rgba(105,240,255,0) 72%);
    box-shadow: 0 0 16px rgba(105,240,255,.52);
}

.profile-card.gender-bayan .profile-avatar-spark {
    background: radial-gradient(circle at 30% 30%, #fff7ff, #ff86dd 58%, rgba(255,134,221,0) 72%);
    box-shadow: 0 0 16px rgba(255,134,221,.50);
}

.profile-card.gender-bay .u-badge {
    color: #95e9ff;
}

.profile-card.gender-bayan .u-badge {
    color: #ffb6e3;
}

.u-name {
    font-size: 11px;
    line-height: 1.15;
}

.u-badge {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: .01em;
}

@keyframes avatarHaloSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes avatarHaloPulse {
    0%, 100% { transform: scale(1); opacity: .82; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes avatarSparkFloatA {
    0%, 100% { transform: translate(0, 0) scale(.92); opacity: .85; }
    50% { transform: translate(-2px, -3px) scale(1.15); opacity: 1; }
}

@keyframes avatarSparkFloatB {
    0%, 100% { transform: translate(0, 0) scale(.88); opacity: .80; }
    50% { transform: translate(2px, 3px) scale(1.08); opacity: 1; }
}

@media screen and (min-width: 1024px) {
    body.login-page {
        align-items: center;
    }

    .main-container {
        width: min(1040px, calc(100vw - 58px));
        grid-template-columns: minmax(0, 1fr) 304px;
    }

    .login-card,
    .users-card {
        border-radius: 30px;
    }

    .intro-pane,
    .form-pane {
        border-radius: 24px;
    }
}

@media screen and (max-width: 1180px) and (min-width: 921px) {
    .main-container {
        width: min(1004px, calc(100vw - 28px));
        grid-template-columns: minmax(0, 1fr) 292px;
    }

    .users-scroll {
        max-height: min(472px, calc(100vh - 160px));
    }

    .profile-card {
        min-height: 100px;
        padding: 8px 7px 6px;
    }

    .profile-avatar-wrap {
        width: 58px;
        height: 58px;
    }

    .profile-avatar-wrap img {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }
}

@media screen and (max-width: 860px) {
    .main-container {
        width: min(100%, calc(100vw - 24px));
    }

    .profile-card {
        min-height: 98px;
    }

    .profile-avatar-wrap {
        width: 56px;
        height: 56px;
    }

    .profile-avatar-wrap img {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }
}

@media screen and (max-width: 620px) {
    .profile-card {
        min-height: 94px;
        border-radius: 18px 18px 16px 12px;
    }

    .profile-avatar-wrap {
        width: 52px;
        height: 52px;
        margin-top: 8px;
    }

    .profile-avatar-wrap img {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .profile-avatar-halo {
        inset: -4px;
    }
}

@media screen and (max-width: 420px) {
    .profile-card {
        min-height: 90px;
        padding: 7px 6px 6px;
    }

    .profile-avatar-wrap {
        width: 48px;
        height: 48px;
    }

    .profile-avatar-wrap img {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .u-name {
        font-size: 10px;
    }

    .u-badge {
        font-size: 7px;
    }
}


/* ===== mobile order + keyboard safe fix ===== */
@media screen and (max-width: 920px) {
    body.login-page {
        align-items: flex-start;
        padding: 14px 10px;
        overflow-y: auto;
    }

    .main-container {
        width: min(100%, calc(100vw - 20px));
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .login-card {
        order: 1;
        padding: 14px;
    }

    .users-card {
        order: 3;
        min-height: 0;
    }

    .login-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-pane {
        order: 1;
    }

    .intro-pane {
        order: 2;
    }

    .users-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .input-wrapper input,
    .input-wrapper textarea,
    select {
        font-size: 16px;
    }

    body.login-page.keyboard-open {
        padding-bottom: 6px;
    }

    body.login-page.keyboard-open .users-card {
        opacity: .96;
    }
}

@media screen and (max-width: 620px) {
    .login-card {
        padding: 12px;
    }

    .intro-pane,
    .form-pane,
    .users-card {
        padding: 14px;
        border-radius: 20px;
    }

    .form-title {
        margin-top: 8px;
    }

    .intro-showcase {
        display: none;
    }
}

@media screen and (max-width: 420px) {
    body.login-page {
        padding: 10px 8px;
    }

    .main-container {
        width: min(100%, calc(100vw - 16px));
        gap: 10px;
    }

    .login-card {
        padding: 10px;
    }

    .intro-pane,
    .form-pane,
    .users-card {
        padding: 12px;
        border-radius: 18px;
    }
}
