:root {
    --main: #9b5cff;
    --main-hover: #b78cff;
    --main-dark: #6f35d8;
    --main-soft: rgba(155, 92, 255, 0.14);
    --main-border: rgba(155, 92, 255, 0.38);
    --main-glow: rgba(155, 92, 255, 0.28);

    --bg-1: #120b24;
    --bg-2: #080413;
    --bg-3: #05020d;

    --white: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.74);
    --text-muted: rgba(255, 255, 255, 0.48);

    --border: rgba(255, 255, 255, 0.12);
    --card: rgba(255, 255, 255, 0.06);
    --card-hover: rgba(155, 92, 255, 0.10);

    --danger: #ff5c7a;
    --warning: #ffc75c;
    --success: #4ade80;

    --shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 10%, rgba(155, 92, 255, 0.16), transparent 34%),
        radial-gradient(circle at 85% 35%, rgba(120, 72, 220, 0.14), transparent 35%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
    background-attachment: fixed;
}

body::-webkit-scrollbar {
    width: 0;
}

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

img {
    max-width: 100%;
}

/* Login */

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin-bottom: 14px;
}

.brand h1 {
    font-size: 30px;
    font-weight: 900;
}

.brand h1 span {
    color: var(--main-hover);
    font-weight: 300;
}

.brand p {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 14px;
}

.alert {
    background: rgba(255, 92, 122, 0.13);
    border: 1px solid rgba(255, 92, 122, 0.35);
    color: #fff;
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 2;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--main-border);
    border-radius: 14px;
    background: var(--main-soft);
    color: var(--white);
    outline: none;
    padding: 0 18px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 15px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus {
    border-color: var(--main-hover);
    box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.12);
}

button {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--main), var(--main-dark));
    color: var(--white);
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s ease;
}

button:hover {
    box-shadow: 0 16px 70px var(--main-glow);
    transform: translateY(-2px);
}

.back-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.back-link:hover {
    color: var(--white);
}

/* Dashboard */

.dashboard-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    height: 100vh;
    padding: 28px;
    background: rgba(8, 4, 19, 0.70);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(18px);
    overflow-y: auto;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.side-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.side-brand h2 {
    font-size: 22px;
    font-weight: 900;
}

.side-brand h2 span {
    color: var(--main-hover);
    font-weight: 300;
}

.side-brand p {
    margin-top: 5px;
    font-size: 11px;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}

.player-mini {
    margin-top: 34px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 0%, rgba(155, 92, 255, 0.18), transparent 45%),
        var(--card);
    display: flex;
    gap: 14px;
    align-items: center;
}

.mini-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.mini-avatar img {
    max-height: 72px;
    object-fit: contain;
}

.mini-avatar span {
    font-size: 22px;
    font-weight: 900;
    color: var(--main-hover);
}

.player-mini strong {
    display: block;
    font-size: 16px;
    direction: ltr;
    text-align: right;
}

.player-mini span {
    display: block;
    margin-top: 7px;
    color: var(--text-soft);
    font-size: 12px;
}

.sidebar nav {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar nav a {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--text-soft);
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--main-soft);
    color: var(--white);
    border-color: var(--main-border);
}

.sidebar nav a.logout-link {
    margin-top: 12px;
    color: #ffb6c4;
    background: rgba(255, 92, 122, 0.08);
}

.content {
    padding: 34px;
    max-width: 1500px;
    width: 100%;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;
    color: var(--main-hover);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    direction: ltr;
    margin-bottom: 8px;
}

.topbar h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.topbar p {
    color: var(--text-soft);
    line-height: 2;
}

.top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.status,
.account-health {
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

.status.online,
.account-health.good {
    background: rgba(74, 222, 128, 0.12);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.30);
}

.status.offline {
    background: rgba(255, 92, 122, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 92, 122, 0.30);
}

.account-health.warn {
    background: rgba(255, 199, 92, 0.12);
    color: var(--warning);
    border: 1px solid rgba(255, 199, 92, 0.30);
}

.account-health.bad {
    background: rgba(255, 92, 122, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 92, 122, 0.30);
}

/* Hero */

.hero-card {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 28px;
    align-items: stretch;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 25% 0%, rgba(155, 92, 255, 0.16), transparent 38%),
        rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.skin-showcase {
    position: relative;
    min-height: 390px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 20%, rgba(183, 140, 255, 0.26), transparent 38%),
        linear-gradient(180deg, rgba(155, 92, 255, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border);
    overflow: hidden;
}

.skin-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--main-glow);
    filter: blur(55px);
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.skin-box {
    position: relative;
    z-index: 2;
    min-height: 330px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-top: 20px;
}

.skin-box img {
    max-height: 330px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
}

.skin-caption {
    position: relative;
    z-index: 3;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid var(--border);
}

.skin-caption span {
    color: var(--text-muted);
    font-size: 13px;
}

.skin-caption strong {
    color: var(--main-hover);
    font-size: 18px;
}

.skin-placeholder {
    width: 145px;
    height: 220px;
    margin-bottom: 30px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(155, 92, 255, 0.25), rgba(111, 53, 216, 0.18));
    border: 1px solid var(--main-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skin-placeholder span {
    color: var(--text-soft);
}

.skin-placeholder strong {
    margin-top: 8px;
    font-size: 42px;
}

.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-title {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.profile-title h2 {
    font-size: 42px;
    direction: ltr;
    text-align: right;
    margin-bottom: 10px;
}

.profile-title p {
    color: var(--text-soft);
    direction: ltr;
    text-align: right;
}

.level-badge {
    min-width: 110px;
    min-height: 110px;
    border-radius: 28px;
    background: var(--main-soft);
    border: 1px solid var(--main-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 13px;
}

.level-badge strong {
    margin-top: 5px;
    color: var(--white);
    font-size: 34px;
}

.level-progress {
    margin-top: 34px;
}

.level-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-soft);
}

.bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    overflow: hidden;
}

.bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--main), var(--main-hover));
    border-radius: 999px;
    box-shadow: 0 0 30px var(--main-glow);
}

.quick-summary {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.quick-summary div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.quick-summary span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 9px;
}

.quick-summary strong {
    display: block;
    color: var(--white);
    font-size: 16px;
    direction: ltr;
    text-align: right;
}

/* Stats */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.stat-card,
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: 0.25s ease;
}

.stat-card:hover,
.panel:hover {
    transform: translateY(-3px);
    border-color: var(--main-border);
    background: var(--card-hover);
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card strong {
    display: block;
    font-size: 24px;
    color: var(--white);
    direction: ltr;
    text-align: right;
}

.stat-card small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}

/* Panels */

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    padding: 24px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.panel-head h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.panel-head p {
    color: var(--text-muted);
    font-size: 13px;
}

