.web-game-toolbar {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.35rem 0;
    margin-bottom: 0.75rem;
}

:root {
    --web-nav-h: 76px;
}

.web-public-navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--web-nav-h);
    z-index: 1030;
    display: flex;
    align-items: center;
    padding: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow: 0 10px 28px rgba(15, 40, 80, 0.08);
}

.web-public-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1140px;
}

.web-public-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    min-height: 44px;
}

.web-public-navbar .navbar-brand img {
    height: 52px;
    width: auto;
}

.web-public-navbar .navbar-brand .fw-bold,
.web-public-navbar .navbar-brand span {
    color: #1e3a5f !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.web-public-navbar .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: transparent;
    color: #1e3a5f;
    padding: 0;
}

.web-public-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.web-public-navbar-spacer {
    height: var(--web-nav-h);
}

@media (max-width: 991.98px) {
    .web-public-navbar .web-nav-end .navbar-collapse {
        position: absolute;
        left: auto;
        right: 0;
        top: calc(100% + 0.5rem);
        min-width: min(320px, calc(100vw - 2rem));
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 14px;
        padding: 0.75rem;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --web-nav-h: 68px;
    }

    .web-public-navbar .navbar-brand img {
        height: 46px;
    }
}

.web-game-toolbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.web-game-toolbar__link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

@media (min-width: 992px) {
    .navbar .navbar-collapse {
        flex-grow: 1;
        justify-content: flex-end;
    }
}

.web-nav-end {
    position: relative;
}

.web-nav-end .navbar-collapse {
    flex-grow: 0;
}

@media (min-width: 992px) {
    .web-nav-end {
        flex: 1;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .web-nav-end .navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        flex-basis: auto;
        justify-content: flex-end;
        order: 0;
    }

    .web-profile-menu-wrap--toolbar {
        order: 1;
    }

    .web-locale-switcher-wrap--toolbar {
        order: 2;
    }
}

@media (max-width: 991.98px) {
    .web-nav-end .navbar-collapse {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        min-width: min(320px, calc(100vw - 2rem));
        z-index: 1040;
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 12px;
        padding: 0.75rem;
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    }

    .web-profile-menu-wrap--toolbar {
        width: auto;
        margin: 0;
        padding: 0;
        border: none;
    }

    .web-profile-menu-wrap--toolbar .web-profile-menu__toggle {
        width: auto;
        min-height: 44px;
        padding: 0.25rem 0.4rem 0.25rem 0.3rem;
        justify-content: center;
        gap: 0.35rem;
    }

    .web-profile-menu-wrap--toolbar .web-profile-menu__label,
    .web-profile-menu-wrap--toolbar .web-profile-menu__caret {
        display: none;
    }

    .web-profile-menu-wrap--toolbar .web-profile-menu__points {
        padding: 0.18rem 0.4rem;
        font-size: 0.72rem;
    }

    .web-profile-menu-wrap--toolbar .web-profile-menu__panel {
        width: min(300px, calc(100vw - 1.5rem));
        max-width: none;
    }

    .web-locale-switcher-wrap--toolbar {
        width: auto;
        margin: 0;
        padding: 0;
        border: none;
    }

    .web-locale-switcher-wrap--toolbar .web-locale-switcher__toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.35rem 0.55rem;
        justify-content: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e2e8f0;
        font-size: 0.78rem;
    }

    .web-nav-end {
        gap: 0.35rem;
    }
}

.web-nav-menu {
    width: 100%;
}

.web-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.web-nav-link:hover,
.web-nav-link:focus-visible {
    color: #1e3a5f;
    background: rgba(37, 99, 235, 0.08);
    outline: none;
}

.web-nav-link.is-active {
    color: #1e3a5f;
    background: rgba(37, 99, 235, 0.1);
}

@media (min-width: 992px) {
    .web-nav-menu {
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.15rem;
    }

    .web-nav-link {
        min-height: 36px;
        padding: 0.35rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 600;
    }

    .web-nav-link.is-active {
        background: transparent;
        color: #2563eb;
    }

    .web-nav-link.is-active:hover {
        background: rgba(37, 99, 235, 0.08);
    }
}

.web-locale-switcher-wrap {
    display: flex;
    align-items: center;
}