.panel-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--main-soft);
    border: 1px solid var(--main-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.details-list div:last-child {
    border-bottom: 0;
}

.details-list span {
    color: var(--text-muted);
    font-size: 14px;
}

.details-list strong {
    color: var(--white);
    direction: ltr;
    text-align: right;
    font-size: 14px;
}

.punishment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.punishment-grid div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.punishment-grid div.good {
    border-color: rgba(74, 222, 128, 0.25);
}

.punishment-grid div.warn {
    border-color: rgba(255, 199, 92, 0.35);
}

.punishment-grid div.bad {
    border-color: rgba(255, 92, 122, 0.35);
}

.punishment-grid span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.punishment-grid strong {
    display: block;
    font-size: 24px;
}

/* Old compatibility */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.info-card {
    padding: 22px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
}

.info-card span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.info-card strong {
    font-size: 21px;
    color: var(--white);
}

.info-card.danger {
    border-color: rgba(255, 92, 122, 0.28);
}

.info-card.warning {
    border-color: rgba(255, 199, 92, 0.28);
}

/* Responsive */

@media screen and (max-width: 1200px) {
    .dashboard-page {
        grid-template-columns: 260px 1fr;
    }

    .hero-card {
        grid-template-columns: 280px 1fr;
    }

    .quick-summary,
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 980px) {
    .dashboard-page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        min-height: auto;
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar nav a {
        flex: 1 1 140px;
        text-align: center;
    }

    .content {
        padding: 22px;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .level-badge {
        width: 100%;
        min-height: 80px;
    }

    .punishment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 620px) {
    .quick-summary,
    .stats-row,
    .grid,
    .punishment-grid {
        grid-template-columns: 1fr;
    }

    .topbar h1 {
        font-size: 28px;
    }

    .profile-title h2 {
        font-size: 30px;
    }

    .skin-showcase {
        min-height: 330px;
    }

    .skin-box {
        min-height: 280px;
    }

    .skin-box img {
        max-height: 280px;
    }

    .details-list div {
        flex-direction: column;
        align-items: flex-start;
    }
}
.secret-field {
    direction: rtl;
    text-align: right;
}

.secret-field summary {
    cursor: pointer;
    color: var(--main-hover);
    font-size: 13px;
    user-select: none;
    list-style: none;
}

.secret-field summary::-webkit-details-marker {
    display: none;
}

.secret-field summary::before {
    content: "👁 ";
    opacity: 0.9;
}

.secret-field[open] summary::before {
    content: "🙈 ";
}

.secret-field strong {
    display: block;
    margin-top: 8px;
    color: var(--white);
    direction: ltr;
    text-align: right;
    font-size: 14px;
}

.settings-panel {
    margin-bottom: 18px;
}

.settings-success,
.settings-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 2;
}

.settings-success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.30);
    color: var(--success);
}

.settings-error {
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.30);
    color: var(--danger);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    cursor: pointer;
}

.toggle-row input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--main);
    flex-shrink: 0;
}

.toggle-row span {
    color: var(--white);
    line-height: 1.9;
}

.toggle-row small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

.privacy-note {
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255, 199, 92, 0.10);
    border: 1px solid rgba(255, 199, 92, 0.25);
    color: var(--text-soft);
    line-height: 2;
    font-size: 13px;
}

.save-settings-btn {
    max-width: 240px;
}
.privacy-key-point {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(155, 92, 255, 0.11);
    border: 1px solid var(--main-border);
    color: var(--text-soft);
    line-height: 2;
    font-size: 13px;
}

.privacy-key-point strong {
    color: var(--white);
}

.settings-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.settings-group {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
}

.settings-group-head {
    margin-bottom: 14px;
}

.settings-group-head h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--white);
}

.settings-group-head p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 2;
}

.settings-group .toggle-row {
    margin-bottom: 12px;
}

.settings-group .toggle-row:last-child {
    margin-bottom: 0;
}

.secret-field {
    direction: rtl;
    text-align: right;
}

.secret-field summary {
    cursor: pointer;
    color: var(--main-hover);
    font-size: 13px;
    user-select: none;
    list-style: none;
}

.secret-field summary::-webkit-details-marker {
    display: none;
}

.secret-field summary::before {
    content: "👁 ";
    opacity: 0.9;
}

.secret-field[open] summary::before {
    content: "🙈 ";
}

.secret-field strong {
    display: block;
    margin-top: 8px;
    color: var(--white);
    direction: ltr;
    text-align: right;
    font-size: 14px;
}

.settings-panel {
    margin-bottom: 18px;
}

.settings-success,
.settings-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 2;
}

.settings-success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.30);
    color: var(--success);
}

.settings-error {
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.30);
    color: var(--danger);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.25s ease;
}

.toggle-row:hover {
    border-color: var(--main-border);
    background: rgba(155, 92, 255, 0.08);
}

.toggle-row input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--main);
    flex-shrink: 0;
}

.toggle-row span {
    color: var(--white);
    line-height: 1.9;
}

.toggle-row small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

.privacy-note {
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255, 199, 92, 0.10);
    border: 1px solid rgba(255, 199, 92, 0.25);
    color: var(--text-soft);
    line-height: 2;
    font-size: 13px;
}

.save-settings-btn {
    max-width: 240px;
}

@media screen and (max-width: 980px) {
    .settings-groups {
        grid-template-columns: 1fr;
    }
}
.settings-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: flex-start;
}

.settings-info-card {
    position: sticky;
    top: 24px;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 0%, rgba(155, 92, 255, 0.16), transparent 42%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.settings-info-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.settings-info-card p {
    color: var(--text-soft);
    line-height: 2;
    font-size: 13px;
    margin-bottom: 16px;
}

.protected-list {
    padding: 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.protected-list:last-child {
    margin-bottom: 0;
}

.protected-list span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.protected-list strong {
    display: block;
    color: var(--white);
    font-size: 13px;
    line-height: 1.9;
}

.settings-accordions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-accordion {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.25s ease;
}

.settings-accordion[open] {
    border-color: var(--main-border);
    background: rgba(155, 92, 255, 0.075);
}

.settings-accordion summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    user-select: none;
}

.settings-accordion summary::-webkit-details-marker {
    display: none;
}

.settings-accordion summary strong {
    display: block;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 7px;
}

.settings-accordion summary small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.9;
}

.accordion-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--main-soft);
    border: 1px solid var(--main-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-hover);
    font-size: 20px;
    flex-shrink: 0;
}

.settings-accordion[open] .accordion-icon {
    transform: rotate(45deg);
}

.settings-accordion-body {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-accordion-body .toggle-row {
    margin-bottom: 0;
}

.save-settings-btn {
    margin-top: 4px;
}

@media screen and (max-width: 1100px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-info-card {
        position: relative;
        top: 0;
    }
}
.nav-emoji {
    display: inline-flex;
    width: 24px;
    margin-left: 8px;
    align-items: center;
    justify-content: center;
}

.shortcut-panel {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 135px;
    color: var(--white);
}

.shortcut-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--main-soft);
    border: 1px solid var(--main-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.shortcut-panel h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.shortcut-panel p {
    color: var(--text-muted);
    line-height: 2;
    font-size: 13px;
}

.empty-state {
    padding: 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--main-border);
    text-align: center;
}

.empty-state strong {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-soft);
    line-height: 2;
}

.privacy-key-point {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(155, 92, 255, 0.11);
    border: 1px solid var(--main-border);
    color: var(--text-soft);
    line-height: 2;
    font-size: 13px;
}

.privacy-key-point strong {
    color: var(--white);
}

.settings-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items: flex-start;
}

.settings-info-card {
    position: sticky;
    top: 24px;
    padding: 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 0%, rgba(155, 92, 255, 0.16), transparent 42%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.settings-info-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.settings-info-card p {
    color: var(--text-soft);
    line-height: 2;
    font-size: 13px;
    margin-bottom: 16px;
}

.protected-list {
    padding: 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.protected-list span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.protected-list strong {
    display: block;
    color: var(--white);
    font-size: 13px;
    line-height: 1.9;
}

.settings-accordions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-accordion {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.25s ease;
}

.settings-accordion[open] {
    border-color: var(--main-border);
    background: rgba(155, 92, 255, 0.075);
}

.settings-accordion summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    user-select: none;
}

.settings-accordion summary::-webkit-details-marker {
    display: none;
}

.settings-accordion summary strong {
    display: block;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 7px;
}

.settings-accordion summary small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.9;
}

.accordion-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--main-soft);
    border: 1px solid var(--main-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-hover);
    font-size: 20px;
    flex-shrink: 0;
}

.settings-accordion[open] .accordion-icon {
    transform: rotate(45deg);
}

.settings-accordion-body {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secret-field {
    direction: rtl;
    text-align: right;
}

.secret-field summary {
    cursor: pointer;
    color: var(--main-hover);
    font-size: 13px;
    user-select: none;
    list-style: none;
}

.secret-field summary::-webkit-details-marker {
    display: none;
}

.secret-field summary::before {
    content: "👁 ";
    opacity: 0.9;
}

.secret-field[open] summary::before {
    content: "🙈 ";
}

.secret-field strong {
    display: block;
    margin-top: 8px;
    color: var(--white);
    direction: ltr;
    text-align: right;
    font-size: 14px;
}

.settings-success,
.settings-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 2;
}

.settings-success {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.30);
    color: var(--success);
}

.settings-error {
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.30);
    color: var(--danger);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.25s ease;
}

.toggle-row:hover {
    border-color: var(--main-border);
    background: rgba(155, 92, 255, 0.08);
}

.toggle-row input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--main);
    flex-shrink: 0;
}

.toggle-row span {
    color: var(--white);
    line-height: 1.9;
}

.toggle-row small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
}

.privacy-note {
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255, 199, 92, 0.10);
    border: 1px solid rgba(255, 199, 92, 0.25);
    color: var(--text-soft);
    line-height: 2;
    font-size: 13px;
}

.save-settings-btn {
    max-width: 240px;
}

@media screen and (max-width: 1100px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-info-card {
        position: relative;
        top: 0;
    }
}
/* Fix Sidebar Mini Skin */
.mini-avatar {
    width: 68px;
    height: 78px;
    padding: 4px;
    overflow: hidden;
    align-items: flex-end;
    justify-content: center;
}

.mini-avatar img {
    width: auto;
    height: 70px;
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}
/* Houses Map */

.map-dashboard {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.map-toolbar {
    align-self: flex-start;
    position: sticky;
    top: 24px;
}

.map-toolbar-head {
    margin-bottom: 18px;
}

.map-toolbar-head h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.map-toolbar-head p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 2;
}

.map-search {
    margin-bottom: 16px;
}

.map-search label {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 8px;
}

.map-search input {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--main-border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--white);
    outline: none;
    padding: 0 14px;
    font-family: Tahoma, Arial, sans-serif;
}

.map-search input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.map-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.map-filter {
    height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-soft);
    font-family: Tahoma, Arial, sans-serif;
    cursor: pointer;
    transition: 0.25s ease;
}

.map-filter:hover,
.map-filter.active {
    color: var(--white);
    border-color: var(--main-border);
    background: var(--main-soft);
}

.map-legend {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-soft);
    font-size: 13px;
}

.map-legend div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.owned {
    background: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

.legend-dot.free {
    background: #ef4444;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}

.legend-dot.mine {
    background: #a855f7;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.50);
}

.map-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.map-stats div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.map-stats span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.map-stats strong {
    font-size: 22px;
    color: var(--white);
}

.map-card {
    padding: 14px;
}

#housesMap {
    width: 100%;
    height: 720px;
    border-radius: 22px;
    overflow: hidden;
    background: #0b0618;
    border: 1px solid var(--border);
}

.house-marker {
    width: 34px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.house-marker:hover {
    transform: scale(1.12);
}

.house-marker svg {
    width: 34px;
    height: 46px;
    overflow: visible;
}

.house-marker .pin-body {
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 2;
}

.house-marker .house-body,
.house-marker .house-roof,
.house-marker .house-door {
    fill: #ffffff;
}

.house-marker.owned .pin-body {
    fill: #22c55e;
}

.house-marker.free .pin-body {
    fill: #ef4444;
}

.house-marker.mine .pin-body {
    fill: #a855f7;
}

.house-marker.mine {
    animation: houseMarkerPulse 1.8s infinite;
}

@keyframes houseMarkerPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.55));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    }
}

.map-tooltip {
    direction: rtl;
    text-align: right;
}

.map-tooltip strong {
    display: block;
    margin-bottom: 4px;
}

.map-tooltip span {
    color: #333;
}

.house-popup {
    direction: rtl;
    text-align: right;
    min-width: 210px;
}

.house-popup h4 {
    margin-bottom: 10px;
}

.house-popup p {
    margin: 6px 0;
}

.house-popup button {
    margin-top: 10px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
}

.house-details-panel {
    margin-bottom: 18px;
}

.house-details-empty {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--main-border);
    color: var(--text-soft);
    text-align: center;
}

.house-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.house-details-grid div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
}

.house-details-grid span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.house-details-grid strong {
    color: var(--white);
    font-size: 15px;
}

.leaflet-container {
    font-family: Tahoma, Arial, sans-serif;
}

@media screen and (max-width: 1200px) {
    .map-dashboard {
        grid-template-columns: 1fr;
    }

    .map-toolbar {
        position: relative;
        top: 0;
    }

    #housesMap {
        height: 620px;
    }
}

@media screen and (max-width: 700px) {
    .map-filters,
    .map-stats,
    .house-details-grid {
        grid-template-columns: 1fr;
    }

    #housesMap {
        height: 520px;
    }
}

/* UCP Patch: mobile menu, assets, server map and player search */
.mobile-menu-toggle,
.mobile-sidebar-backdrop {
    display: none;
}

.asset-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.asset-overview-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 18px 65px rgba(0, 0, 0, 0.16);
}

.asset-overview-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--main-soft);
    border: 1px solid var(--main-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    flex-shrink: 0;
}

.asset-overview-card strong {
    display: block;
    font-size: 26px;
    margin-bottom: 5px;
}

.asset-overview-card small {
    color: var(--text-soft);
}

.assets-section-grid {
    margin-bottom: 20px;
}

.asset-lists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.asset-list-panel .panel-head {
    align-items: flex-start;
}

.soft-action-link {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--white);
    background: var(--main-soft);
    border: 1px solid var(--main-border);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.asset-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-row {
    padding: 15px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.asset-row strong {
    display: block;
    margin-bottom: 6px;
    direction: ltr;
    text-align: right;
}

.asset-row span {
    color: var(--text-muted);
    font-size: 12px;
}

.asset-row em {
    color: var(--main-hover);
    font-style: normal;
    font-weight: 900;
    direction: ltr;
    white-space: nowrap;
}

.legend-dot.business {
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.50);
}