.web-locale-switcher {
    position: relative;
}

.web-locale-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.3rem 0.65rem 0.3rem 0.45rem;
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 12px;
    background: #fff;
    color: #1e3a5f;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.web-locale-switcher__toggle:hover,
.web-locale-switcher__toggle.show {
    background: #f8fafc;
    border-color: rgba(37, 99, 235, 0.28);
    color: #1e3a5f;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.web-locale-switcher__toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.web-locale-switcher__flag {
    display: block;
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.web-locale-switcher__caret {
    font-size: 0.58rem;
    opacity: 0.55;
}

.web-locale-switcher__code {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.web-locale-switcher__code-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 16px;
    padding: 0 0.2rem;
    border-radius: 3px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.web-locale-switcher__menu {
    min-width: 12rem;
    padding: 0.4rem;
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.web-locale-switcher__form {
    margin: 0;
}

.web-locale-switcher__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1e3a5f;
    font-size: 0.88rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.web-locale-switcher__option-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.web-locale-switcher__option:hover,
.web-locale-switcher__option:focus {
    background: #eff6ff;
    color: #1e3a5f;
}

.web-locale-switcher__option.is-active {
    background: #dbeafe;
    color: #1e3a5f;
}

.web-locale-switcher__check {
    font-size: 0.75rem;
    color: #2563eb;
}

@media (max-width: 991px) {
    .web-locale-switcher-wrap:not(.web-locale-switcher-wrap--toolbar) {
        width: 100%;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        margin-top: 0.25rem;
    }
}

.dropdown-toggle-no-caret::after {
    display: none !important;
}

.web-public-navbar .dropdown-menu:not(.show) {
    display: none;
}

.web-profile-menu-wrap {
    display: flex;
    align-items: center;
}

.web-profile-menu {
    position: relative;
}

.web-profile-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.web-profile-menu__toggle:hover,
.web-profile-menu__toggle.show {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: #2563eb;
}

.web-profile-menu__toggle:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.web-profile-menu__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.web-profile-menu__avatar--guest {
    background: #e2e8f0;
    color: #64748b;
}

.web-profile-menu__avatar--lg {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.95rem;
}

.web-profile-menu__points {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.web-profile-menu__points i {
    color: #d97706;
    font-size: 0.72rem;
}

.web-profile-menu__label {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-profile-menu__caret {
    font-size: 0.65rem;
    opacity: 0.65;
}

.web-profile-menu__panel {
    min-width: 19.5rem;
    max-width: 22rem;
    padding: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.web-profile-menu__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.web-profile-menu__avatar-link {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 50%;
    text-decoration: none;
    outline: none;
}

.web-profile-menu__avatar-link:hover .web-profile-menu__avatar,
.web-profile-menu__avatar-link:focus-visible .web-profile-menu__avatar {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.web-profile-menu__avatar-edit {
    position: absolute;
    right: -0.1rem;
    bottom: -0.1rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    font-size: 0.55rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.web-profile-menu__settings-hint {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.web-profile-menu__settings-hint:hover {
    text-decoration: underline;
}

.web-profile-menu__header-text {
    min-width: 0;
}

.web-profile-menu__name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.web-profile-menu__meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
    word-break: break-word;
}

.web-profile-menu__badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.web-profile-menu__alert {
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.75rem;
    line-height: 1.35;
}

.web-profile-menu__alert-link {
    display: block;
    margin-top: 0.25rem;
    color: #c2410c;
    font-weight: 700;
    text-decoration: none;
}

.web-profile-menu__alert-link:hover {
    text-decoration: underline;
}

.web-profile-menu__block {
    margin-bottom: 0.75rem;
}

.web-profile-menu__section-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.web-profile-menu__rows {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.web-profile-menu__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.web-profile-menu__row--gold {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}

.web-profile-menu__row-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 0.72rem;
}

.web-profile-menu__row--gold .web-profile-menu__row-icon {
    background: rgba(217, 119, 6, 0.15);
    color: #d97706;
}

.web-profile-menu__row-text {
    min-width: 0;
}

.web-profile-menu__row-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.web-profile-menu__row-hint {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 0.1rem;
    line-height: 1.25;
}

.web-profile-menu__row-value {
    text-align: right;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    white-space: nowrap;
}

.web-profile-menu__row-value small {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.web-profile-menu__stats {
    display: none;
}

.web-profile-menu__stat,
.web-profile-menu__stat-label,
.web-profile-menu__stat-value {
    display: none;
}

.web-profile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.55rem;
}

.web-profile-menu__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.45rem;
    border-radius: 8px;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.web-profile-menu__link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.web-profile-menu__link--danger:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.web-profile-menu__actions {
    padding-top: 0.25rem;
}

.web-profile-menu__login-btn {
    color: #fff !important;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #0ea5e9 100%);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
}

.web-profile-menu__login-btn:hover,
.web-profile-menu__login-btn:focus {
    color: #fff !important;
    filter: brightness(1.06);
}

@media (min-width: 992px) {
    .web-nav-menu {
        gap: 0.35rem;
    }

    .web-locale-switcher-wrap,
    .web-profile-menu-wrap {
        width: auto;
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
}

@media (max-width: 991px) {
    .web-profile-menu-wrap:not(.web-profile-menu-wrap--toolbar) {
        width: 100%;
        padding-top: 0;
        border-top: none;
        margin-top: 0;
        margin-bottom: 0.25rem;
    }

    .web-profile-menu-wrap:not(.web-profile-menu-wrap--toolbar) .web-profile-menu__toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .web-profile-menu-wrap:not(.web-profile-menu-wrap--toolbar) .web-profile-menu__panel {
        width: 100%;
        max-width: none;
    }
}

.web-profile-menu__avatar--img {
    object-fit: cover;
    background: #fff;
}

.web-profile-settings-page {
    background-image: none;
    background:
        radial-gradient(ellipse 70% 50% at 10% 0%, rgba(6, 182, 212, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 10%, rgba(37, 99, 235, 0.16), transparent 50%),
        linear-gradient(180deg, #e8eef8 0%, #f1f5f9 40%, #e2e8f0 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.web-profile-settings-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

.web-profile-settings {
    position: relative;
    z-index: 1;
}

.web-profile-settings__card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.web-profile-settings__section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.web-profile-settings__avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.2);
}

.web-profile-settings__avatar-preview--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
}

.web-profile-settings__preset-group {
    margin-bottom: 1rem;
}

.web-profile-settings__preset-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
}

.web-profile-settings__preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.web-profile-settings__preset-option {
    width: 84px;
    text-align: center;
    cursor: pointer;
}

.web-profile-settings__preset-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.web-profile-settings__preset-option img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    object-fit: cover;
    transition: border-color 0.15s ease;
}

.web-profile-settings__preset-option span {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.web-profile-settings__preset-option input:checked + img {
    border-color: #2563eb;
}

.web-profile-settings__upload-box {
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.25rem;
    background: #f8fafc;
}

.web-profile-settings__upload-label {
    display: block;
    text-align: center;
    cursor: pointer;
    margin-bottom: 0;
}

/* Gold shop cosmetics */
.avatar-frame-wrap {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    padding: 3px;
}

.avatar-frame-wrap.has-frame { padding: 4px; }
.avatar-frame-wrap.frame-gold { background: linear-gradient(135deg, #fbbf24, #d97706, #fde68a); box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35); }
.avatar-frame-wrap.frame-emerald { background: linear-gradient(135deg, #34d399, #059669, #a7f3d0); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); }
.avatar-frame-wrap.frame-sapphire { background: linear-gradient(135deg, #60a5fa, #2563eb, #93c5fd); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3); }
.avatar-frame-wrap.frame-rose { background: linear-gradient(135deg, #fb7185, #e11d48, #fecdd3); box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.3); }
.avatar-frame-wrap .web-profile-settings__avatar-preview,
.avatar-frame-wrap .web-profile-menu__avatar { display: block; margin: 0; }

.profile-badge-chip {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}
.profile-badge-chip.badge-sabr { background: #0ea5e9; }
.profile-badge-chip.badge-ilm { background: #2563eb; }
.profile-badge-chip.badge-ihsan { background: #16a34a; }
.profile-badge-chip.badge-adl { background: #ca8a04; }
.profile-badge-chip.badge-shukr { background: #d97706; }
.profile-badge-chip.badge-amanah { background: #0891b2; }
.profile-badge-chip.badge-hilm { background: #059669; }
.profile-badge-chip.badge-courage { background: #dc2626; }
.profile-badge-chip.badge-rahmah { background: #db2777; }
.profile-badge-chip.badge-hikmah { background: #7c3aed; }

.gold-shop-preview {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.4rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #1e3a5f;
    background: #f1f5f9;
}
.gold-shop-preview--frame { border-radius: 50%; padding: 4px; }
.gold-shop-preview--frame .gold-shop-preview__inner { width: 100%; height: 100%; border-radius: 50%; background: #cbd5e1; }
.gold-shop-preview--frame.frame-gold { background: linear-gradient(135deg, #fbbf24, #d97706); }
.gold-shop-preview--frame.frame-emerald { background: linear-gradient(135deg, #34d399, #059669); }
.gold-shop-preview--frame.frame-sapphire { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.gold-shop-preview--frame.frame-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.gold-shop-preview--frame.none { background: #e2e8f0; }
.gold-shop-preview--badge.badge-sabr { background: #e0f2fe; color: #0284c7; }
.gold-shop-preview--badge.badge-ilm { background: #dbeafe; color: #1d4ed8; }
.gold-shop-preview--badge.badge-ihsan { background: #dcfce7; color: #16a34a; }
.gold-shop-preview--badge.badge-adl { background: #fef9c3; color: #a16207; }
.gold-shop-preview--badge.badge-shukr { background: #ffedd5; color: #c2410c; }
.gold-shop-preview--badge.badge-amanah { background: #cffafe; color: #0e7490; }
.gold-shop-preview--badge.badge-hilm { background: #d1fae5; color: #047857; }
.gold-shop-preview--badge.badge-courage { background: #fee2e2; color: #b91c1c; }
.gold-shop-preview--badge.badge-rahmah { background: #fce7f3; color: #be185d; }
.gold-shop-preview--badge.badge-hikmah { background: #ede9fe; color: #6d28d9; }
.gold-shop-preview--theme.default { background: #f1f5f9; }
.gold-shop-preview--theme.theme-ocean { background: linear-gradient(135deg, #0ea5e9, #1e3a5f); color: #fff; }
.gold-shop-preview--theme.theme-sunset { background: linear-gradient(135deg, #fb923c, #db2777); color: #fff; }
.gold-shop-preview--theme.theme-forest { background: linear-gradient(135deg, #22c55e, #14532d); color: #fff; }
.gold-shop-preview--theme.theme-night { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fbbf24; }
.gold-shop-preview--boost { background: #eff6ff; color: #2563eb; }

.web-profile-menu__avatar-shell {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    flex-shrink: 0;
}
.web-profile-menu__avatar-shell.has-frame { padding: 2px; }
.web-profile-menu__avatar-shell.frame-gold { background: linear-gradient(135deg, #fbbf24, #d97706); }
.web-profile-menu__avatar-shell.frame-emerald { background: linear-gradient(135deg, #34d399, #059669); }
.web-profile-menu__avatar-shell.frame-sapphire { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.web-profile-menu__avatar-shell.frame-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.web-profile-menu__avatar-shell .web-profile-menu__avatar { margin: 0; }
.web-profile-menu__avatar-shell .profile-badge-chip {
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.45rem;
    right: -3px;
    bottom: -3px;
}

body.profile-theme-theme-ocean::before {
    background-image: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 45%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230ea5e9' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
body.profile-theme-theme-sunset::before {
    background-image: radial-gradient(circle at top left, rgba(251, 146, 60, 0.14), transparent 40%),
        radial-gradient(circle at bottom right, rgba(219, 39, 119, 0.1), transparent 45%);
}
body.profile-theme-theme-forest::before {
    background-image: radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 45%);
}
body.profile-theme-theme-night { background-color: #0f172a !important; color: #e2e8f0; }
body.profile-theme-theme-night .web-public-navbar {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.profile-theme-theme-night .web-public-navbar .navbar-brand .fw-bold,
body.profile-theme-theme-night .web-public-navbar .navbar-brand span,
body.profile-theme-theme-night .web-nav-link { color: #e2e8f0 !important; }