.house-marker.business .pin-body {
    fill: #38bdf8;
}

.house-marker.business.owned .pin-body {
    fill: #22c55e;
}

.house-marker.business.free .pin-body {
    fill: #ef4444;
}

.server-map-stats {
    grid-template-columns: 1fr 1fr;
}

.player-search-form {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 14px;
    align-items: end;
}

.player-search-form .form-group {
    margin-bottom: 0;
}

.player-result-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.player-result-card {
    overflow: hidden;
}

.player-result-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.player-result-avatar {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    border: 1px solid var(--main-border);
    background: var(--main-soft);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.player-result-avatar img {
    max-height: 88px;
    object-fit: contain;
}

.player-result-avatar span {
    align-self: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--main-hover);
}

.player-result-head h3 {
    font-size: 20px;
    margin-bottom: 6px;
    direction: ltr;
    text-align: right;
}

.player-result-head p {
    color: var(--text-soft);
    font-size: 13px;
}

.player-result-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.player-result-info div {
    padding: 13px;
    border-radius: 15px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.player-result-info span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.player-result-info strong {
    color: var(--white);
    font-size: 13px;
}

@media screen and (max-width: 1200px) {
    .asset-lists-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 980px) {
    .mobile-menu-toggle {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1001;
        width: 50px;
        height: 50px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
    }

    .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        right: 0;
        z-index: 1000;
        width: min(86vw, 330px);
        height: 100vh !important;
        min-height: 100vh !important;
        transform: translateX(105%);
        transition: transform 0.28s ease;
        border-left: 1px solid var(--border) !important;
        border-bottom: 0 !important;
    }

    .mobile-menu-open .sidebar {
        transform: translateX(0);
    }

    .mobile-menu-open .mobile-sidebar-backdrop {
        display: block;
    }

    .sidebar nav {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .sidebar nav a {
        flex: none !important;
        text-align: right !important;
    }

    .content {
        padding-top: 82px;
    }

    .asset-overview-grid,
    .player-result-grid {
        grid-template-columns: 1fr;
    }

    .player-search-form {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 700px) {
    .asset-overview-grid,
    .server-map-stats,
    .player-result-info {
        grid-template-columns: 1fr;
    }

    .asset-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Player Search Clean Upgrade */

.player-search-panel {
    padding: 22px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 0%, rgba(155, 92, 255, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.055);
}

.player-search-form {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    align-items: end;
}

.player-search-form .form-group {
    margin-bottom: 0;
}

.player-search-form input {
    height: 58px;
    border-radius: 18px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(155, 92, 255, 0.35);
}

.player-search-form button {
    height: 58px;
    border-radius: 18px;
    font-size: 15px;
    box-shadow: 0 14px 50px rgba(155, 92, 255, 0.18);
}

.player-result-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.player-result-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 10%, rgba(155, 92, 255, 0.18), transparent 35%),
        rgba(255, 255, 255, 0.055);
}

.player-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main), var(--main-hover), transparent);
    opacity: 0.85;
}

.player-result-head {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.player-result-avatar {
    width: 150px;
    height: 220px;
    padding: 8px 6px 0;
    box-sizing: border-box;
    border-radius: 26px;
    border: 1px solid var(--main-border);
    background:
        radial-gradient(circle at 50% 20%, rgba(183, 140, 255, 0.22), transparent 40%),
        rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.player-result-avatar img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.player-result-avatar span {
    align-self: center;
    font-size: 34px;
    font-weight: 900;
    color: var(--main-hover);
}

.player-result-head h3 {
    font-size: 24px;
    margin-bottom: 8px;
    direction: ltr;
    text-align: right;
}

.player-result-head p {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 2;
}

.player-result-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.player-result-info div {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.045);
}

.player-result-info span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 7px;
}

.player-result-info strong {
    color: var(--white);
    font-size: 13px;
    line-height: 1.8;
}

.player-search-empty {
    grid-column: 1 / -1;
    text-align: center;
}

/* Better mobile buttons and cards */

@media screen and (max-width: 980px) {
    .player-search-form {
        grid-template-columns: 1fr;
    }

    .player-search-form button {
        width: 100%;
    }

    .player-result-grid {
        grid-template-columns: 1fr;
    }

    .player-result-head {
        grid-template-columns: 120px 1fr;
        gap: 14px;
    }

    .player-result-avatar {
        width: 120px;
        height: 180px;
        border-radius: 22px;
    }

    .player-result-avatar img {
        max-width: 100%;
        max-height: 100%;
    }
}

@media screen and (max-width: 620px) {
    .player-search-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .player-search-form input,
    .player-search-form button {
        height: 54px;
        border-radius: 16px;
    }

    .player-result-card {
        padding: 16px;
        border-radius: 22px;
    }

    .player-result-head {
        grid-template-columns: 96px 1fr;
        gap: 12px;
    }

    .player-result-avatar {
        width: 96px;
        height: 152px;
        border-radius: 18px;
    }

    .player-result-avatar img {
        max-width: 100%;
        max-height: 100%;
    }

    .player-result-head h3 {
        font-size: 19px;
    }

    .player-result-info {
        grid-template-columns: 1fr;
    }
}
.map-submenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.map-select-box {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.map-select-box label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.map-select-box select {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.30);
    background: rgba(255, 255, 255, 0.055);
    color: var(--white);
    padding: 0 14px;
    outline: none;
    font-family: inherit;
    font-weight: 800;
}

.map-select-box select option {
    color: #111;
}

.house-marker.server-marker .pin-body {
    transition: 0.2s ease;
}

.house-marker.vehicle .pin-body {
    fill: #f59e0b;
}

.legend-dot.vehicle {
    background: #f59e0b;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.50);
}

@media screen and (max-width: 700px) {
    .map-submenu-grid {
        grid-template-columns: 1fr;
    }

    .map-toolbar {
        gap: 12px;
    }
}
/* Server Map Marker Color Fix */

.house-marker.server-marker.vehicle .pin-body {
    fill: #f59e0b !important;
}

.house-marker.server-marker.mine .pin-body {
    fill: #b57edc !important;
}

.house-marker.server-marker.business .pin-body {
    fill: #3b82f6 !important;
}

.house-marker.server-marker.free .pin-body {
    fill: #22c55e !important;
}

.house-marker.server-marker.owned .pin-body {
    fill: #ef4444 !important;
}

.house-marker.server-marker .house-body,
.house-marker.server-marker .house-roof,
.house-marker.server-marker .house-door,
.house-marker.server-marker .vehicle-body,
.house-marker.server-marker .vehicle-top {
    fill: rgba(255, 255, 255, 0.92);
}

.house-marker.server-marker .vehicle-wheel {
    fill: rgba(20, 20, 28, 0.95);
}

.legend-dot.mine {
    background: #b57edc !important;
    box-shadow: 0 0 18px rgba(181, 126, 220, 0.50) !important;
}

.legend-dot.vehicle {
    background: #f59e0b !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.50) !important;
}

.legend-dot.business {
    background: #3b82f6 !important;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.50) !important;
}

.legend-dot.free {
    background: #22c55e !important;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.50) !important;
}

.legend-dot.owned {
    background: #ef4444 !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.50) !important;
}

/* Map Favorites */
.house-marker.server-marker.favorite {
    position: relative;
}

.favorite-badge {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #facc15;
    color: #201000;
    border: 2px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.70);
    z-index: 3;
}

.legend-dot.favorite {
    background: #facc15 !important;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.55) !important;
}

.map-popup-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.map-popup-actions button,
.house-popup .map-favorite-btn {
    width: 100%;
    min-height: 38px;
    height: auto;
    padding: 9px 12px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.7;
}

.house-popup .map-favorite-btn {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1f1300;
}

.house-popup .map-favorite-btn.remove {
    background: rgba(255, 92, 122, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 92, 122, 0.35);
}

.nav-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 14px;
    transition: 0.2s ease;
    user-select: none;
}

.nav-group-title:hover,
.nav-group-title.active {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.nav-arrow {
    margin-right: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.nav-group-items {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-right: 18px;
    margin-bottom: 4px;
}

.nav-group-items.open {
    display: flex;
}

.nav-group-items a {
    font-size: 13px;
}

/* ======================================================
   Social Glory UCP Hub
   ====================================================== */
.social-nav-link {
    background: linear-gradient(135deg, rgba(155, 92, 255, 0.10), rgba(183, 140, 255, 0.03));
}
.social-nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(183, 140, 255, 0.18), 0 18px 55px rgba(155, 92, 255, 0.12);
}
.social-topbar h1 {
    background: linear-gradient(90deg, #fff, #d8c1ff 45%, #9b5cff 100%);
    -webkit-background-clip: text;
    color: transparent;
}
.social-pill-action {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(155, 92, 255, 0.12);
    border: 1px solid rgba(155, 92, 255, 0.30);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}
.social-pill-action:hover {
    background: rgba(155, 92, 255, 0.22);
    transform: translateY(-2px);
}
.social-hero-grid,
.social-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
    gap: 18px;
    margin-bottom: 18px;
}
.social-profile-card,
.social-trend-card,
.social-section-card {
    padding: 24px;
    overflow: hidden;
    position: relative;
}
.social-profile-card::before,
.social-trend-card::before,
.social-section-card::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(155, 92, 255, 0.16);
    filter: blur(70px);
    top: -110px;
    left: -80px;
    pointer-events: none;
}
.social-profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
}
.social-avatar-ring {
    width: 112px;
    height: 112px;
    border-radius: 32px;
    border: 1px solid rgba(183, 140, 255, 0.42);
    background:
        radial-gradient(circle at 50% 20%, rgba(183, 140, 255, 0.28), transparent 48%),
        rgba(255, 255, 255, 0.045);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}
.social-avatar-ring img {
    max-height: 126px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45));
}
.social-avatar-ring span {
    margin: auto;
    font-size: 28px;
    font-weight: 900;
    color: var(--main-hover);
}
.social-glow-label {
    display: inline-block;
    color: #d8c1ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    direction: ltr;
    margin-bottom: 7px;
}
.social-profile-head h2,
.social-trend-card h2 {
    font-size: 32px;
    margin: 0 0 10px;
    direction: ltr;
    text-align: right;
}
.social-badges-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.social-badge.purple {
    background: rgba(155, 92, 255, 0.18);
    border-color: rgba(155, 92, 255, 0.42);
    color: #eadfff;
}
.social-badge.dark {
    background: rgba(0, 0, 0, 0.20);
    color: var(--text-soft);
}
.social-badge.muted {
    background: rgba(255, 199, 92, 0.10);
    color: var(--warning);
}
.social-bio {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    color: var(--text-soft);
    line-height: 2;
}
.social-mini-stats,
.social-trend-lines {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.social-trend-lines {
    grid-template-columns: 1fr;
}
.social-mini-stats div,
.social-trend-lines div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.social-mini-stats strong,
.social-trend-lines strong {
    display: block;
    direction: ltr;
    text-align: right;
    font-size: 18px;
}
.social-mini-stats span,
.social-trend-lines span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}
.social-trend-card p {
    position: relative;
    z-index: 2;
    color: var(--text-soft);
    line-height: 2;
}
.social-stats-row .stat-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(155, 92, 255, 0.14), transparent 40%),
        var(--card);
}
.social-wide {
    min-width: 0;
}
.social-section-title {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.social-section-title div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-section-title h3 {
    font-size: 22px;
}
.social-section-title small {
    color: var(--text-muted);
}
.social-empty,
.social-code-box {
    position: relative;
    z-index: 2;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px dashed rgba(255, 255, 255, 0.13);
    color: var(--text-soft);
    line-height: 2;
}
.social-code-box {
    direction: ltr;
    text-align: left;
    font-family: Consolas, monospace;
    margin-top: 12px;
}
.social-live-list,
.social-creator-list,
.social-mission-list,
.social-comments-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-live-row,
.social-post-card,
.social-creator-row,
.social-mission-item,
.social-comments-list div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.social-live-row.official,
.social-ad-card {
    border-color: rgba(255, 199, 92, 0.35);
    background: linear-gradient(135deg, rgba(255, 199, 92, 0.10), rgba(155, 92, 255, 0.08));
}
.social-live-dot {
    display: inline-block;
    padding: 5px 9px;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(255, 92, 122, 0.14);
    border: 1px solid rgba(255, 92, 122, 0.35);
    color: #ffb6c4;
    font-size: 11px;
    font-weight: 900;
    direction: ltr;
}
.social-live-row strong,
.social-creator-row strong {
    direction: ltr;
    text-align: right;
}
.social-live-row p,
.social-post-card p {
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 2;
}
.social-live-row em,
.social-post-meta em {
    color: #d8c1ff;
    font-style: normal;
}
.social-live-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.social-live-numbers span,
.social-post-actions span,
.social-post-actions a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(155, 92, 255, 0.11);
    border: 1px solid rgba(155, 92, 255, 0.22);
    color: #eadfff;
    font-size: 12px;
}
.social-inline-form,
.social-comment-form,
.social-ad-form,
.social-report-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.social-report-form {
    justify-content: flex-start;
}
.social-inline-form input,
.social-comment-form input,
.social-ad-form input,
.social-ad-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(155, 92, 255, 0.26);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--white);
    outline: none;
    padding: 0 12px;
    font-family: Tahoma, Arial, sans-serif;
}
.social-ad-form select option {
    color: #111;
}
.social-inline-form button,
.social-comment-form button,
.social-report-form button,
.social-post-actions button,
.social-creator-row button,
.social-ad-form button {
    width: auto;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
}
.social-report-form button {
    background: linear-gradient(135deg, rgba(255, 92, 122, .95), rgba(155, 92, 255, .95));
}
.social-post-meta {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.social-post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.social-post-actions form {
    display: inline-flex;
}
.social-creator-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}
.social-creator-row span,
.social-creator-row em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}
.social-mission-item > div:first-child {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.social-mission-item strong {
    font-size: 13px;
}
.social-mission-item em {
    color: var(--text-muted);
    font-style: normal;
    direction: ltr;
}
.social-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.social-progress i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #9b5cff, #d8c1ff);
    box-shadow: 0 0 24px rgba(155, 92, 255, 0.35);
}
.social-wallet-box strong {
    display: block;
    font-size: 34px;
    color: #d8c1ff;
    direction: ltr;
    text-align: right;
}
.social-wallet-box p,
.social-selected-post {
    margin-top: 12px;
    color: var(--text-soft);
    line-height: 2;
}
.social-ad-form {
    align-items: stretch;
    flex-direction: column;
}
.social-ad-form label {
    color: var(--text-soft);
    font-size: 13px;
}
.social-comments-list div {
    line-height: 2;
    color: var(--text-soft);
}
.social-comments-list strong {
    color: #fff;
}
.social-comments-list span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
    direction: ltr;
    text-align: right;
}
.social-alert-success {
    background: rgba(74, 222, 128, 0.10);
    border-color: rgba(74, 222, 128, 0.28);
}
.social-alert-danger {
    background: rgba(255, 92, 122, 0.12);
    border-color: rgba(255, 92, 122, 0.35);
}
.social-setup-warning {
    padding: 24px;
}
@media (max-width: 1100px) {
    .social-hero-grid,
    .social-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .social-mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .social-inline-form,
    .social-comment-form {
        flex-direction: column;
        align-items: stretch;
    }
    .social-mini-stats {
        grid-template-columns: 1fr;
    }
    .social-creator-row {
        grid-template-columns: 1fr;
    }
}


/* ======================================================
   Glory UCP Responsive + Social Glory Sectioned UI v4
   Mobile/PC optimized, compact, section-based.
   ====================================================== */
:root {
    --glory-purple: #9b5cff;
    --glory-purple-2: #c59cff;
    --glory-purple-dark: #241139;
    --glory-card: rgba(24, 16, 37, .78);
    --glory-card-2: rgba(48, 27, 76, .62);
    --glory-border: rgba(197, 156, 255, .22);
    --glory-border-2: rgba(197, 156, 255, .38);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.content { max-width: 1440px; width: 100%; }
.panel, .stat-card, .hero-card, .shortcut-panel { overflow: hidden; }
img { max-width: 100%; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }

/* Better global mobile layout */
@media screen and (max-width: 980px) {
    .content { padding: 74px 14px 28px !important; }
    .topbar { gap: 14px; align-items: stretch; }
    .topbar h1 { font-size: 25px !important; line-height: 1.25; }
    .topbar p { font-size: 13px !important; line-height: 1.8; }
    .top-actions { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
    .stats-row, .section-grid, .social-lite-grid, .social-profile-layout { grid-template-columns: 1fr !important; }
    .stat-card, .panel { border-radius: 22px; }
    .sidebar { max-width: 290px; }
    .player-mini { gap: 12px; }
}

@media screen and (max-width: 620px) {
    .content { padding: 70px 10px 22px !important; }
    .topbar { padding: 18px !important; border-radius: 22px !important; }
    .topbar h1 { font-size: 22px !important; }
    .panel, .stat-card { padding: 16px !important; }
    .stats-row { gap: 10px; }
    .stat-card strong { font-size: 22px !important; }
    .mobile-menu-toggle { width: 44px; height: 44px; border-radius: 14px; }
}

/* Skin avatar crop fix */
.player-mini .mini-avatar,
.mini-avatar {
    width: 78px;
    height: 96px;
    padding: 6px 6px 0;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}
.player-mini .mini-avatar img,
.mini-avatar img {
    width: auto;
    height: 86px;
    max-height: 86px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}
.social-avatar-ring {
    width: 128px;
    height: 150px;
    padding: 8px 10px 0;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.social-avatar-ring img {
    width: auto;
    height: 138px;
    max-height: 138px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

/* Social Glory compact top */
.social-topbar-compact {
    position: relative;
    isolation: isolate;
    background: radial-gradient(circle at 20% 0%, rgba(198, 115, 255, .34), transparent 38%), linear-gradient(135deg, rgba(24, 11, 42, .94), rgba(9, 4, 21, .94));
    border: 1px solid var(--glory-border-2);
    box-shadow: 0 24px 70px rgba(81, 39, 133, .25);
}
.social-topbar-compact::after {
    content: "G";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 92px;
    line-height: 1;
    color: rgba(197, 156, 255, .08);
    z-index: -1;
}
.social-top-actions { gap: 8px; flex-wrap: wrap; }
.social-pill-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.social-pill-action.active,
.social-pill-action:hover {
    background: linear-gradient(135deg, #7c3cff, #c59cff);
    box-shadow: 0 10px 26px rgba(155, 92, 255, .28);
}

/* App section tabs */
.social-app-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(82px, 1fr));
    gap: 10px;
    margin: 16px 0 18px;
}
.social-app-tabs a {
    min-height: 74px;
    padding: 12px 10px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    color: #efe8ff;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid rgba(197, 156, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.social-app-tabs a span { font-size: 22px; }
.social-app-tabs a b { font-size: 12px; }
.social-app-tabs a.active,
.social-app-tabs a:hover {
    border-color: rgba(197, 156, 255, .56);
    background: radial-gradient(circle at 50% 0%, rgba(197,156,255,.22), rgba(120,60,255,.12)), rgba(255,255,255,.06);
    transform: translateY(-1px);
}

.social-mobile-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.social-dash-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 122px;
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--glory-border);
    background: radial-gradient(circle at 90% 0%, rgba(197,156,255,.18), transparent 42%), var(--glory-card);
}
.social-dash-tile .tile-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(155, 92, 255, .20);
    border: 1px solid rgba(197,156,255,.24);
    flex-shrink: 0;
}
.social-dash-tile span { color: #d7c7ff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }
.social-dash-tile strong { display: block; font-size: 22px; line-height: 1.25; margin: 4px 0; }
.social-dash-tile small { color: #a995d4; }
.social-dash-tile:hover { transform: translateY(-2px); border-color: var(--glory-border-2); }

.social-lite-grid,
.social-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 16px;
    align-items: start;
}
.social-section-card { background: var(--glory-card); border: 1px solid var(--glory-border); }
.social-section-title { gap: 10px; flex-wrap: wrap; }
.social-section-title a {
    color: #d9c7ff;
    text-decoration: none;
    font-weight: 900;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(155,92,255,.12);
    border: 1px solid rgba(197,156,255,.16);
}
.social-section-title h3 { font-size: 17px; }
.social-empty { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.045); color: #cab8f5; text-align: center; }

.social-compact-live,
.social-compact-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.social-compact-live:last-child,
.social-compact-post:last-child { border-bottom: 0; }
.social-compact-live div,
.social-compact-post { min-width: 0; }
.social-compact-live strong,
.social-compact-post strong { color: #fff; }
.social-compact-live small,
.social-compact-post small { display: block; color: #b9a3e5; margin-top: 4px; }
.social-compact-live em { margin-inline-start: auto; color: #d7c7ff; font-style: normal; font-weight: 900; white-space: nowrap; }
.social-compact-post { display: block; }
.social-compact-post p { margin: 6px 0 4px; color: #efe8ff; }

.social-profile-card-mobile .social-profile-head { align-items: center; }
.social-bio { line-height: 1.9; }
.social-mini-stats { gap: 10px; }
.social-mini-stats div { border-radius: 18px; padding: 13px; background: rgba(255,255,255,.055); }

.social-live-list-page { display: grid; gap: 13px; }
.social-live-row,
.social-post-card,
.social-creator-row,
.social-mission-item {
    border-radius: 20px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}
.social-live-row { padding: 15px; }
.social-live-row.official { border-color: rgba(255, 215, 0, .35); box-shadow: 0 0 0 1px rgba(255,215,0,.08) inset; }
.social-live-dot { font-size: 10px; letter-spacing: .9px; }
.social-live-numbers { display: flex; gap: 8px; flex-wrap: wrap; }
.social-live-numbers span { padding: 7px 10px; border-radius: 999px; background: rgba(155,92,255,.12); }
.social-inline-form,
.social-report-form,
.social-comment-form,
.social-ad-form { gap: 8px; }
.social-inline-form input,
.social-comment-form input,
.social-ad-form input,
.social-ad-form select {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(197,156,255,.18);
    background: rgba(5,3,12,.42);
    color: #fff;
    padding: 0 12px;
}
.social-inline-form button,
.social-report-form button,
.social-comment-form button,
.social-ad-form button,
.social-post-actions button,
.social-creator-row button {
    min-height: 42px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #7c3cff, #b98cff);
    color: #fff;
    font-weight: 900;
    padding: 0 14px;
    cursor: pointer;
}
.social-report-form button { background: rgba(255,92,122,.18); color: #ffb8c5; border: 1px solid rgba(255,92,122,.24); }
.social-post-card { padding: 16px; margin-bottom: 12px; }
.social-post-card p { color: #f3edff; line-height: 1.9; }
.social-post-actions { flex-wrap: wrap; gap: 9px; }
.social-post-actions a { color: #d7c7ff; text-decoration: none; font-weight: 900; }
.social-comments-list div { border-radius: 16px; padding: 12px; margin-bottom: 8px; background: rgba(255,255,255,.05); }
.social-comments-list span { display: block; color: #a995d4; font-size: 11px; margin-top: 5px; }
.social-selected-post { padding: 14px; border-radius: 18px; background: rgba(155,92,255,.10); color: #fff; }
.social-wallet-box strong { font-size: 34px; }
.social-ad-form label { color: #d7c7ff; font-weight: 900; margin-top: 8px; }
.social-ad-form { display: grid; }

/* Social Glory mobile */
@media screen and (max-width: 1180px) {
    .social-app-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .social-mobile-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 760px) {
    .social-topbar-compact::after { font-size: 72px; left: 12px; opacity: .72; }
    .social-top-actions { display: none; }
    .social-app-tabs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 2px 0 10px;
        margin: 10px -2px 14px;
        scrollbar-width: none;
    }
    .social-app-tabs::-webkit-scrollbar { display: none; }
    .social-app-tabs a {
        min-width: 76px;
        min-height: 68px;
        border-radius: 20px;
        padding: 10px 8px;
        flex: 0 0 auto;
    }
    .social-app-tabs a span { font-size: 20px; }
    .social-app-tabs a b { font-size: 11px; }
    .social-mobile-overview { grid-template-columns: 1fr; gap: 10px; }
    .social-dash-tile { min-height: 92px; padding: 14px !important; }
    .social-dash-tile .tile-icon { width: 48px; height: 48px; font-size: 22px; }
    .social-dash-tile strong { font-size: 20px; }
    .social-profile-card-mobile .social-profile-head { flex-direction: column; text-align: center; }
    .social-avatar-ring { width: 112px; height: 132px; border-radius: 30px; }
    .social-avatar-ring img { height: 120px; max-height: 120px; }
    .social-mini-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .social-live-row { display: grid; gap: 12px; }
    .social-inline-form,
    .social-report-form,
    .social-comment-form { display: grid !important; grid-template-columns: 1fr; width: 100%; }
    .social-inline-form input,
    .social-comment-form input { width: 100%; }
    .social-post-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .social-post-actions form, .social-post-actions button, .social-post-actions a { width: 100%; text-align: center; }
    .social-creator-row { display: grid !important; grid-template-columns: 1fr; gap: 10px; }
}
@media screen and (max-width: 420px) {
    .social-mini-stats { grid-template-columns: 1fr !important; }
    .social-post-actions { grid-template-columns: 1fr !important; }
}

/* ======================================================
   Social Glory Final: MDC-inspired sections + Creator Studio
   ====================================================== */
.social-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 16px;
    align-items: start;
}
.social-studio-hero {
    background: linear-gradient(145deg, rgba(39,15,64,.96), rgba(20,8,34,.96));
    border-color: rgba(185,140,255,.28);
    box-shadow: 0 0 0 1px rgba(185,140,255,.10) inset, 0 18px 50px rgba(81,30,150,.24);
}
.social-studio-rank {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(155,92,255,.13);
    border: 1px solid rgba(197,156,255,.20);
    margin-bottom: 14px;
}
.social-studio-rank strong { font-size: 24px; color: #fff; }
.social-studio-rank span { color: #d7c7ff; font-weight: 900; }
.social-mini-stats.studio { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.social-notify-row,
.social-ranking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #efe8ff;
}
.social-notify-row:last-child,
.social-ranking-row:last-child { border-bottom: 0; }
.social-notify-row b,
.social-ranking-row strong { color: #fff; }
.social-notify-row span,
.social-ranking-row span { color: #bca9e9; font-size: 12px; }
.social-ranking-list { display: grid; gap: 2px; }
.social-ranking-row em {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(155,92,255,.16);
    border: 1px solid rgba(197,156,255,.22);
    color: #d9c7ff;
    font-style: normal;
    font-weight: 1000;
    flex-shrink: 0;
}
.social-ranking-row div { min-width: 0; flex: 1; }
.social-ranking-row b {
    color: #fff;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    white-space: nowrap;
}
.social-profile-card .social-avatar-ring span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 54px;
}
@media screen and (max-width: 760px) {
    .social-studio-grid { grid-template-columns: 1fr; }
    .social-mini-stats.studio { grid-template-columns: repeat(2, 1fr); }
    .social-ranking-row { display: grid; grid-template-columns: 44px 1fr; }
    .social-ranking-row b { width: max-content; }
}

/* ======================================================
   Glory UCP Android/Touch polish + Map favorite refined
   ====================================================== */
.ucp-map-action.map-pick-small {
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
}

@media screen and (max-width: 980px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .mobile-menu-toggle {
        width: 46px !important;
        height: 46px !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, rgba(155, 92, 255, .96), rgba(65, 24, 106, .96)) !important;
        border: 1px solid rgba(255,255,255,.14) !important;
        box-shadow: 0 16px 45px rgba(0,0,0,.34), 0 0 0 1px rgba(197,156,255,.16) inset !important;
    }

    .sidebar {
        width: min(82vw, 310px) !important;
        padding: 18px 14px 22px !important;
        background: linear-gradient(180deg, rgba(18, 9, 31, .98), rgba(7, 3, 15, .98)) !important;
        box-shadow: -18px 0 70px rgba(0,0,0,.35) !important;
    }

    .side-brand {
        gap: 10px !important;
    }

    .side-brand img {
        width: 48px !important;
        height: 48px !important;
    }

    .side-brand h2 {
        font-size: 18px !important;
    }

    .player-mini {
        margin-top: 18px !important;
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .sidebar nav {
        gap: 6px !important;
        margin-top: 14px !important;
    }

    .sidebar nav a,
    .nav-group-title {
        min-height: 44px !important;
        padding: 11px 13px !important;
        border-radius: 14px !important;
        font-size: 13px !important;
        background: rgba(255,255,255,.035);
    }

    .sidebar nav a.active,
    .nav-group-title.active,
    .social-nav-link.active {
        background: linear-gradient(135deg, rgba(155,92,255,.30), rgba(197,156,255,.10)) !important;
        border: 1px solid rgba(197,156,255,.22) !important;
    }

    .nav-group-items {
        padding-right: 8px !important;
        gap: 5px !important;
    }

    .content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 72px 12px 24px !important;
    }

    .topbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .top-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .top-actions::-webkit-scrollbar {
        display: none;
    }

    .top-actions .status {
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .ucp-map-action,
    .ucp-map-action.map-pick-small {
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 11px !important;
        border-radius: 13px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    #housesMap {
        height: 68vh !important;
        min-height: 460px !important;
        border-radius: 20px !important;
        touch-action: pan-x pan-y !important;
    }

    .map-card.panel {
        padding: 8px !important;
    }

    .map-toolbar.panel {
        padding: 14px !important;
    }
}

@media screen and (max-width: 760px) {
    .social-topbar-compact,
    .social-topbar {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    .social-topbar-compact .eyebrow,
    .social-topbar .eyebrow {
        font-size: 11px !important;
    }

    .social-app-tabs {
        position: sticky;
        top: 62px;
        z-index: 40;
        margin: 8px -12px 14px !important;
        padding: 8px 12px 10px !important;
        background: linear-gradient(180deg, rgba(8,4,19,.98), rgba(8,4,19,.78)) !important;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .social-app-tabs a {
        min-width: 72px !important;
        min-height: 62px !important;
        border-radius: 18px !important;
        padding: 8px 7px !important;
    }

    .social-app-tabs a span {
        font-size: 19px !important;
    }

    .social-app-tabs a b {
        font-size: 10.5px !important;
        line-height: 1.35 !important;
    }

    .social-live-row,
    .social-post-card,
    .social-section-card,
    .social-studio-hero,
    .social-profile-card-mobile {
        border-radius: 18px !important;
    }

    .social-post-card p,
    .social-bio,
    .social-comments-list div {
        font-size: 13px !important;
        line-height: 1.9 !important;
    }

    .social-inline-form button,
    .social-report-form button,
    .social-comment-form button,
    .social-ad-form button,
    .social-post-actions button,
    .social-creator-row button {
        min-height: 44px !important;
        font-size: 13px !important;
    }

    .social-inline-form input,
    .social-comment-form input,
    .social-ad-form input,
    .social-ad-form select,
    .social-ad-form textarea {
        min-height: 44px !important;
        font-size: 13px !important;
    }
}

@media screen and (max-width: 420px) {
    .content {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .sidebar {
        width: min(88vw, 300px) !important;
    }

    .topbar h1 {
        font-size: 20px !important;
    }

    .social-app-tabs a {
        min-width: 66px !important;
    }
}

/* ======================================================
   Social Glory TRUE mobile fix v15
   Fixes horizontal page overflow and stacks Social cards/tabs on phones.
   ====================================================== */
@media screen and (max-width: 820px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box !important;
    }

    .dashboard-page {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 72px 10px 24px !important;
        overflow-x: hidden !important;
    }

    .topbar,
    .social-topbar,
    .social-topbar-compact,
    .panel,
    .stat-card,
    .social-section-card,
    .social-profile-card,
    .social-trend-card,
    .social-post-card,
    .social-live-row,
    .social-feed-card,
    .social-dash-tile,
    .social-studio-hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .social-hero-grid,
    .social-dashboard-grid,
    .social-lite-grid,
    .social-profile-layout,
    .social-studio-grid,
    .social-mobile-overview,
    .social-stats-row,
    .stats-row,
    .section-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
    }

    .social-app-tabs {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        gap: 8px !important;
        margin: 10px 0 14px !important;
        padding: 0 !important;
        background: transparent !important;
        border-bottom: 0 !important;
        backdrop-filter: none !important;
    }

    .social-app-tabs a {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 58px !important;
        padding: 8px 4px !important;
        border-radius: 16px !important;
        flex: none !important;
    }

    .social-app-tabs a span {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .social-app-tabs a b {
        font-size: 10px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .social-top-actions {
        display: none !important;
    }

    .social-profile-head,
    .social-studio-rank,
    .social-section-title,
    .social-compact-live,
    .social-notify-row,
    .social-ranking-row,
    .social-live-row,
    .social-dash-tile {
        min-width: 0 !important;
    }

    .social-dash-tile {
        display: flex !important;
        min-height: 86px !important;
        padding: 13px !important;
        gap: 12px !important;
    }

    .social-dash-tile .tile-icon {
        width: 46px !important;
        height: 46px !important;
        border-radius: 16px !important;
        font-size: 21px !important;
        flex: 0 0 46px !important;
    }

    .social-dash-tile strong {
        font-size: 18px !important;
        overflow-wrap: anywhere !important;
    }

    .social-section-card {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .social-section-title {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .social-section-title h3 {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .social-section-title small,
    .social-section-title a {
        font-size: 11px !important;
    }

    .social-mini-stats,
    .social-mini-stats.studio {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .social-mini-stats div {
        min-width: 0 !important;
        padding: 10px !important;
    }

    .social-mini-stats strong {
        font-size: 15px !important;
        overflow-wrap: anywhere !important;
    }

    .social-live-row,
    .social-post-card,
    .social-feed-card,
    .social-compact-post,
    .social-creator-row,
    .social-mission-item,
    .social-comments-list div {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 13px !important;
        border-radius: 17px !important;
    }

    .social-compact-live {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        align-items: center !important;
        gap: 9px !important;
    }

    .social-compact-live em {
        grid-column: 1 / -1 !important;
        margin: 0 !important;
        justify-self: start !important;
    }

    .social-live-numbers,
    .social-post-meta,
    .social-post-actions,
    .social-feed-meta,
    .social-badges-line {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 7px !important;
    }

    .social-post-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .social-post-actions form,
    .social-post-actions button,
    .social-post-actions a,
    .social-inline-form button,
    .social-report-form button,
    .social-comment-form button,
    .social-ad-form button {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .social-inline-form,
    .social-comment-form,
    .social-report-form,
    .social-ad-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
    }

    .social-inline-form input,
    .social-comment-form input,
    .social-ad-form input,
    .social-ad-form select,
    .social-ad-form textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .social-ranking-row {
        display: grid !important;
        grid-template-columns: 42px 1fr !important;
        align-items: center !important;
        gap: 9px !important;
    }

    .social-ranking-row b {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .social-feed-head,
    .social-feed-meta {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .social-post-card p,
    .social-feed-card p,
    .social-live-row p,
    .social-bio,
    .social-comments-list div,
    .social-selected-post {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }
}

@media screen and (max-width: 430px) {
    .content {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .social-app-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .social-mini-stats,
    .social-mini-stats.studio {
        grid-template-columns: 1fr !important;
    }

    .social-post-actions {
        grid-template-columns: 1fr !important;
    }
}
