/* =========================================================
   RANDOMBONDS
   PART 2 — PREMIUM APPLICATION FOUNDATION
   =========================================================

   Badge system:
   OWNER       → IMAGE
   SUPER ADMIN → IMAGE
   ADMIN       → IMAGE
   VIBI        → IMAGE
   MODERATOR   → EMOJI
   VERIFIED    → EMOJI

   This file contains presentation only.
   Database / Supabase logic belongs in main.js.
========================================================= */


/* =========================================================
   01 — ROOT DESIGN SYSTEM
========================================================= */

:root {

    /* =====================================================
       RANDOMBONDS — MODERN GLASS COLOR SYSTEM
       OPTION B
       BLUE-ONLY ACCENTS
    ====================================================== */

    /* PRIMARY BRAND */
    --rb-primary: #0A4BA6;
    --rb-primary-dark: #083A80;
    --rb-primary-light: #2770D6;

    /* WARM CONTRAST */
    --rb-secondary: #FF6B5A;
    --rb-secondary-dark: #E95546;
    --rb-secondary-light: #FF927F;

    /* BACKGROUNDS */
    --rb-bg: #F3F5F8;
    --rb-surface: #FFFFFF;
    --rb-surface-soft: #F7F9FB;

    /* TEXT */
    --rb-text: #102027;
    --rb-text-soft: #53666C;
    --rb-text-muted: #82939A;

    /* BORDERS */
    --rb-border: #D9E7E8;

    /* STATUS */
    --rb-success: #1854A8;
    --rb-warning: #F4A63A;
    --rb-danger: #E65353;
    --rb-info: #25A9D6;

    /* EXTRA OPTION-B ACCENTS */
    --rb-cyan: #1866D4;
    --rb-coral: #FF7A66;
    --rb-gold: #F6B94A;
    --rb-deep: #0B1B22;

    /* GLASS */
    --rb-glass:
        rgba(255, 255, 255, 0.78);

    --rb-glass-strong:
        rgba(255, 255, 255, 0.90);

    /* RADIUS */
    --rb-radius-xs: 8px;
    --rb-radius-sm: 12px;
    --rb-radius-md: 16px;
    --rb-radius-lg: 22px;
    --rb-radius-xl: 28px;

    /* SHADOWS */
    --rb-shadow-sm:
        0 2px 10px
        rgba(16, 32, 39, 0.06);

    --rb-shadow-md:
        0 12px 32px
        rgba(16, 32, 39, 0.09);

    --rb-shadow-lg:
        0 24px 70px
        rgba(16, 32, 39, 0.14);

    /* LAYOUT */
    --rb-sidebar-width: 250px;
    --rb-header-height: 68px;

    /* MOTION */
    --rb-transition:
        180ms ease;

    /* FONT */
    --rb-font:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* =========================================================
   02 — RESET
========================================================= */

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


html {
    min-height: 100%;
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    font-family: var(--rb-font);
    background: var(--rb-bg);
    color: var(--rb-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
    cursor: pointer;
}


button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}


input,
textarea,
select {
    outline: none;
}


textarea {
    resize: vertical;
}


img,
video {
    max-width: 100%;
}


img {
    display: block;
}


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


/* =========================================================
   03 — ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(75, 145, 244, 0.28);
    outline-offset: 2px;
}


.hidden {
    display: none !important;
}
.loading-screen.hidden {
    display: none !important;
    pointer-events: none !important;
}

/* =========================================================
   04 — APP ROOT
========================================================= */

.app {
    min-height: 100vh;
    position: relative;
}


.screen {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   RANDOMBONDS — FIRST LOAD SCREEN
   FINAL CLEAN DESIGN
========================================================= */


/* =========================================================
   LOADING SCREEN
========================================================= */

.loading-screen {
    position: fixed !important;
    inset: 0 !important;

    z-index: 99999 !important;

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

    width: 100% !important;
    min-height: 100dvh !important;

    padding: 24px !important;

    overflow: hidden !important;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(35, 105, 202, 0.075),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #060F1B 0%,
            #07172E 50%,
            #061325 100%
        ) !important;

    color: #F5F8FB !important;
}


.loading-screen::before,
.loading-screen::after {
    content: none !important;
}


/* =========================================================
   MAIN INTRO
========================================================= */

.rb-intro {
    width: min(100%, 430px);

    min-height: 500px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 20px;

    animation:
        rbIntroAppear
        750ms
        cubic-bezier(.22, 1, .36, 1)
        both;
}


/* =========================================================
   LOGO AREA
========================================================= */

.rb-intro-visual {
    position: relative;

    width: 220px;

    height: 170px;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   LOGO STAGE
========================================================= */

.rb-logo-stage {
    width: 190px;

    height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   LOGO
========================================================= */

.rb-logo-svg {
    width: 190px;

    height: 147px;

    display: block;

    overflow: visible;
}


/* =========================================================
   R — PREMIUM ELECTRIC BLUE
========================================================= */

.rb-logo-r {
    fill: none;

    stroke: url(#rbLogoGradient);

    stroke-width: 10;

    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 1;
    stroke-dashoffset: 1;

    opacity: 0;

    filter:
        drop-shadow(
            0 0 4px rgba(96, 165, 250, 0.34)
        )
        drop-shadow(
            0 0 11px rgba(37, 99, 235, 0.18)
        );

    animation:
        rbLogoWrite
        1.25s
        cubic-bezier(.65, 0, .35, 1)
        .15s
        forwards;
}

/* =========================================================
   B — WRITING ANIMATION
========================================================= */

.rb-logo-b {
    fill: none;

    stroke: url(#rbLogoGradient);

    stroke-width: 10;

    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 1;
    stroke-dashoffset: 1;

    opacity: 0;

    filter:
        drop-shadow(
            0 0 4px rgba(96, 165, 250, 0.34)
        )
        drop-shadow(
            0 0 11px rgba(37, 99, 235, 0.18)
        );

    animation:
        rbLogoWrite
        1.25s
        cubic-bezier(.65, 0, .35, 1)
        .58s
        forwards;
}


/* =========================================================
   BOND — FINAL STROKE
========================================================= */

.rb-logo-bond {
    fill: none;

    stroke: url(#rbBondGradient);

    stroke-width: 12;

    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0;

    filter:
        drop-shadow(
            0 0 5px rgba(56, 189, 248, 0.42)
        )
        drop-shadow(
            0 0 13px rgba(37, 99, 235, 0.22)
        );

    stroke-dasharray: 1;
    stroke-dashoffset: 1;

    animation:
        rbLogoWrite
        1.25s
        cubic-bezier(.65, 0, .35, 1)
        1.3s
        forwards;
}
/* =========================================================
   BOND HIGHLIGHT
========================================================= */

.rb-logo-bond-highlight {
    fill: none;

    stroke:
        rgba(255, 255, 255, 0.76);

    stroke-width: 2.6;

    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0;

    stroke-dasharray: 1;
    stroke-dashoffset: 1;

    filter:
        drop-shadow(
            0 0 4px rgba(255, 255, 255, 0.28)
        );

    animation:
        rbLogoWrite
        2s
        cubic-bezier(.65, 0, .35, 1)
        1.88s
        forwards;
}

/* =========================================================
   BRAND BLOCK
========================================================= */

.rb-intro-brand {
    width: 100%;

    margin-top: 6px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


/* =========================================================
   RANDOMBONDS NAME
========================================================= */

.rb-intro-title {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size:
        clamp(30px, 7.6vw, 38px);

    line-height: 1;

    font-weight: 760;

    letter-spacing:
        -1.6px;

    color:
        #f5f9f9;

    opacity: 0;

    animation:
        rbBrandAppear
        700ms
        ease-out
        2.55s
        forwards;
}


/* =========================================================
   TAGLINE
========================================================= */

.rb-intro-tagline {
    margin:
        13px 0 0;

    white-space: nowrap;

    font-size:
        clamp(12px, 3.2vw, 14px);

    line-height: 1.4;

    font-weight: 500;

    letter-spacing:
        .7px;

    color:
        rgba(220, 228, 240, 0.55);

    opacity: 0;

    animation:
        rbBrandAppear
        700ms
        ease-out
        2.28s
        forwards;
}


.rb-intro-tagline span {
    display: inline-block;

    margin:
        0 7px;

    color:
        rgba(91, 146, 222, 0.82);
}

/* =========================================
   RANDOMBONDS — BLUE SHINE LOADER
========================================= */

.rb-intro-loader {
    position: relative;

    width: 52px;

    height: 2px;

    margin-top: 30px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, 0.20);

    opacity: 0;

    animation:
        rbLoaderAppear
        500ms
        ease-out
        2.55s
        forwards;
}


/* =========================================
   MOVING BLUE SHINE
========================================= */

.rb-loader-line {
    position: absolute;

    top: 0;

    left: 0;

    width: 35%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #1D4ED8,
            #2563EB,
            #3B82F6,
            #60A5FA,
            #93C5FD,
            #60A5FA,
            #3B82F6,
            #2563EB,
            #1D4ED8
        );

    box-shadow:
        0 0 5px rgba(59, 130, 246, 0.85),
        0 0 12px rgba(37, 99, 235, 0.65),
        0 0 20px rgba(59, 130, 246, 0.40);

    animation:
        rbLoaderSweep
        1.6s
        ease-in-out
        2.55s
        infinite;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes rbIntroAppear {

    0% {
        opacity: 0;

        transform:
            translateY(10px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes rbLogoWrite {

    0% {
        stroke-dashoffset: 1;

        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;

        opacity: 1;
    }
}


@keyframes rbBrandAppear {

    0% {
        opacity: 0;

        transform:
            translateY(7px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes rbLoaderAppear {

    0% {
        opacity: 0;
    }

    100% {
        opacity: .85;
    }
}


@keyframes rbLoaderSweep {

    0% {
        transform:
            translateX(-160%);
    }

    50% {
        transform:
            translateX(210%);
    }

    100% {
        transform:
            translateX(300%);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .rb-intro {
        min-height: 470px;

        padding:
            16px;
    }


    .rb-intro-visual {
        width: 210px;

        height: 160px;
    }


    .rb-logo-stage {
        width: 180px;

        height: 140px;
    }


    .rb-logo-svg {
        width: 180px;

        height: 139px;
    }


    .rb-intro-title {
        letter-spacing:
            -1.4px;
    }
}


/* =========================================================
   SMALL HEIGHT DEVICES
========================================================= */

@media (max-height: 620px) {

    .rb-intro {
        transform:
            scale(.90);
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rb-intro,
    .rb-logo-r,
    .rb-logo-b,
    .rb-logo-bond,
    .rb-intro-title,
    .rb-intro-tagline,
    .rb-intro-loader,
    .rb-loader-line {
        animation: none !important;
    }


    .rb-logo-r,
    .rb-logo-b,
    .rb-logo-bond {
        stroke-dashoffset: 0;

        opacity: 1;
    }


    .rb-intro-title,
    .rb-intro-tagline,
    .rb-intro-loader {
        opacity: 1;
    }
}


/* =========================================================
   06 — AUTH AREA
========================================================= */

.auth-area {
    min-height: 100vh;
}


.auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        28px
        max(20px, env(safe-area-inset-right))
        28px
        max(20px, env(safe-area-inset-left));

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(75, 145, 244, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(34, 211, 238, 0.10),
            transparent 35%
        ),
        var(--rb-bg);
}


.auth-card {
    width: min(100%, 470px);

    padding: 34px;

    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--rb-radius-xl);

    background:
        rgba(255,255,255,0.92);

    box-shadow: var(--rb-shadow-lg);

    backdrop-filter: blur(20px);
}


.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 34px;
}


.auth-brand strong {
    display: block;
    font-size: 17px;
}


.auth-brand span {
    display: block;
    margin-top: 2px;

    font-size: 12px;
    color: var(--rb-text-muted);
}


.auth-heading {
    margin-bottom: 24px;
}


.eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--rb-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.14em;
}


.auth-heading h1 {
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.08;

    letter-spacing: -1.2px;
}


.auth-heading p {
    margin-top: 10px;

    color: var(--rb-text-soft);

    line-height: 1.6;
}


/* =========================================================
   07 — FORM ELEMENTS
========================================================= */

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


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;
}


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-sm);

    background: var(--rb-surface);

    color: var(--rb-text);

    padding: 13px 14px;

    transition:
        border-color var(--rb-transition),
        box-shadow var(--rb-transition);
}


.form-group input {
    min-height: 48px;
}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--rb-primary);

    box-shadow:
        0 0 0 4px rgba(75, 145, 244, 0.09);
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--rb-text-muted);
}


.primary-button {
    width: 100%;

    min-height: 54px;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 17px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #3B82F6 0%,
            #2563EB 50%,
            #1D4ED8 100%
        );

    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    font-weight: 850;

    cursor: pointer;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}


.primary-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.04);

    box-shadow:
        0 15px 30px rgba(37, 99, 235, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}


.primary-button:active {
    transform: translateY(0) scale(0.985);

    box-shadow:
        0 7px 16px rgba(37, 99, 235, 0.20);
}


.secondary-button {
    width: 100%;

    color: var(--rb-text);

    background: var(--rb-surface);

    border: 1px solid var(--rb-border);
}


.secondary-button:hover {
    background: var(--rb-surface-soft);
}


.guest-button {
    width: 100%;

    min-height: 48px;

    margin-top: 12px;

    padding: 0 16px;

    border: 1px solid rgba(37, 99, 235, 0.16);

    border-radius: 15px;

    color: #2563EB;

    background:
        linear-gradient(
            180deg,
            rgba(239, 246, 255, 0.96),
            rgba(230, 240, 255, 0.92)
        );

    font-weight: 800;

    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}


.guest-button:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            180deg,
            #EFF6FF,
            #DBEAFE
        );

    box-shadow:
        0 9px 20px rgba(37, 99, 235, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}


.guest-button:active {
    transform: scale(0.985);
}
.back-button {
    width: 100%;

    margin-top: 10px;

    color: var(--rb-text-soft);

    background: transparent;
}


.back-button:hover {
    color: var(--rb-primary);
}


.text-button {
    padding: 4px;

    color: var(--rb-primary);

    background: transparent;

    font-size: 13px;
    font-weight: 750;
}


.text-button:hover {
    text-decoration: underline;
}


#forgotPasswordButton {
    display: block;

    margin:
        10px
        0
        18px
        auto;
}


.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 20px 0;
}


.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--rb-border);
}


.auth-divider span {
    color: var(--rb-text-muted);
    font-size: 10px;
    font-weight: 800;
}


.form-status {
    min-height: 20px;

    margin-top: 12px;

    color: var(--rb-text-soft);

    font-size: 13px;
    line-height: 1.5;
}


.auth-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    margin-top: 22px;

    color: var(--rb-text-soft);

    font-size: 13px;
}


/* =========================================================
   08 — PROFILE SETUP
========================================================= */

.profile-setup-screen {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background: var(--rb-bg);
}


.setup-card {
    width: min(100%, 560px);

    padding: 34px;

    border-radius: var(--rb-radius-xl);

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-lg);
}


.setup-card h1 {
    font-size: clamp(28px, 5vw, 38px);
    letter-spacing: -1px;
}


.setup-card > p {
    margin: 10px 0 26px;

    color: var(--rb-text-soft);
    line-height: 1.6;
}


.profile-photo-picker {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 24px;
}


.profile-photo-preview {
    width: 82px;
    height: 82px;

    flex: 0 0 auto;

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

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(75, 145, 244, 0.12),
            rgba(37,99,235,.10)
        );

    color: var(--rb-primary);

    font-size: 30px;
    font-weight: 800;
}


.profile-photo-picker .secondary-button {
    width: auto;
}


/* =========================================================
   09 — MAIN APPLICATION
========================================================= */

.main-app {
    min-height: 100vh;

    background: var(--rb-bg);
}


.app-header {
    position: fixed;
    z-index: 100;

    top: 0;
    left: 0;
    right: 0;

    height: var(--rb-header-height);

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

    padding:
        0
        max(18px, env(safe-area-inset-right))
        0
        max(18px, env(safe-area-inset-left));

    background:
        rgba(255,255,255,0.90);

    border-bottom: 1px solid var(--rb-border);

    backdrop-filter: blur(18px);
}


.header-left,
.header-actions {
    display: flex;
    align-items: center;
}


.header-left {
    gap: 12px;
}


.header-actions {
    gap: 6px;
}


.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    background: transparent;

    color: var(--rb-text);

    font-size: 15px;
    font-weight: 850;
}


.icon-button {
    width: 40px;
    height: 40px;

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

    border-radius: 12px;

    background: transparent;

    color: var(--rb-text);

    font-size: 18px;
}

.icon-button svg {
    width: 20px;
    height: 20px;

    display: block;

    flex: 0 0 20px;

    color: currentColor;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}


.icon-button:hover svg {
    transform: scale(1.05);
}

.icon-button:hover {
    background: var(--rb-surface-soft);
}


.header-profile-button {
    width: 40px;
    height: 40px;

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

    margin-left: 3px;

    border-radius: 50%;

    background: transparent;
}


.header-avatar {
    width: 34px;
    height: 34px;

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

    border-radius: 50%;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-secondary)
        );
}


.notification-button {
    position: relative;
}


.notification-count,
.nav-count {
    min-width: 18px;
    height: 18px;

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

    border-radius: 99px;

    color: #ffffff;

    background: var(--rb-danger);

    font-size: 10px;
    font-weight: 800;
}


.notification-count {
    position: absolute;

    top: 1px;
    right: 0;
}


/* =========================================================
   10 — APPLICATION LAYOUT
========================================================= */

.app-layout {
    min-height: 100vh;

    padding-top: var(--rb-header-height);
}


.app-sidebar {
    position: fixed;
    z-index: 90;

    top: var(--rb-header-height);
    bottom: 0;
    left: 0;

    width: var(--rb-sidebar-width);

    display: flex;
    flex-direction: column;

    padding: 18px 13px;

    overflow-y: auto;

    background: var(--rb-surface);

    border-right: 1px solid var(--rb-border);
}


.main-navigation,
.secondary-navigation,
.staff-navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.nav-item {
    width: 100%;

    min-height: 45px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 9px 12px;

    border-radius: 13px;

    color: var(--rb-text-soft);

    background: transparent;

    text-align: left;

    font-size: 13px;
    font-weight: 700;

    transition:
        background var(--rb-transition),
        color var(--rb-transition);
}


.nav-item > span:first-child {
    width: 22px;

    display: flex;
    justify-content: center;

    font-size: 17px;
}


.nav-item:hover {
    color: var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.06);
}


.nav-item.active {
    color: var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.1);
}


.nav-count {
    margin-left: auto;
}


.sidebar-divider {
    width: 100%;
    height: 1px;

    margin: 17px 0;

    background: var(--rb-border);
}


.sidebar-section-title {
    padding: 0 12px 7px;

    color: var(--rb-text-muted);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 0.12em;
}


.sidebar-footer {
    margin-top: auto;

    padding-top: 18px;
}


.logout-button {
    width: 100%;

    min-height: 44px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 9px 12px;

    border-radius: 13px;

    color: var(--rb-danger);

    background:
        rgba(239,68,68,.06);

    font-size: 13px;
    font-weight: 750;
}


.page-container {
    min-height: calc(100vh - var(--rb-header-height));

    margin-left: var(--rb-sidebar-width);

    padding: 28px;

    overflow-x: hidden;
}


.page {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;
}


.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}


.page-header h1 {
    font-size: clamp(28px, 5vw, 38px);
    letter-spacing: -1.2px;
}


.page-header p {
    margin-top: 8px;

    color: var(--rb-text-soft);

    line-height: 1.5;
}


.page-header .primary-button {
    width: auto;
    flex: 0 0 auto;
}


/* =========================================================
   11 — HOME
========================================================= */

.home-hero {
    padding: 34px;

    margin-bottom: 22px;

    border-radius: var(--rb-radius-xl);

    background:
        linear-gradient(
            135deg,
            rgba(75, 145, 244, 0.12),
            rgba(37,99,235,.07)
        );

    border: 1px solid rgba(75, 145, 244, 0.08);
}


.home-hero h1 {
    font-size: clamp(30px, 6vw, 46px);

    letter-spacing: -1.6px;
}


.home-hero p {
    max-width: 620px;

    margin-top: 10px;

    color: var(--rb-text-soft);

    line-height: 1.65;
}


.home-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


.feature-card {
    min-height: 150px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    padding: 20px;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-lg);

    background: var(--rb-surface);

    color: var(--rb-text);

    text-align: left;

    box-shadow: var(--rb-shadow-sm);

    transition:
        transform var(--rb-transition),
        box-shadow var(--rb-transition);
}


.feature-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--rb-shadow-md);
}


.feature-card > span {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

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

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(75, 145, 244, 0.13),
            rgba(97, 165, 255, 0.09)
        );

    border: 1px solid
        rgba(75, 145, 244, 0.10);

    box-shadow:
        0 10px 24px
            rgba(55, 95, 180, 0.08),
        inset 0 1px 0
            rgba(255, 255, 255, 0.75);

    position: relative;

    overflow: hidden;

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}


.feature-card > span::after {
    content: "";

    position: absolute;

    width: 34px;
    height: 34px;

    top: -17px;
    right: -17px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.38);

    filter: blur(2px);

    pointer-events: none;
}


.feature-card:hover > span {
    transform:
        translateY(-2px)
        scale(1.025);

    border-color:
        rgba(75, 145, 244, 0.18);

    box-shadow:
        0 14px 30px
            rgba(55, 95, 180, 0.13),
        inset 0 1px 0
            rgba(255, 255, 255, 0.82);
}


.rb-feature-icon svg {
    width: 38px;
    height: 38px;

    display: block;

    overflow: visible;

    transition:
        transform 240ms cubic-bezier(.2,.8,.2,1),
        filter 240ms ease;
}


.feature-card:hover .rb-feature-icon svg {
    transform:
        translateY(-2px)
        scale(1.07);

    filter:
        drop-shadow(
            0 7px 12px
            rgba(55, 112, 226, 0.18)
        );
}

.feature-card:hover
.rb-feature-icon svg {
    transform:
        scale(1.055)
        rotate(-1deg);
}

.feature-card:hover .rb-feature-icon svg {
    transform: scale(1.06);
}

.feature-card h2 {
    margin-top: 16px;

    font-size: 15px;
}


.feature-card p {
    margin-top: 5px;

    color: var(--rb-text-muted);

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   12 — GENERIC CONTENT
========================================================= */

.page-content {
    width: 100%;
}


.empty-state {
    min-height: 260px;

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

    padding: 30px;

    border: 1px dashed var(--rb-border);
    border-radius: var(--rb-radius-lg);

    background: var(--rb-surface);

    text-align: center;
}


.empty-state > span {
    font-size: 38px;
}


.empty-state h2 {
    margin-top: 12px;
}


.empty-state p {
    margin-top: 7px;

    color: var(--rb-text-soft);
}


/* =========================================================
   12A — DISCOVER PAGE
========================================================= */

.rb-discover-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* ---------------------------------------------------------
   DISCOVER SEARCH CARD
--------------------------------------------------------- */

.rb-discover-search-card {
    padding: 26px;

    border:
        1px solid
        rgba(37, 99, 235, 0.10);

    border-radius:
        var(--rb-radius-xl);

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.095),
            rgba(255, 255, 255, 0.96)
        );

    box-shadow:
        var(--rb-shadow-sm);
}


.rb-discover-search-header h2 {
    margin-top: 2px;

    font-size:
        clamp(22px, 4vw, 28px);

    letter-spacing:
        -0.7px;
}


.rb-discover-search-header p {
    margin-top: 7px;

    max-width: 650px;

    color:
        var(--rb-text-soft);

    font-size: 13px;

    line-height: 1.55;
}


/* ---------------------------------------------------------
   SEARCH BOX
--------------------------------------------------------- */

.rb-discover-search-box {
    position: relative;

    margin-top: 20px;
}


.rb-discover-search-icon {
    position: absolute;

    top: 50%;
    left: 15px;

    transform:
        translateY(-50%);

    font-size: 17px;

    pointer-events:
        none;
}


.rb-discover-search-input {
    width: 100%;

    min-height: 50px;

    padding:
        0 16px 0 45px;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        15px;

    color:
        var(--rb-text);

    background:
        rgba(255,255,255,0.92);

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,0.85);

    transition:
        border-color var(--rb-transition),
        box-shadow var(--rb-transition),
        transform var(--rb-transition);
}


.rb-discover-search-input::placeholder {
    color:
        var(--rb-text-muted);
}


.rb-discover-search-input:focus {
    border-color:
        var(--rb-primary);

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.08);
}


/* ---------------------------------------------------------
   FILTER BAR
--------------------------------------------------------- */

.rb-discover-filter-bar {
    display: flex;

    align-items: center;

    gap: 8px;

    width: 100%;

    overflow-x: auto;

    padding:
        2px
        1px
        4px;

    scrollbar-width:
        none;
}


.rb-discover-filter-bar::-webkit-scrollbar {
    display: none;
}


.rb-discover-filter {
    flex:
        0 0 auto;

    min-height:
        40px;

    padding:
        0 14px;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        999px;

    color:
        var(--rb-text-soft);

    background:
        var(--rb-surface);

    font-size:
        12px;

    font-weight:
        750;

    white-space:
        nowrap;

    transition:
        background var(--rb-transition),
        color var(--rb-transition),
        border-color var(--rb-transition),
        transform var(--rb-transition);
}


.rb-discover-filter:hover {
    color:
        var(--rb-primary);

    border-color:
        rgba(37,99,235,0.25);

    transform:
        translateY(-1px);
}


.rb-discover-filter.active {
    color:
        #ffffff;

    border-color:
        transparent;

    background:
        linear-gradient(
            135deg,
            #3B82F6,
            #2563EB,
            #1D4ED8
        );

    box-shadow:
        0 7px 18px
        rgba(37,99,235,0.18);
}


/* ---------------------------------------------------------
   DISCOVER SECTION
--------------------------------------------------------- */

.rb-discover-section {
    padding:
        20px;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        var(--rb-radius-lg);

    background:
        var(--rb-surface);

    box-shadow:
        var(--rb-shadow-sm);
}


.rb-discover-section-header {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 16px;

    margin-bottom:
        16px;
}


.rb-discover-section-header > div:first-child {
    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;
}


.rb-discover-section-icon {
    width: 40px;
    height: 40px;

    flex:
        0 0 40px;

    display: flex;

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

    border-radius:
        13px;

    background:
        rgba(37,99,235,0.08);

    font-size:
        18px;
}


.rb-discover-section-header h2 {
    font-size:
        16px;

    line-height:
        1.25;
}


.rb-discover-section-header p {
    margin-top:
        4px;

    color:
        var(--rb-text-muted);

    font-size:
        11px;

    line-height:
        1.45;
}


/* ---------------------------------------------------------
   VIEW ALL BUTTON
--------------------------------------------------------- */

.rb-discover-view-all {
    flex:
        0 0 auto;

    padding:
        7px 4px;

    color:
        var(--rb-primary);

    background:
        transparent;

    font-size:
        11px;

    font-weight:
        800;

    white-space:
        nowrap;
}


.rb-discover-view-all:hover {
    text-decoration:
        underline;
}


/* ---------------------------------------------------------
   HORIZONTAL MEMBER LISTS
--------------------------------------------------------- */

.rb-discover-horizontal-list {
    display: flex;

    align-items: stretch;

    gap: 11px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding:
        2px 2px 8px;

    scrollbar-width: none;

    -webkit-overflow-scrolling:
        touch;

    scroll-snap-type:
        x proximity;
}


.rb-discover-horizontal-list::-webkit-scrollbar {
    display: none;
}


/* ---------------------------------------------------------
   COMPACT DISCOVER MEMBER CARD
--------------------------------------------------------- */

.rb-discover-member-card {
    flex:
        0 0
        clamp(
            145px,
            42vw,
            190px
        );

    min-width: 0;

    min-height:
        158px;

    padding:
        14px 10px;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        var(--rb-radius-md);

    background:
        var(--rb-surface-soft);

    text-align:
        center;

    cursor:
        pointer;

    scroll-snap-align:
        start;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        flex-start;

    transition:
        transform var(--rb-transition),
        box-shadow var(--rb-transition),
        border-color var(--rb-transition);
}


.rb-discover-member-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(
            37,
            99,
            235,
            0.20
        );

    box-shadow:
        var(--rb-shadow-sm);
}


/* ---------------------------------------------------------
   DISCOVER AVATAR
--------------------------------------------------------- */

.rb-discover-member-avatar {
    width:
        52px;

    height:
        52px;

    margin:
        0 auto 8px;

    flex:
        0 0 52px;

    overflow:
        hidden;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-primary-light)
        );

    font-size:
        14px;

    font-weight:
        800;
}


.rb-discover-member-avatar img {
    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


/* ---------------------------------------------------------
   DISCOVER NAME + BADGE
--------------------------------------------------------- */

.rb-discover-member-name {
    width:
        100%;

    min-width:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        3px;

    line-height:
        1.2;

    overflow:
        hidden;
}


.rb-discover-display-name {
    max-width:
        100%;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    font-size:
        12px;

    font-weight:
        800;
}


/* ---------------------------------------------------------
   DISCOVER STAFF / VERIFIED BADGES
   Scoped only to Discover so the master badge system
   remains unchanged everywhere else.
--------------------------------------------------------- */

.rb-discover-member-card
.rb-public-role-badge {
    flex:
        0 0 auto;

    max-width:
        58px;

    max-height:
        24px;

    object-fit:
        contain;

    vertical-align:
        middle;
}


/* Staff image badge sizing inside Discover */

.rb-discover-member-card
.rb-owner-badge,
.rb-discover-member-card
.rb-public-owner-badge {
    width:
        58px !important;

    height:
        auto !important;
}


.rb-discover-member-card
.rb-super-admin-badge {
    width:
        58px !important;

    height:
        auto !important;
}


.rb-discover-member-card
.rb-admin-badge {
    width:
        52px !important;

    height:
        auto !important;
}


/* ---------------------------------------------------------
   USERNAME / META
--------------------------------------------------------- */

.rb-discover-member-meta {
    width:
        100%;

    margin-top:
        4px;

    overflow:
        hidden;

    color:
        var(--rb-text-muted);

    font-size:
        9px;

    line-height:
        1.3;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.rb-discover-member-joined {
    width:
        100%;

    margin-top:
        3px;

    overflow:
        hidden;

    color:
        var(--rb-primary);

    font-size:
        9px;

    font-weight:
        750;

    line-height:
        1.3;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


/* ---------------------------------------------------------
   ONLINE STATUS
--------------------------------------------------------- */

.rb-discover-member-status {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        4px;

    margin-top:
        auto;

    padding-top:
        7px;

    color:
        var(--rb-text-muted);

    font-size:
        9px;

    font-weight:
        700;

    white-space:
        nowrap;
}


.rb-discover-online-dot {
    width:
        6px;

    height:
        6px;

    flex:
        0 0 6px;

    border-radius:
        50%;

    background:
        var(--rb-success);
}



/* ---------------------------------------------------------
   MEMBER DISCOVERY CARD
   Used later by main.js when real users load.
--------------------------------------------------------- */

.rb-discover-member-card {
    min-width: 0;

    padding:
        15px 12px;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        var(--rb-radius-md);

    background:
        var(--rb-surface-soft);

    text-align:
        center;

    cursor:
        pointer;

    transition:
        transform var(--rb-transition),
        box-shadow var(--rb-transition),
        border-color var(--rb-transition);
}


.rb-discover-member-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(37,99,235,0.20);

    box-shadow:
        var(--rb-shadow-sm);
}


.rb-discover-member-avatar {
    width: 58px;
    height: 58px;

    margin:
        0 auto 10px;

    overflow:
        hidden;

    display: flex;

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

    border-radius:
        50%;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-primary-light)
        );

    font-size:
        15px;

    font-weight:
        800;
}


.rb-discover-member-avatar img {
    width: 100%;
    height: 100%;

    object-fit:
        cover;
}


.rb-discover-member-name {
    overflow:
        hidden;

    color:
        var(--rb-text);

    font-size:
        12px;

    font-weight:
        800;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.rb-discover-member-meta {
    margin-top:
        4px;

    color:
        var(--rb-text-muted);

    font-size:
        10px;

    line-height:
        1.4;
}


/* ---------------------------------------------------------
   ONLINE STATUS
--------------------------------------------------------- */

.rb-discover-member-status {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    margin-top:
        7px;

    color:
        var(--rb-text-muted);

    font-size:
        10px;

    font-weight:
        700;
}


.rb-discover-online-dot {
    width: 6px;
    height: 6px;

    border-radius:
        50%;

    background:
        var(--rb-success);
}


/* ---------------------------------------------------------
   BOTTOM TWO-COLUMN AREA
--------------------------------------------------------- */

.rb-discover-bottom-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, 0.85fr);

    gap:
        20px;
}


/* ---------------------------------------------------------
   POSTS PREVIEW
--------------------------------------------------------- */

.rb-discover-post-list {
    display: flex;

    flex-direction: column;

    gap:
        10px;
}


.rb-discover-post-card {
    padding:
        13px;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        var(--rb-radius-md);

    background:
        var(--rb-surface-soft);

    cursor:
        pointer;

    transition:
        transform var(--rb-transition),
        box-shadow var(--rb-transition);
}


.rb-discover-post-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--rb-shadow-sm);
}


.rb-discover-post-card h3 {
    overflow:
        hidden;

    font-size:
        12px;

    line-height:
        1.45;

    text-overflow:
        ellipsis;
}


.rb-discover-post-card p {
    margin-top:
        5px;

    color:
        var(--rb-text-soft);

    font-size:
        11px;

    line-height:
        1.5;

    display:
        -webkit-box;

    -webkit-line-clamp:
        2;

    -webkit-box-orient:
        vertical;

    overflow:
        hidden;
}




/* ---------------------------------------------------------
   LOADING / EMPTY CONTAINERS
--------------------------------------------------------- */

.rb-discover-horizontal-list:empty,
.rb-discover-post-list:empty,
.rb-discover-bond-list:empty {
    min-height:
        76px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        12px;

    border:
        1px dashed
        var(--rb-border);

    border-radius:
        var(--rb-radius-md);

    background:
        var(--rb-surface-soft);
}


.rb-discover-horizontal-list:empty::before {
    content:
        "Discovering members...";

    color:
        var(--rb-text-muted);

    font-size:
        11px;

    font-weight:
        700;
}


.rb-discover-post-list:empty::before {
    content:
        "Loading community posts...";

    color:
        var(--rb-text-muted);

    font-size:
        11px;

    font-weight:
        700;
}


.rb-discover-bond-list:empty::before {
    content:
        "Finding possible bonds...";

    color:
        var(--rb-text-muted);

    font-size:
        11px;

    font-weight:
        700;
}


/* ---------------------------------------------------------
   DISCOVER EMPTY STATE
--------------------------------------------------------- */

.rb-discover-empty-state {
    min-height:
        250px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    padding:
        28px;

    border:
        1px dashed
        var(--rb-border);

    border-radius:
        var(--rb-radius-lg);

    background:
        var(--rb-surface);

    text-align:
        center;
}


.rb-discover-empty-icon {
    width: 54px;
    height: 54px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        17px;

    background:
        rgba(37,99,235,0.08);

    font-size:
        24px;
}


.rb-discover-empty-state h3 {
    margin-top:
        13px;

    font-size:
        16px;
}


.rb-discover-empty-state p {
    margin-top:
        5px;

    color:
        var(--rb-text-soft);

    font-size:
        12px;
}


/* ---------------------------------------------------------
   DISCOVER RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1050px) {

    .rb-discover-horizontal-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .rb-discover-bottom-grid {
        grid-template-columns:
            1fr;
    }
}


@media (max-width: 600px) {

    .rb-discover-search-card {
        padding:
            20px 16px;
    }


    .rb-discover-section {
        padding:
            16px;
    }


    .rb-discover-section-header {
        align-items:
            flex-start;
    }


    .rb-discover-section-header > div:first-child {
        align-items:
            flex-start;
    }


    .rb-discover-horizontal-list {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .rb-discover-member-card {
        padding:
            13px 9px;
    }


    .rb-discover-member-avatar {
        width: 52px;
        height: 52px;
    }
}


@media (max-width: 420px) {

    .rb-discover-search-header h2 {
        font-size:
            21px;
    }


    .rb-discover-filter {
        min-height:
            38px;

        padding:
            0 12px;

        font-size:
            11px;
    }


    .rb-discover-horizontal-list {
        grid-template-columns:
            1fr;
    }


    .rb-discover-section-header p {
        font-size:
            10px;
    }


    .rb-discover-view-all {
        font-size:
            10px;
    }
}

/* =========================================================
   13 — POSTS PAGE
========================================================= */

.post-composer {
    margin-bottom: 22px;

    padding: 18px;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-lg);

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-sm);
}


/* =========================================================
   CREATE POST MODAL
========================================================= */

.rb-post-composer-backdrop {
    position: fixed;
    inset: 0;

    z-index: 5000;

    background:
        rgba(15, 23, 42, 0.48);

    backdrop-filter:
        blur(9px);

    -webkit-backdrop-filter:
        blur(9px);

    animation:
        rbPostBackdropIn
        180ms ease-out;
}


.rb-post-composer-modal {
    position: fixed;

    top: 50%;
    left: 50%;

    z-index: 5001;

    width:
        min(
            calc(100vw - 28px),
            620px
        );

    max-height:
        min(
            calc(100vh - 28px),
            760px
        );

    margin: 0;

    padding: 20px;

    overflow-y: auto;

    border:
        1px solid
        rgba(148, 163, 184, 0.28);

    border-radius:
        24px;

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 30px 90px
        rgba(15, 23, 42, 0.28);

    transform:
        translate(-50%, -50%)
        scale(1);

    animation:
        rbPostModalIn
        200ms
        cubic-bezier(.2,.8,.2,1);
}


.rb-post-composer-modal
.post-composer-header {
    display: flex;

    align-items: center;
    gap: 12px;

    margin-bottom: 15px;

    font-size: 15px;
    font-weight: 800;
}


.rb-post-composer-modal
.composer-avatar {
    width: 46px;
    height: 46px;

    flex:
        0 0 46px;

    display: flex;

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

    overflow: hidden;

    border-radius: 50%;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-secondary)
        );

    font-size: 13px;
    font-weight: 850;
}


.rb-post-composer-modal
.composer-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.rb-post-composer-modal
textarea {
    width: 100%;

    min-height: 125px;

    padding: 15px;

    border:
        1px solid
        var(--rb-border);

    border-radius: 17px;

    color:
        var(--rb-text);

    background:
        var(--rb-surface-soft);

    line-height: 1.55;

    resize:
        vertical;

    box-sizing:
        border-box;
}


.rb-post-composer-modal
textarea:focus {
    border-color:
        var(--rb-primary);

    outline:
        none;

    box-shadow:
        0 0 0 4px
        rgba(75, 145, 244, 0.10);
}


.rb-post-composer-modal
.post-composer-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 12px;
}


.rb-post-composer-modal
.composer-option {
    min-height: 46px;

    padding: 10px 13px;

    border:
        1px solid
        var(--rb-border);

    border-radius: 13px;

    color:
        var(--rb-text-soft);

    background:
        var(--rb-surface-soft);

    font-size: 13px;
    font-weight: 750;

    cursor:
        pointer;

    transition:
        transform 160ms ease,
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}


.rb-post-composer-modal
.composer-option:hover {
    color:
        var(--rb-primary);

    border-color:
        rgba(75, 145, 244, 0.22);

    background:
        rgba(75, 145, 244, 0.07);

    transform:
        translateY(-1px);
}


.rb-post-composer-modal
.post-composer-footer {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 16px;
}


.rb-post-composer-modal
.post-composer-footer
.primary-button,
.rb-post-composer-modal
.post-composer-footer
.secondary-button {
    width: auto;
}


.rb-post-composer-modal
.post-composer-footer
.secondary-button {
    min-height: 46px;

    padding:
        0 18px;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        13px;
}

/* =========================================================
   RANDOMBONDS POST MEDIA PREVIEW
========================================================= */

.rb-post-selected-media {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 16px;

    background: #000;
}


.rb-post-selected-media img,
.rb-post-selected-media video {
    width: 100%;

    max-height: 420px;

    display: block;

    object-fit: contain;
}


.rb-post-remove-media {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;

    display: flex;

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

    border: 0;

    border-radius: 50%;

    color: #fff;

    background:
        rgba(0, 0, 0, 0.72);

    font-size: 17px;
    font-weight: 800;

    cursor: pointer;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.rb-post-remove-media:hover {
    transform: scale(1.05);
}

/* =========================================================
   MEDIA PREVIEW
========================================================= */

.rb-post-composer-modal
.post-media-preview {
    margin-top: 13px;

    overflow: hidden;

    border:
        1px solid
        var(--rb-border);

    border-radius:
        16px;

    background:
        #000;
}


.rb-post-composer-modal
.post-media-preview img,
.rb-post-composer-modal
.post-media-preview video {
    width: 100%;

    max-height: 420px;

    display: block;

    object-fit:
        contain;
}


/* =========================================================
   BODY LOCK WHILE MODAL IS OPEN
========================================================= */

.rb-post-modal-open {
    overflow:
        hidden;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes rbPostBackdropIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes rbPostModalIn {

    from {
        opacity: 0;

        transform:
            translate(-50%, -48%)
            scale(0.96);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .rb-post-composer-modal {

        width:
            calc(100vw - 20px);

        max-height:
            calc(100vh - 20px);

        padding:
            16px;

        border-radius:
            21px;
    }


    .rb-post-composer-modal
    .post-composer-actions {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .rb-post-composer-modal
    .post-composer-footer {

        flex-direction:
            column-reverse;
    }


    .rb-post-composer-modal
    .post-composer-footer
    .primary-button,

    .rb-post-composer-modal
    .post-composer-footer
    .secondary-button {

        width: 100%;
    }
}

/* =========================================================
   14 — POST CARD FOUNDATION
========================================================= */

.post-card {
    width: 100%;
    overflow: hidden;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-lg);

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-sm);

    box-sizing: border-box;
}


/* =========================================================
   POST HEADER
========================================================= */

.post-header {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 16px 18px 10px;

    box-sizing: border-box;
}


.post-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

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

    overflow: hidden;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-secondary)
        );

    font-size: 13px;
    font-weight: 800;

    box-sizing: border-box;
}


.post-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: inherit;
}


.post-author {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
}


.post-author-name {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    min-width: 0;

    color: var(--rb-text);

    font-size: 13px;
    font-weight: 800;

    line-height: 1.25;
}


/* ---------------------------------------------------------
   POST BADGES
   Uses the EXISTING RandomBonds badge system.
--------------------------------------------------------- */

.post-author-name .rb-public-role-badge {
    flex: 0 0 auto;

    width: auto !important;
    height: 27px !important;

    max-width: 68px !important;

    object-fit: contain;
}


.post-author-name .rb-moderator-badge,
.post-author-name .rb-verified-badge {
    width: 27px !important;
    height: 27px !important;

    max-width: 27px !important;
}


.post-time {
    margin-top: 3px;

    color: var(--rb-text-muted);

    font-size: 11px;

    line-height: 1.3;

    white-space: nowrap;
}


/* =========================================================
   POST MENU
========================================================= */

.post-menu-button {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

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

    margin-left: auto;

    padding: 0;

    border: 0;
    border-radius: 10px;

    color: var(--rb-text-soft);

    background: transparent;

    font-size: 21px;
    font-weight: 800;

    line-height: 1;

    cursor: pointer;

    box-sizing: border-box;
}


.post-menu-button:hover {
    color: var(--rb-text);

    background: var(--rb-surface-soft);
}


.post-menu-button:active {
    transform: scale(.94);
}


/* =========================================================
   POST BODY
========================================================= */

.post-body {
    width: 100%;

    display: block;

    min-height: 0;
    height: auto;

    padding: 6px 18px 16px;

    box-sizing: border-box;

    text-align: left;
}


.post-caption {
    width: 100%;

    display: block;

    margin: 0;
    padding: 0;

    color: var(--rb-text);

    font-size: 15px;
    line-height: 1.55;

    text-align: left;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
    word-break: break-word;

    box-sizing: border-box;
}


/* =========================================================
   POST MEDIA — COMPACT PREVIEW
========================================================= */

.post-media-preview-box {

    position: relative;

    width: min(100%, 430px);

    height: 250px;

    margin: 12px auto 0;

    overflow: hidden;

    border-radius: 16px;

    background: #000;

    cursor: pointer;

    box-shadow:
        0 8px 24px
        rgba(16, 32, 39, 0.10);

    border:
        1px solid
        rgba(16, 32, 39, 0.08);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.post-media-preview-box:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 30px
        rgba(16, 32, 39, 0.14);
}


.post-media-preview-box:active {

    transform:
        scale(0.992);
}


/* =========================================================
   IMAGE THUMBNAIL
========================================================= */

.post-media-thumbnail {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    background: #000;

    user-select: none;
}


/* =========================================================
   VIDEO THUMBNAIL
========================================================= */

.post-video-thumbnail {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    background: #000;

    pointer-events: none;

    user-select: none;
}


/* =========================================================
   VIDEO PLAY BUTTON
========================================================= */

.post-media-play-button {

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 64px;
    height: 64px;

    display: flex;

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

    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(0, 0, 0, 0.62);

    border:
        1px solid
        rgba(255, 255, 255, 0.32);

    backdrop-filter:
        blur(8px);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.28);

    font-size: 22px;

    padding-left: 3px;

    transition:
        transform 180ms ease,
        background 180ms ease;
}


.post-media-preview-box:hover
.post-media-play-button {

    transform:
        translate(-50%, -50%)
        scale(1.06);

    background:
        rgba(0, 0, 0, 0.72);
}


/* =========================================================
   EXPAND HINT
========================================================= */

.post-media-expand-hint {

    position: absolute;

    right: 10px;
    bottom: 10px;

    padding:
        6px
        9px;

    border-radius: 999px;

    color: #ffffff;

    background:
        rgba(0, 0, 0, 0.52);

    backdrop-filter:
        blur(8px);

    font-size: 10px;

    font-weight: 750;

    letter-spacing:
        0.02em;

    pointer-events:
        none;
}


/* =========================================================
   OLD MEDIA SELECTORS — KEEP SAFE
   These aliases prevent old markup from becoming huge
========================================================= */

.post-media {

    width: 100%;

    max-height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 16px;
}


.post-video-container {

    position: relative;

    width: 100%;

    overflow: hidden;

    background: #000;

    border-radius: 16px;
}


.post-video {

    width: 100%;

    max-height: 100%;

    display: block;

    background: #000;

    object-fit: contain;
}

/* =========================================================
   POST ACTIONS
========================================================= */

.post-actions {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 4px;

    padding: 9px 12px;

    border-top: 1px solid var(--rb-border);

    box-sizing: border-box;
}


.post-action {
    min-height: 38px;

    padding: 8px 11px;

    border-radius: 10px;

    color: var(--rb-text-soft);

    background: transparent;

    font-size: 12px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;
}


.post-action:hover {
    color: var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.07);
}

/* =========================================================
   RANDOMBONDS — POST LIKE STATES
========================================================= */

.post-action[data-post-like] {

    position: relative;

    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;

}


/* ---------------------------------------------------------
   LIKED STATE
--------------------------------------------------------- */

.post-action[data-post-like].rb-post-liked {

    color: #1877f2;

    background:
        rgba(24, 119, 242, 0.08);

}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.post-action[data-post-like].rb-post-liked:hover {

    color: #1877f2;

    background:
        rgba(24, 119, 242, 0.13);

}


/* ---------------------------------------------------------
   LIKE POP
--------------------------------------------------------- */

@keyframes rbPostLikePop {

    0% {

        transform:
            scale(1);

    }

    35% {

        transform:
            scale(1.16);

    }

    60% {

        transform:
            scale(0.94);

    }

    100% {

        transform:
            scale(1);

    }

}


.rb-post-like-pop {

    animation:
        rbPostLikePop
        420ms
        cubic-bezier(
            .2,
            .9,
            .3,
            1.2
        );

}


/* ---------------------------------------------------------
   UNLIKE
--------------------------------------------------------- */

@keyframes rbPostUnlikePop {

    0% {

        transform:
            scale(1);

    }

    45% {

        transform:
            scale(0.92);

    }

    100% {

        transform:
            scale(1);

    }

}


.rb-post-unlike-pop {

    animation:
        rbPostUnlikePop
        280ms
        ease;

}


/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

@media (
    prefers-reduced-motion: reduce
) {

    .rb-post-like-pop,
    .rb-post-unlike-pop {

        animation:
            none;

    }

}


/* =========================================================
   POSTS — MOBILE CARD
========================================================= */

@media (max-width: 760px) {

    .post-card {
        border-radius: 24px;
    }


    .post-header {
        padding:
            16px
            16px
            9px;
    }


    .post-avatar {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }


    .post-body {
        padding:
            6px
            16px
            15px;

        text-align: left;
    }


    .post-caption {
        font-size: 15px;

        line-height: 1.55;

        text-align: left;
    }


    .post-actions {
        padding:
            8px
            10px;
    }


    .post-action {
        min-height: 38px;

        padding:
            8px
            10px;

        font-size: 12px;
    }

}


/* =========================================================
   17 — PUBLIC CHAT — FULL SCREEN
========================================================= */

.public-chat-screen {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;

    max-width: none;

    margin: 0;
    padding: 0;

    z-index: 2000;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--rb-surface);
}


/* ---------------------------------------------------------
   PUBLIC CHAT PAGE HEADER
--------------------------------------------------------- */

.public-chat-screen > .page-header {
    flex: 0 0 auto;

    width: 100%;

    margin: 0;
    padding:
        14px
        max(16px, env(safe-area-inset-right))
        14px
        max(16px, env(safe-area-inset-left));

    border-bottom: 1px solid var(--rb-border);

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(18px);
}


/* ---------------------------------------------------------
   PUBLIC CHAT RULES
--------------------------------------------------------- */

.public-chat-rules {
    flex: 1 1 auto;

    min-height: 0;

    width: 100%;

    padding:
        14px
        max(14px, env(safe-area-inset-right))
        14px
        max(14px, env(safe-area-inset-left));

    overflow-x: hidden;
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;

    background: var(--rb-surface);
}


/* ---------------------------------------------------------
   RULES CARD
--------------------------------------------------------- */

.public-chat-rules .rules-card {
    width: min(100%, 650px);

    margin: 0 auto;

    padding: 22px;

    border: 1px solid var(--rb-border);

    border-radius: var(--rb-radius-xl);

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-md);

    text-align: center;
}


/* ---------------------------------------------------------
   PUBLIC MESSAGES
--------------------------------------------------------- */

.public-messages {
    flex: 1 1 auto;

    width: 100%;

    min-height: 0;
    height: auto;

    overflow-x: hidden;
    overflow-y: auto;

    padding:
        14px
        max(14px, env(safe-area-inset-right))
        14px
        max(14px, env(safe-area-inset-left));

    background: var(--rb-surface);

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-y: contain;

    scroll-behavior: smooth;
}


/* ---------------------------------------------------------
   PUBLIC COMPOSER
--------------------------------------------------------- */

.public-composer {
    position: relative;

    flex: 0 0 auto;

    width: 100%;

    padding:
        10px
        max(14px, env(safe-area-inset-right))
        calc(10px + env(safe-area-inset-bottom))
        max(14px, env(safe-area-inset-left));

    border-top: 1px solid var(--rb-border);

    background: rgba(255,255,255,0.97);

    backdrop-filter: blur(18px);
}


/* ---------------------------------------------------------
   CHARACTER COUNT
--------------------------------------------------------- */

.public-character-count {
    position: absolute;

    right:
        max(18px, env(safe-area-inset-right));

    top: -23px;

    color: var(--rb-text-muted);

    font-size: 10px;
}


/* ---------------------------------------------------------
   TYPING AREA
--------------------------------------------------------- */

.public-typing-area {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 8px;
}


/* ---------------------------------------------------------
   PLUS BUTTON
--------------------------------------------------------- */

.public-add-button {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

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

    border-radius: 50%;

    color: var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.09);

    font-size: 24px;
    font-weight: 500;

    position: relative;
    z-index: 20;

    pointer-events: auto;

    transition:
        transform var(--rb-transition),
        background var(--rb-transition);
}


.public-add-button:hover {
    background:
        rgba(75, 145, 244, 0.15);

    transform: scale(1.04);
}


.public-add-button:active {
    transform: scale(.96);
}


/* ---------------------------------------------------------
   MESSAGE INPUT
--------------------------------------------------------- */

.public-message-input {
    width: 100%;
    min-width: 0;

    height: 42px;

    padding: 0 14px;

    border: 1px solid var(--rb-border);

    border-radius: 13px;

    color: var(--rb-text);

    background: var(--rb-surface-soft);
}


.public-message-input:focus {
    border-color: var(--rb-primary);

    box-shadow:
        0 0 0 3px rgba(75, 145, 244, 0.08);
}


/* ---------------------------------------------------------
   SEND BUTTON
--------------------------------------------------------- */

.public-send-button {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 13px;

    color: #ffffff;

    background: var(--rb-primary);

    font-size: 17px;

    position: relative;
    z-index: 20;

    pointer-events: auto;
}


/* ---------------------------------------------------------
   PUBLIC CHAT MOBILE
--------------------------------------------------------- */

@media (max-width: 520px) {

    .public-chat-screen > .page-header {
        padding:
            10px
            100px
            10px
            max(10px, env(safe-area-inset-left));
    }


    .public-chat-screen > .page-header h1 {
        font-size: 25px;
    }


    .public-chat-screen > .page-header p {
        font-size: 12px;
    }


    .public-chat-header-actions {
        top: 10px;

        right:
            max(10px, env(safe-area-inset-right));

        gap: 6px;
    }


    .public-chat-header-button {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        border-radius: 11px;

        font-size: 18px;
    }
/* ---------------------------------------------------------
   PUBLIC CHAT PAGE HEADER
--------------------------------------------------------- */

.public-chat-screen > .page-header {
    position: relative;

    flex: 0 0 auto;

    width: 100%;

    margin: 0;

    padding:
        14px
        120px
        14px
        max(16px, env(safe-area-inset-left));

    border-bottom: 1px solid var(--rb-border);

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(18px);
}
/* ---------------------------------------------------------
   PUBLIC CHAT HEADER ACTIONS
--------------------------------------------------------- */

.public-chat-page-header {
    position: relative;
}


/* ---------------------------------------------------------
   HEADER ACTION BUTTONS — TOP RIGHT
--------------------------------------------------------- */

.public-chat-header-actions {
    position: absolute;

    top: 14px;
    right: max(16px, env(safe-area-inset-right));

    display: flex;
    align-items: center;

    gap: 8px;

    z-index: 10;
}


.public-chat-header-button {
    width: 40px;
    height: 40px;

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

    padding: 0;

    border: 1px solid var(--rb-border);
    border-radius: 12px;

    color: var(--rb-text);

    background: var(--rb-surface);

    font-size: 19px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform var(--rb-transition),
        background var(--rb-transition),
        border-color var(--rb-transition);
}


.public-chat-header-button:hover {
    background: var(--rb-surface-soft);

    border-color: var(--rb-primary);

    transform: translateY(-1px);
}


.public-chat-header-button:active {
    transform: scale(.95);
}

    .public-chat-rules {
        padding:
            10px
            max(10px, env(safe-area-inset-right))
            10px
            max(10px, env(safe-area-inset-left));
    }


    .public-chat-rules .rules-card {
        padding: 16px;
    }


    .public-messages {
        padding:
            12px
            max(10px, env(safe-area-inset-right))
            12px
            max(10px, env(safe-area-inset-left));
    }


    .public-typing-area {
        gap: 6px;
    }


    .public-add-button,
    .public-send-button {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    .public-message-input {
        height: 40px;
    }
}

/* =========================================================
   18 — PUBLIC CHAT MESSAGE FOUNDATION
========================================================= */

.public-message {
    display: flex;
    gap: 10px;

    margin-bottom: 13px;
}


.public-avatar {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

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

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-secondary)
        );

    font-size: 11px;
    font-weight: 800;
}


.public-message-content {
    min-width: 0;
    max-width: min(80%, 650px);
}


.public-message-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    margin-bottom: 4px;
}


.public-username-clickable {
    cursor: pointer;

    font-size: 12px;
}


.public-username-clickable:hover {
    color: var(--rb-primary);
}


.public-message-time,
without pretending that browser-based device bans are foolproof.chat-message-time,
.rb-gif-message-time {
    color: var(--rb-text-muted);

    font-size: 10px;
}


.public-message-bubble {
    padding: 9px 12px;

    border-radius:
        5px
        15px
        15px
        15px;

    color: var(--rb-text);

    background: var(--rb-surface-soft);

    line-height: 1.5;

    overflow-wrap: anywhere;
}

/* =========================================================
   PUBLIC CHAT — LONG MESSAGE WRAPPING
========================================================= */

.public-message-text {
    width: 100%;
    max-width: 100%;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
    word-break: break-word;

    line-height: 1.5;
}


/* =========================================================
   RANDOMBONDS — MASTER BADGE SYSTEM
   PNG: Owner / Super Admin / Admin / VIBI
   EMOJI: Moderator / Verified
========================================================= */

.public-message-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
}


/* =========================================================
   BASE
========================================================= */

.rb-public-role-badge {
    display: inline-flex !important;

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

    flex: 0 0 auto;

    position: relative;

    vertical-align: middle;

    border: 0;

    background: transparent;

    transform-origin: center center;

    will-change: transform, filter;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* =========================================================
   OWNER — PNG
========================================================= */

.rb-owner-badge,
.rb-public-owner-badge {

    width: 90px !important;
    height: auto !important;

    object-fit: contain;

    filter:
        drop-shadow(
            0 5px 9px
            rgba(63, 131, 220, .24)
        );

    animation:
        rbOwnerMasterFloat
        5.5s
        ease-in-out
        infinite;
}


/* =========================================================
   SUPER ADMIN — PNG
========================================================= */

.rb-super-admin-badge {

    width: 92px !important;
    height: auto !important;

    object-fit: contain;

    filter:
        drop-shadow(
            0 5px 9px
            rgba(55, 105, 230, .22)
        );

    animation:
        rbSuperAdminMasterFloat
        5.8s
        ease-in-out
        infinite;
}


/* =========================================================
   ADMIN — PNG
========================================================= */

.rb-admin-badge {

    width: 78px !important;
    height: auto !important;

    object-fit: contain;

    filter:
        drop-shadow(
            0 5px 8px
            rgba(70, 131, 210, .20)
        );

    animation:
        rbAdminMasterFloat
        6s
        ease-in-out
        infinite;
}


/* =========================================================
   VIBI — PNG
========================================================= */

.rb-vibi-badge {

    width: 84px !important;
    height: auto !important;

    object-fit: contain;

    filter:
        drop-shadow(
            0 5px 9px
            rgba(75, 147, 240, .23)
        );

    animation:
        rbVibiMasterFloat
        5.8s
        ease-in-out
        infinite;
}


/* =========================================================
   MODERATOR — PREMIUM EMOJI
========================================================= */

.rb-moderator-badge {

    width: 31px !important;
    height: 31px !important;

    display: inline-flex !important;

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

    border-radius: 11px;

    font-size: 21px !important;
    line-height: 1 !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf4ff 48%,
            #d9e8ff
        );

    border:
        1px solid
        rgba(87, 139, 220, .24);

    box-shadow:
        0 5px 12px
        rgba(64, 114, 205, .20),

        inset 0 1px 2px
        rgba(255,255,255,.95);

    text-shadow:
        0 1px 2px
        rgba(32,76,145,.35);

    animation:
        rbModeratorMasterFloat
        5.2s
        ease-in-out
        infinite;
}


/* =========================================================
   VERIFIED — PREMIUM EMOJI
========================================================= */

.rb-verified-badge {

    width: 31px !important;
    height: 31px !important;

    display: inline-flex !important;

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

    border-radius: 50%;

    font-size: 19px !important;
    line-height: 1 !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eaf3ff 48%,
            #cde3ff
        );

    border:
        1px solid
        rgba(88, 147, 225, .24);

    box-shadow:
        0 5px 12px
        rgba(75, 135, 213, .20),

        inset 0 1px 3px
        rgba(255,255,255,.95);

    text-shadow:
        0 1px 2px
        rgba(49, 97, 160, .35);

    animation:
        rbVerifiedMasterFloat
        5s
        ease-in-out
        infinite;
}


/* =========================================================
   MASTERPIECE FLOATING
   NO ROTATION
   NO BOUNCING
========================================================= */

@keyframes rbOwnerMasterFloat {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-6px)
            scale(1.025);
    }
}


@keyframes rbSuperAdminMasterFloat {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-5px)
            scale(1.02);
    }
}


@keyframes rbAdminMasterFloat {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-4px)
            scale(1.018);
    }
}


@keyframes rbVibiMasterFloat {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-5px)
            scale(1.02);
    }
}


@keyframes rbModeratorMasterFloat {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-4px)
            scale(1.025);
    }
}


@keyframes rbVerifiedMasterFloat {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-4px)
            scale(1.025);
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rb-public-role-badge {
        animation: none !important;
    }
}

/* =========================================================
   20 — MEMBER LIST
========================================================= */

.members-section {
    margin-bottom: 28px;
}


.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;
}


.section-heading h2 {
    font-size: 18px;
}


.section-count {
    min-width: 23px;
    height: 23px;

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

    border-radius: 99px;

    color: var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.09);

    font-size: 10px;
    font-weight: 800;
}


.members-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.member-card {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-md);

    background: var(--rb-surface);

    cursor: pointer;

    transition:
        transform var(--rb-transition),
        box-shadow var(--rb-transition);
}


.member-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--rb-shadow-sm);
}


.member-avatar {
    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    border-radius: 50%;

    overflow: hidden;
}


.member-info {
    min-width: 0;
}


.member-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    font-size: 13px;
    font-weight: 800;
}


.member-status {
    margin-top: 3px;

    color: var(--rb-text-muted);

    font-size: 11px;
}


.online-dot {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: var(--rb-success);
}


/* =========================================================
   21 — PRIVATE MESSAGES
========================================================= */

.messages-layout {
    min-height: 600px;

    display: grid;

    grid-template-columns: 300px minmax(0, 1fr);

    overflow: hidden;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-lg);

    background: var(--rb-surface);
}


.conversation-list {
    overflow-y: auto;

    border-right: 1px solid var(--rb-border);
}


.conversation-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px;

    border-bottom: 1px solid var(--rb-border);

    background: transparent;

    text-align: left;
}

.conversation-avatar {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    border-radius: 50%;

    object-fit: cover;

    display: block;

    overflow: hidden;

    border: 1px solid var(--rb-border);
    background: var(--rb-surface);
}


.conversation-avatar-fallback {
    display: flex;

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

    font-size: 22px;
}

.conversation-item:hover,
.conversation-item.active {
    background:
        rgba(75, 145, 244, 0.06);
}


.private-chat-panel {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.private-chat-content {
    height: 600px;

    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.private-chat-header {
    min-height: 64px;

    display: flex;
    align-items: center;

    padding: 12px 16px;

    border-bottom: 1px solid var(--rb-border);
}


.private-messages {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    padding: 18px;
}

.private-composer {
    display: flex;
    gap: 8px;

    flex: 0 0 auto;

    padding: 10px;

    border-top: 1px solid var(--rb-border);
}


.private-composer input {
    flex: 1;
    min-width: 0;

    height: 44px;

    padding: 0 13px;

    border: 1px solid var(--rb-border);
    border-radius: 12px;
}


.private-composer .primary-button {
    width: auto;
}


/* =========================================================
   22 — PROFILE PAGE
========================================================= */

.profile-page-content {
    width: 100%;
}


.profile-card {
    width: min(100%, 620px);
    margin-inline: auto;
    overflow: hidden;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-xl);

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-sm);
}


.profile-cover {
    height: 150px;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-secondary)
        );
}


.profile-main {
    position: relative;

    padding: 0 20px 20px;
}


.profile-avatar-large {
    width: 96px;
    height: 96px;

    margin-top: -48px;

    border: 5px solid var(--rb-surface);

    border-radius: 50%;

    overflow: hidden;

    background: var(--rb-surface);
}


.profile-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 11px;

    font-size: 23px;
    font-weight: 850;
}


.profile-username {
    margin-top: 3px;

    color: var(--rb-text-muted);

    font-size: 13px;
}


.profile-bio {
    max-width: 700px;

    margin-top: 13px;

    color: var(--rb-text-soft);

    line-height: 1.6;
}


.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 18px;
}


.profile-actions button {
    width: auto;
}


/* =========================================================
   23 — SETTINGS
========================================================= */

.settings-content {
    display: grid;

    gap: 12px;
}


.settings-card {
    padding: 18px;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-lg);

    background: var(--rb-surface);
}


.settings-card h2 {
    font-size: 16px;
}


.settings-card p {
    margin-top: 5px;

    color: var(--rb-text-soft);

    font-size: 12px;
    line-height: 1.5;
}


.settings-row {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid var(--rb-border);
}


.settings-row:last-child {
    border-bottom: 0;
}


/* =========================================================
   24 — STAFF PANEL
========================================================= */

.staff-panel-content,
.announcements-content {
    display: grid;
    gap: 14px;
}


.staff-card,
.announcement-card {
    padding: 18px;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-lg);

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-sm);
}


/* =========================================================
   25 — MODALS
========================================================= */

.modal-root {
    position: relative;
    z-index: 1000;
}


.rb-modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 10000;

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

    padding: 20px;

    background:
        rgba(12, 17, 25, 0.58);

    backdrop-filter: blur(5px);
}


.rb-modal {
    width: min(100%, 560px);
    max-height: min(90vh, 760px);

    overflow-y: auto;
    padding: 0;

    border-radius: var(--rb-radius-xl);

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-lg);
}


/* =========================================================
   PUBLIC CHAT — PHOTO PREVIEW
========================================================= */

#rbPublicPhotoPreviewModal {
    position: fixed !important;
    inset: 0 !important;

    z-index: 100001 !important;

    display: none !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 20px !important;

    background:
        rgba(8, 10, 18, 0.72) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

#rbPublicPhotoPreviewModal.open {
    display: flex !important;
}

#rbPublicPhotoPreviewModal .rb-modal {
    width: min(520px, calc(100% - 24px));
    max-height: 92vh;

    overflow-y: auto;

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #F9FCFF 100%
        );

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.35);

    animation:
        rbPublicPhotoIn
        0.22s
        ease-out;
}

@keyframes rbPublicPhotoIn {

    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* HEADER */

.rb-public-photo-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;
    padding: 20px;
}

.rb-public-photo-preview-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: var(--rb-primary);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

.rb-public-photo-preview-header h3 {
    margin: 0;

    color: var(--rb-text);

    font-size: 21px;
    font-weight: 850;
}


/* CLOSE */

.rb-public-photo-preview-close {
    width: 40px;
    height: 40px;

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

    border: 0;
    border-radius: 50%;

    background: rgba(20, 26, 35, 0.07);

    color: var(--rb-text);

    font-size: 26px;
    line-height: 1;

    cursor: pointer;
}


/* IMAGE */

.rb-public-photo-preview-image-wrap {
    width: calc(100% - 32px);

    margin: 0 16px;

    min-height: 220px;
    max-height: 58vh;

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

    overflow: hidden;

    border-radius: 20px;

    background: #111;
}

.rb-public-photo-preview-image {
    display: block;

    width: 100%;
    max-width: 100%;
    max-height: 58vh;

    object-fit: contain;
}


/* FILE INFO */

.rb-public-photo-preview-info {
    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 14px 20px 16px;
}

.rb-public-photo-preview-info strong {
    overflow: hidden;

    color: var(--rb-text);

    font-size: 13px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.rb-public-photo-preview-info span {
    color: var(--rb-text-muted);

    font-size: 11px;
}


/* BUTTONS */

.rb-public-photo-preview-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    padding: 0 20px 20px;
}

.rb-public-photo-preview-cancel,
.rb-public-photo-preview-send {
    min-height: 48px;

    border-radius: 14px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.rb-public-photo-preview-cancel {
    border: 1px solid var(--rb-border);

    background: var(--rb-surface);

    color: var(--rb-text);
}

.rb-public-photo-preview-send {
    border: 0;

    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-primary-light)
        );

    color: #fff;

    box-shadow:
        0 8px 20px
        rgba(75, 145, 244, 0.2);
}


/* MOBILE */

@media (max-width: 600px) {

    #rbPublicPhotoPreviewModal .rb-modal {
        width: calc(100% - 20px);
        max-height: 90vh;

        border-radius: 24px;
    }

    .rb-public-photo-preview-image-wrap {
        min-height: 200px;
        max-height: 52vh;
    }

    .rb-public-photo-preview-image {
        max-height: 52vh;
    }
}

/* =========================================================
   PROFILE PHOTO VIEWER
========================================================= */

#rbProfilePhotoViewer {
    position: fixed;
    inset: 0;
    z-index: 100002;

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

    padding: 20px;
}

#rbProfilePhotoViewer.open {
    display: flex;
}

.rb-profile-photo-viewer-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(8, 12, 18, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rb-profile-photo-viewer-card {
    position: relative;
    z-index: 2;

    max-width: min(92vw, 700px);
    max-height: 90vh;

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

.rb-profile-photo-viewer-image {
    display: block;

    max-width: 90vw;
    max-height: 82vh;

    object-fit: contain;

    border-radius: 20px;

    box-shadow:
        0 24px 80px
        rgba(0, 0, 0, 0.45);
}

.rb-profile-photo-viewer-close {
    position: absolute;

    top: -16px;
    right: -16px;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);

    color: #171722;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.24);

    z-index: 3;
}

.rb-profile-photo-viewer-close:hover {
    transform: scale(1.05);
}

/* =========================================================
   PUBLIC CHAT PLUS MENU
========================================================= */

.rb-plus-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 20px 22px;

    border-bottom: 1px solid var(--rb-border);
}

.rb-plus-header .eyebrow {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--rb-primary);
}

.rb-plus-header h3 {
    margin: 0;

    font-size: 22px;
    line-height: 1.2;

    color: var(--rb-text);
}

.rb-plus-close {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    padding: 0;

    border: 1px solid var(--rb-border);
    border-radius: 12px;

    color: var(--rb-text);
    background: var(--rb-surface);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.rb-plus-options {
    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 16px;
}

.rb-plus-option {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 14px;

    border: 1px solid var(--rb-border);
    border-radius: 16px;

    color: var(--rb-text);
    background: var(--rb-surface);

    text-align: left;

    cursor: pointer;

    font-family: inherit;

    transition:
        transform var(--rb-transition),
        background var(--rb-transition),
        border-color var(--rb-transition);
}

.rb-plus-option:hover {
    background: var(--rb-surface-soft);
    transform: translateY(-1px);
}

.rb-plus-option:active {
    transform: scale(0.99);
}

.rb-plus-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

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

    border-radius: 14px;

    background: rgba(75, 145, 244, 0.1);

    font-size: 21px;
}

.rb-plus-option > span:last-child {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.rb-plus-option strong {
    font-size: 15px;
    line-height: 1.25;
}

.rb-plus-option small {
    font-size: 12px;
    line-height: 1.4;

    color: var(--rb-text-muted);
}


/* =========================================================
   PUBLIC CHAT PLUS MENU — MOBILE
========================================================= */

@media (max-width: 600px) {

    .rb-modal {
        width: calc(100% - 20px);
        max-height: 88vh;
    }

    .rb-plus-header {
        padding: 17px 18px;
    }

    .rb-plus-options {
        padding: 12px;
    }

    .rb-plus-option {
        padding: 12px;
    }
}


/* =========================================================
   26 — TOASTS
========================================================= */

.toast-container {
    position: fixed !important;
    z-index: 2147483647 !important;
    top: calc(var(--rb-header-height, 68px) + 10px + env(safe-area-inset-top, 0px));
    right: 12px;
    bottom: auto;
    left: auto;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100dvh - 100px);
    overflow: visible;
    pointer-events: none;
}


.rb-toast {
    padding: 12px 14px;

    border: 1px solid var(--rb-border);
    border-radius: 13px;

    background: var(--rb-surface);

    box-shadow: var(--rb-shadow-md);

    color: var(--rb-text);

    font-size: 12px;
    line-height: 1.5;

    animation:
        rbToastIn .22s ease;
}


@keyframes rbToastIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   27 — MOBILE NAVIGATION BUTTON
========================================================= */

#mobileMenuButton {
    display: none;
    position: relative;
}

/* UNREAD PRIVATE MESSAGE BADGE ON HAMBURGER */

.mobile-private-message-badge {
    position: absolute;
    top: 0;
    right: 0;

    min-width: 18px;
    height: 18px;
    padding: 0 4px;

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

    border: 2px solid #FFFFFF;
    border-radius: 999px;

    background: #E65353;
    color: #FFFFFF;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 2px 6px rgba(16, 32, 39, 0.18);

    pointer-events: none;
}

.mobile-private-message-badge.hidden {
    display: none !important;
}




/* =========================================================
   28 — RESPONSIVE TABLET
========================================================= */

@media (max-width: 1050px) {

    .home-feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .members-list {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   29 — RESPONSIVE MOBILE
========================================================= */

@media (max-width: 1000px) {
    :root {
        --rb-header-height: 62px;
    }


    #mobileMenuButton {
        display: flex;
    }


    .app-sidebar {
        transform: translateX(-105%);

        transition:
            transform 220ms ease;

        box-shadow:
            15px 0 40px rgba(0,0,0,.08);
    }


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


    .page-container {
        margin-left: 0;

        padding: 20px 14px 30px;
    }


    .page-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .page-header .primary-button {
        width: 100%;
    }

/* =========================================================
   RANDOMBONDS — POSTS HEADER MOBILE
========================================================= */

@media (max-width: 760px) {

    #postsPage .page-header {
        position: relative;
        display: block;
        margin-bottom: 24px;
        min-height: 105px;
    }

    #postsPage .page-header > div {
        padding-right: 125px;
    }

    #postsPage .page-header .primary-button {
        position: absolute;
        top: 31px;
        right: 0;

        width: auto;
        min-height: 42px;

        padding: 0 13px;

        border-radius: 13px;

        white-space: nowrap;

        font-size: 13px;
        font-weight: 800;
    }

}

    .home-hero {
        padding: 25px 20px;
    }


    .home-feature-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }


    .feature-card {
        min-height: 135px;

        padding: 15px;
    }


    .messages-layout {
        grid-template-columns: 1fr;

        min-height: 0;
    }


  

.conversation-list {
    height: auto;
    max-height: none;
    min-height: 0;

    overflow-y: visible;
    overscroll-behavior-y: auto;

    border-right: 0;
    border-bottom: 1px solid var(--rb-border);
}




    .private-chat-content {
        min-height: 500px;
    }


    .auth-card,
    .setup-card {
        padding: 24px 20px;

        border-radius: 22px;
    }


    .profile-cover {
        height: 145px;
    }


    .profile-main {
        padding: 0 17px 20px;
    }


    .profile-avatar-large {
        width: 88px;
        height: 88px;

        margin-top: -44px;
    }

}


/* =========================================================
   30 — SMALL PHONES
========================================================= */

@media (max-width: 520px) {

    .app-brand > span:last-child {
        display: none;
    }


    .header-actions {
        gap: 2px;
    }


    .home-feature-grid {
        grid-template-columns:
            1fr;
    }


.feature-card {
    min-height: 110px;

    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    gap: 13px;
}

.feature-card > div {
    flex: 1 1 auto;
    min-width: 0;

    text-align: left;
}


    .feature-card h2 {
        margin-top: 0;
    }


    .feature-card p {
        margin-top: 4px;
    }


    .public-message-content {
        max-width: 88%;
    }


    .public-typing-area {
        gap: 6px;
    }


    .public-add-button,
    .public-send-button {
        width: 40px;
        height: 40px;
    }


    .post-composer-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .post-composer-footer {
        flex-direction: column-reverse;
    }


    .post-composer-footer button {
        width: 100%;
    }


    .private-composer {
    flex-wrap: nowrap;
    align-items: center;
}

.private-composer input {
    flex: 1 1 auto;
    flex-basis: auto;
    min-width: 0;
}

.private-composer .primary-button {
    width: 72px;
    min-width: 72px;
    flex: 0 0 72px;
}


    .profile-actions {
        flex-direction: column;
    }


    .profile-actions button {
        width: 100%;
    }

}


/* =========================================================
   31 — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   32 — DARKER SYSTEM SUPPORT
========================================================= */

@media (prefers-color-scheme: dark) {

    /*
       We are intentionally NOT automatically switching the
       entire application to dark mode yet.

       Later, RandomBonds Settings will control the theme
       explicitly so the user's preference is stored properly.
    */

}


/* =========================================================
   END OF RANDOMBONDS PART 2
========================================================= */
/* =========================================================
   RANDOMBONDS — VIBI RULES HEADER
========================================================= */

.vibi-rules-header {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 24px;

    text-align: left;
}


.vibi-avatar {
    width: 76px;
    height: 76px;

    flex: 0 0 76px;

    overflow: hidden;

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

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(75, 145, 244, 0.1),
            rgba(37, 99, 235, 0.08)
        );

    box-shadow:
        0 10px 25px rgba(75, 145, 244, 0.12);
}


.vibi-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center;
}


.vibi-rules-header-content {
    min-width: 0;
}


.vibi-status {
    display: inline-block;

    margin-bottom: 3px;

    color: var(--rb-success);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 0.12em;
}


.vibi-rules-header-content h2 {
    font-size: 22px;
    line-height: 1.1;
}


.vibi-rules-header-content p {
    margin-top: 5px;

    color: var(--rb-text-soft);

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   VIBI RULE CONTENT
========================================================= */

.vibi-rules-title {
    margin-top: 8px;

    font-size: clamp(27px, 6vw, 38px);

    line-height: 1.12;

    letter-spacing: -1px;
}


.vibi-rules-subtitle {
    margin-top: 10px;

    color: var(--rb-text-soft);

    line-height: 1.6;
}


.vibi-rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 22px;
}


.vibi-rule {
    display: flex;
    gap: 12px;

    padding: 13px;

    border-radius: 14px;

    background:
        var(--rb-surface-soft);

    border: 1px solid var(--rb-border);
}


.vibi-rule-number {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

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

    border-radius: 10px;

    color: var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.09);

    font-size: 10px;
    font-weight: 850;
}


.vibi-rule-text {
    color: var(--rb-text-soft);

    font-size: 13px;

    line-height: 1.55;
}


.vibi-rule-text strong {
    display: block;

    margin-bottom: 2px;

    color: var(--rb-text);

    font-size: 13px;
}


.vibi-rules-footer {
    margin-top: 18px;

    padding: 14px;

    border-radius: 14px;

    color: var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.07);

    font-size: 12px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   VIBI RULES MOBILE
========================================================= */

@media (max-width: 600px) {

    .vibi-rules-header {
        gap: 12px;

        margin-bottom: 20px;
    }


    .vibi-avatar {
        width: 66px;
        height: 66px;

        flex-basis: 66px;

        border-radius: 19px;
    }


    .vibi-rules-header-content h2 {
        font-size: 20px;
    }


    .vibi-rules-title {
        font-size: 29px;
    }


    .vibi-rule {
        padding: 12px;
    }

}
/* =========================================================
   RANDOMBONDS — GUEST PROFILE SETUP
========================================================= */

#rbGuestSetup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(
            circle at top left,
            rgba(77, 151, 255, 0.2),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(37, 99, 235, 0.16),
            transparent 35%
        ),
        rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
}


#rbGuestSetup .rb-guest-card {
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 26px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 24px 70px rgba(20, 41, 70, 0.18),
        0 8px 30px rgba(20, 41, 70, 0.08);
    text-align: center;
}


#rbGuestSetup .rb-guest-logo {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        #4D97FF,
        #3D7DD6
    );
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    box-shadow:
        0 12px 30px rgba(77, 151, 255, 0.3);
}


#rbGuestSetup .rb-guest-title {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    color: #151C25;
    margin-bottom: 8px;
}


#rbGuestSetup .rb-guest-subtitle {
    font-size: 16px;
    color: #6a727d;
    margin-bottom: 28px;
}


#rbGuestSetup .rb-guest-label {
    display: block;
    margin: 18px 0 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #212830;
}


#rbGuestSetup .rb-guest-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #dedbe8;
    border-radius: 16px;
    background: #FAFCFF;
    color: #191f26;
    font-size: 16px;
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}


#rbGuestSetup .rb-guest-input:focus {
    border-color: #4D97FF;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(77, 151, 255, 0.12);
}


#rbGuestSetup .rb-gender-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}


#rbGuestSetup .rb-gender-button {
    min-height: 62px;
    border: 1px solid #e1deea;
    border-radius: 18px;
    background: #F9FBFE;
    color: #232a34;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}


#rbGuestSetup .rb-gender-button:hover {
    transform: translateY(-1px);
}



/* Male selected — blue */
#rbGuestSetup .rb-gender-button.selected[data-gender="boy"] {
    border: 2px solid #4D97FF;
    background: linear-gradient(
        135deg,
        rgba(77, 151, 255, 0.12),
        rgba(61, 125, 214, 0.1)
    );
    box-shadow: 0 8px 22px rgba(77, 151, 255, 0.12);
}

/* Female selected — pink */
#rbGuestSetup .rb-gender-button.selected[data-gender="girl"] {
    border: 2px solid #E85D9E;
    background: linear-gradient(
        135deg,
        rgba(232, 93, 158, 0.13),
        rgba(255, 182, 213, 0.16)
    );
    box-shadow: 0 8px 22px rgba(232, 93, 158, 0.16);
}



#rbGuestSetup .rb-guest-avatar-preview {
    width: 92px;
    height: 92px;
    margin: 22px auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EFF6FF;
    border: 4px solid #D1E4FF;
    font-size: 44px;
    transition:
        border-radius 200ms ease,
        border-color 200ms ease,
        background 200ms ease,
        transform 200ms ease;
}


#rbGuestSetup .rb-guest-avatar-preview.boy {
    border-radius: 50%;
    border-color: #202020;
    background: #f1f3f7;
    transform: scale(1.03);
}


#rbGuestSetup .rb-guest-avatar-preview.girl {
    border-radius: 16px;
    border-color: #E85D9E;
    background: #EAF6FF;
    transform: scale(1.03);
}


#rbGuestSetup .rb-guest-error {
    min-height: 22px;
    margin: 12px 0 4px;
    color: #2563EB;
    font-size: 14px;
    font-weight: 600;
}


#rbGuestSetup .rb-enter-guest-button {
    width: 100%;
    min-height: 56px;
    margin-top: 10px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(
        135deg,
        #4391FF,
        #64A5FF
    );
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 12px 28px rgba(67, 145, 255, 0.26);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}


#rbGuestSetup .rb-enter-guest-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 15px 32px rgba(67, 145, 255, 0.3);
}


#rbGuestSetup .rb-cancel-guest-button {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #6b7480;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    #rbGuestSetup {
        align-items: flex-start;
        padding: 14px;
    }

    #rbGuestSetup .rb-guest-card {
        margin-top: 10px;
        padding: 24px 18px;
        border-radius: 24px;
    }

    #rbGuestSetup .rb-guest-logo {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    #rbGuestSetup .rb-gender-button {
        min-height: 58px;
        font-size: 15px;
    }

}


/* ---------------------------------------------------------
   SMALL PHONES
--------------------------------------------------------- */

@media (max-width: 380px) {

    #rbGuestSetup {
        padding: 10px;
    }

    #rbGuestSetup .rb-guest-card {
        padding: 20px 14px;
    }

    #rbGuestSetup .rb-guest-title {
        font-size: 24px;
    }

}
/* =========================================================
   PUBLIC CHAT — NEW MESSAGE ANIMATION
========================================================= */

.public-message {
    animation: rbMessageEnter 0.35s ease-out both;
    transform-origin: left center;
}

@keyframes rbMessageEnter {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.005);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* =========================================================
   RANDOMBONDS — PUBLIC CHAT FONTS PANEL
   PART 1B — PANEL FOUNDATION
========================================================= */

.public-fonts-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;

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

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.public-fonts-panel.hidden {
    display: none;
}

.public-fonts-card {
    width: min(520px, 100%);
    max-height: min(720px, 90vh);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--rb-border);
    border-radius: 24px;

    background: var(--rb-surface);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.35);

    animation: rbFontsPanelIn 180ms ease-out;
}

.public-fonts-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    padding: 22px 22px 16px;

    border-bottom: 1px solid var(--rb-border);
}

.public-fonts-header .eyebrow {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    opacity: 0.65;
}

.public-fonts-header h2 {
    margin: 0;

    font-size: 24px;
    line-height: 1.2;
}

.public-fonts-header p {
    margin: 7px 0 0;

    font-size: 13px;
    line-height: 1.5;

    opacity: 0.7;
}

.public-fonts-close {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    padding: 0;

    border: 1px solid var(--rb-border);
    border-radius: 12px;

    color: var(--rb-text);
    background: var(--rb-surface);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform var(--rb-transition),
        background var(--rb-transition),
        border-color var(--rb-transition);
}

.public-fonts-close:hover {
    transform: translateY(-1px);
    background: var(--rb-surface-2);
}

.public-fonts-close:active {
    transform: scale(0.96);
}

.public-fonts-controls {
    flex: 1 1 auto;

    min-height: 180px;

    padding: 20px;

    overflow-y: auto;
}

.public-fonts-placeholder {
    min-height: 160px;

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

    padding: 24px;

    text-align: center;

    border: 1px dashed var(--rb-border);
    border-radius: 18px;

    background: var(--rb-surface-2);
}

.public-fonts-placeholder > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 12px;

    border-radius: 16px;

    font-size: 25px;
    font-weight: 700;

    background: rgba(92, 160, 255, 0.12);
}

.public-fonts-placeholder strong {
    font-size: 15px;
}

.public-fonts-placeholder p {
    margin: 7px 0 0;

    font-size: 13px;
    line-height: 1.5;

    opacity: 0.65;
}

.public-fonts-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 16px 20px 20px;

    border-top: 1px solid var(--rb-border);
}

.public-fonts-footer button {
    min-height: 42px;

    padding: 0 18px;

    border-radius: 12px;

    cursor: pointer;
}

@keyframes rbFontsPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .public-fonts-panel {
        align-items: flex-end;
        padding: 10px;
    }

    .public-fonts-card {
        width: 100%;
        max-height: 88vh;

        border-radius: 22px;
    }

    .public-fonts-header {
        padding: 18px 18px 14px;
    }

    .public-fonts-controls {
        padding: 16px;
    }

    .public-fonts-footer {
        padding: 14px 16px 16px;
    }

    .public-fonts-footer button {
        flex: 1;
    }
}
/* =========================================================
   RANDOMBONDS — PUBLIC CHAT FONTS
   PREMIUM CONTROL STYLING
========================================================= */

.public-fonts-controls {
    padding: 0 !important;
    overflow-y: auto;
}

.public-fonts-controls-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* ---------------------------------------------------------
   FONT LEVEL BADGE
--------------------------------------------------------- */

.public-font-level-badge {
    display: flex;
    align-items: center;
    gap: 9px;

    width: fit-content;

    padding: 8px 12px;

    border-radius: 999px;

    background:
        rgba(75, 145, 244, 0.1);

    border: 1px solid
        rgba(75, 145, 244, 0.18);

    color: var(--rb-primary);

    font-size: 12px;
}

.public-font-level-badge span {
    display: inline-flex;

    width: 21px;
    height: 21px;

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

    border-radius: 50%;

    background: var(--rb-primary);

    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
}


/* ---------------------------------------------------------
   CONTROL
--------------------------------------------------------- */

.public-font-control {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);

    align-items: center;

    gap: 12px;
}

.public-font-control label {
    color: var(--rb-text-soft);

    font-size: 13px;
    font-weight: 750;
}


/* ---------------------------------------------------------
   SELECT
--------------------------------------------------------- */

.public-font-select {
    width: 100%;
    min-height: 44px;

    padding: 0 40px 0 13px;

    border: 1px solid var(--rb-border);
    border-radius: 12px;

    outline: none;

    color: var(--rb-text);

    background:
        var(--rb-surface-2);

    font: inherit;
    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
        border-color var(--rb-transition),
        box-shadow var(--rb-transition),
        background var(--rb-transition);
}

.public-font-select:hover {
    border-color:
        rgba(75, 145, 244, 0.35);
}

.public-font-select:focus {
    border-color:
        var(--rb-primary);

    box-shadow:
        0 0 0 3px
        rgba(75, 145, 244, 0.12);
}


/* ---------------------------------------------------------
   COLOR PICKERS
--------------------------------------------------------- */

.public-font-color {
    width: 100%;
    height: 44px;

    padding: 4px;

    border: 1px solid var(--rb-border);
    border-radius: 12px;

    background:
        var(--rb-surface-2);

    cursor: pointer;

    transition:
        border-color var(--rb-transition),
        box-shadow var(--rb-transition);
}

.public-font-color:hover {
    border-color:
        rgba(75, 145, 244, 0.35);
}

.public-font-color:focus {
    outline: none;

    border-color:
        var(--rb-primary);

    box-shadow:
        0 0 0 3px
        rgba(75, 145, 244, 0.12);
}


/* ---------------------------------------------------------
   BOLD / ITALIC / UNDERLINE ROW
--------------------------------------------------------- */

.public-font-style-row {
    display: flex;
    align-items: center;

    gap: 8px;

    padding-top: 2px;
}

.public-font-style-button {
    width: 44px;
    height: 42px;

    display: inline-flex;

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

    border: 1px solid var(--rb-border);
    border-radius: 12px;

    background:
        var(--rb-surface-2);

    color: var(--rb-text);

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform var(--rb-transition),
        border-color var(--rb-transition),
        background var(--rb-transition),
        color var(--rb-transition),
        box-shadow var(--rb-transition);
}

.public-font-style-button:hover {
    border-color:
        rgba(75, 145, 244, 0.35);

    transform:
        translateY(-1px);
}

.public-font-style-button.active,
.public-font-style-button[aria-pressed="true"] {
    border-color:
        var(--rb-primary);

    background:
        rgba(75, 145, 244, 0.12);

    color:
        var(--rb-primary);

    box-shadow:
        0 6px 18px
        rgba(75, 145, 244, 0.12);
}

.public-font-style-button:active {
    transform:
        scale(0.96);
}


/* ---------------------------------------------------------
   PREVIEW CARD
--------------------------------------------------------- */

.public-font-preview {
    display: flex;
    flex-direction: column;

    gap: 9px;

    margin-top: 2px;

    padding: 14px;

    border: 1px solid var(--rb-border);
    border-radius: 16px;

    background:
        var(--rb-surface-2);
}

.public-font-preview > span {
    color: var(--rb-text-muted);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.public-font-preview p {
    width: 100%;

    margin: 0;

    min-height: 54px;

    display: flex;
    align-items: center;

    padding: 11px 13px;

    border: 1px solid
        var(--rb-border);

    border-radius: 12px;

    color: var(--rb-text);

    background:
        var(--rb-surface);

    line-height: 1.45;

    overflow-wrap: anywhere;

    transition:
        all 140ms ease;
}


/* ---------------------------------------------------------
   RESET
--------------------------------------------------------- */

.public-font-reset-button {
    width: fit-content;

    min-height: 38px;

    padding: 0 13px;

    border: 1px solid var(--rb-border);
    border-radius: 10px;

    background:
        transparent;

    color: var(--rb-text-soft);

    font-size: 12px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background var(--rb-transition),
        color var(--rb-transition),
        border-color var(--rb-transition);
}

.public-font-reset-button:hover {
    color: var(--rb-primary);

    border-color:
        rgba(75, 145, 244, 0.3);

    background:
        rgba(75, 145, 244, 0.06);
}


/* ---------------------------------------------------------
   FOOTER BUTTONS
--------------------------------------------------------- */

.public-fonts-footer {
    align-items: center;
}

.public-fonts-footer .secondary-button,
.public-fonts-footer .primary-button {
    min-height: 46px;

    border-radius: 13px;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform var(--rb-transition),
        box-shadow var(--rb-transition),
        background var(--rb-transition);
}

.public-fonts-footer .secondary-button:hover,
.public-fonts-footer .primary-button:hover {
    transform:
        translateY(-1px);
}

.public-fonts-footer .secondary-button:active,
.public-fonts-footer .primary-button:active {
    transform:
        scale(0.98);
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .public-fonts-controls {
        padding: 16px !important;
    }

    .public-fonts-controls-inner {
        gap: 14px;
    }

    .public-font-control {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .public-font-control label {
        font-size: 12px;
    }

    .public-font-select,
    .public-font-color {
        min-height: 46px;
    }

    .public-font-style-row {
        gap: 7px;
    }

    .public-font-style-button {
        flex: 0 0 46px;

        width: 46px;
        height: 44px;
    }

    .public-font-preview {
        padding: 12px;
    }

    .public-font-preview p {
        min-height: 58px;

        font-size: 14px;
    }

    .public-font-reset-button {
        width: 100%;
    }

    .public-fonts-footer {
        gap: 10px;
    }
}
/* =========================================================
   STEP 5A-2 — PUBLIC CHAT ONLINE MEMBERS PANEL
========================================================= */

.rb-public-online-panel {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rb-public-online-panel.hidden {
    display: none !important;
}

.rb-public-online-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 18, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rb-public-online-card {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    max-height: min(720px, 88vh);
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.30),
        0 8px 30px rgba(60, 110, 180, 0.18);
    border: 1px solid rgba(90, 144, 220, 0.14);
    display: flex;
    flex-direction: column;
}

.rb-public-online-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(20, 28, 40, 0.08);
}

.rb-public-online-header .eyebrow {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4D89DC;
}

.rb-public-online-header h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    color: #171722;
}

.rb-public-online-header p {
    margin: 7px 0 0;
    color: #767684;
    font-size: 14px;
}

.rb-public-online-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 26, 35, 0.07);
    color: #22222b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-public-online-close:hover {
    background: rgba(20, 26, 35, 0.12);
}

.rb-public-online-count {
    margin: 16px 24px 10px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(77, 137, 220, 0.1);
    color: #4D89DC;
    font-size: 13px;
    font-weight: 800;
}

.rb-public-online-list {
    padding: 10px 14px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.rb-public-online-user {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 10px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.rb-public-online-user:hover {
    background: rgba(77, 137, 220, 0.07);
}

.rb-public-online-user:active {
    transform: scale(0.985);
}

.rb-public-online-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    overflow: visible;
    background: linear-gradient(135deg, #4D97FF, #3F7FD8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-public-online-avatar img,
.rb-public-online-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.rb-public-online-avatar img {
    object-fit: cover;
    display: block;
}

.rb-public-online-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
}

.rb-public-online-status {
        position: absolute;
    right: 0;
    bottom: 1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #2066C8;
    border: 3px solid #fff;
}

.rb-public-online-info {
    min-width: 0;
    flex: 1;
}

.rb-public-online-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 16px;
    font-weight: 800;
    color: #1b1b25;
}

.rb-public-online-display-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rb-public-online-username {
    display: block;
    margin-top: 2px;
    color: #858593;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rb-public-online-role {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(77, 137, 220, 0.08);
    color: #4D89DC;
    font-size: 10px;
    font-weight: 800;
    text-transform: capitalize;
}

.rb-public-online-empty {
    min-height: 220px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #767684;
}

.rb-public-online-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.rb-public-online-empty strong {
    color: #20202a;
    font-size: 16px;
}

.rb-public-online-empty span {
    margin-top: 5px;
    font-size: 13px;
}

body.rb-online-panel-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .rb-public-online-panel {
        padding: 12px;
        align-items: flex-end;
    }

    .rb-public-online-card {
        width: 100%;
        max-height: 86vh;
        border-radius: 24px 24px 18px 18px;
    }

    .rb-public-online-header {
        padding: 20px 18px 14px;
    }

    .rb-public-online-list {
        padding-left: 10px;
        padding-right: 10px;
    }
}
/* =========================================================
   STEP 5A-4C — GLOBAL USER PROFILE POPUP
   ---------------------------------------------------------
   FINAL PROFILE DESIGN

   STAFF:
   - Owner
   - Super Admin
   - Admin
   - Moderator

   STAFF GET:
   - Full banner
   - Profile picture inside banner
   - Staff visual identity
   - Banner can use any gallery image

   NORMAL USERS:
   - Registered
   - Verified
   - Guest

   NORMAL USERS GET:
   - NO banner
   - Profile picture only

   GENDER:
   - Male   = round + black border
   - Female = square + pink border
========================================================= */


/* =========================================================
   POPUP BACKDROP
========================================================= */

.rb-user-profile-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;

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

    padding: 18px;
}

.rb-user-profile-popup.hidden {
    display: none !important;
}


/* ---------------------------------------------------------
   BACKDROP
--------------------------------------------------------- */

.rb-user-profile-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(10, 12, 22, 0.72);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   DIALOG
========================================================= */

.rb-user-profile-dialog {
    position: relative;
    z-index: 2;

    width: min(500px, 100%);

    max-height:
        min(760px, 92vh);

    overflow-y: auto;
    overflow-x: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.99),
            rgba(248, 251, 255, 0.99)
        );

    border:
        1px solid
        rgba(85, 141, 220, 0.14);

    box-shadow:
        0 35px 100px rgba(0,0,0,0.32),
        0 12px 40px rgba(70, 124, 200, 0.18);

    scrollbar-width: thin;
}


body.rb-user-profile-open {
    overflow: hidden;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.rb-user-profile-close {
    position: absolute;

    top: 16px;
    right: 16px;

    z-index: 100;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

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

    background:
        rgba(255,255,255,0.90);

    color: #20202a;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.12);

    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.rb-user-profile-close:hover {
    transform: scale(1.05);
}


/* =========================================================
   STAFF BANNER
   ---------------------------------------------------------
   ONLY STAFF USE THIS
========================================================= */

.rb-user-profile-banner.staff-profile-banner {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #15191f,
            #4074BD,
            #4781D3
        );

    border-radius:
        30px 30px 0 0;
}


/* ---------------------------------------------------------
   STAFF BANNER IMAGE
   --------------------------------------------------------- */

.rb-user-profile-banner.staff-profile-banner img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ---------------------------------------------------------
   STAFF BANNER OVERLAY
--------------------------------------------------------- */

.rb-user-profile-banner.staff-profile-banner::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.08),
            rgba(0,0,0,0.12),
            rgba(10, 18, 30, 0.38)
        );

    pointer-events: none;
}


/* =========================================================
   NORMAL USER BANNER
   ---------------------------------------------------------
   IMPORTANT:
   NORMAL USERS MUST NOT HAVE A BANNER
========================================================= */

.rb-user-profile-banner.normal-profile-banner {
    display: none !important;
}


/* =========================================================
   STAFF PROFILE PICTURE
   ---------------------------------------------------------
   Picture is visually INSIDE the banner.
========================================================= */

.rb-user-profile-banner.staff-profile-banner
~ .rb-user-profile-avatar-wrap {
    position: absolute;

    top: 150px;
    left: 50%;

    transform:
        translateX(-50%);

    z-index: 20;

    width: 124px;
    height: 124px;

    margin: 0;
}


/* =========================================================
   NORMAL USER PROFILE PICTURE
   ---------------------------------------------------------
   No banner.
========================================================= */

.rb-user-profile-banner.normal-profile-banner
~ .rb-user-profile-avatar-wrap {
    position: relative;

    width: 124px;
    height: 124px;

    margin:
        28px auto 0;

    z-index: 5;
}


/* =========================================================
   PROFILE AVATAR
========================================================= */

.rb-user-profile-avatar {
    width: 100%;
    height: 100%;

    display: flex;

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

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #4D97FF,
            #3C7DD8
        );

    color: #fff;

    font-size: 32px;
    font-weight: 900;

    box-shadow:
        0 14px 32px rgba(0,0,0,0.22);
}


/* ---------------------------------------------------------
   PROFILE IMAGE
--------------------------------------------------------- */

.rb-user-profile-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   MALE
   ---------------------------------------------------------
   ROUND + BLACK
========================================================= */

.rb-user-profile-avatar-wrap.rb-profile-male
.rb-user-profile-avatar {
    border-radius: 50%;

    border:
        6px solid #111111;
}


/* =========================================================
   FEMALE
   ---------------------------------------------------------
   SQUARE + PINK
========================================================= */

.rb-user-profile-avatar-wrap.rb-profile-female
.rb-user-profile-avatar {
    border-radius: 18px;

    border:
        6px solid #EC4899;
}


/* =========================================================
   OTHER / UNKNOWN
========================================================= */

.rb-user-profile-avatar-wrap.rb-profile-other
.rb-user-profile-avatar {
    border-radius: 24px;

    border:
        5px solid #6193D8;
}


/* =========================================================
   ONLINE DOT
========================================================= */

.rb-user-profile-online-dot {
    position: absolute;

    right: 4px;
    bottom: 5px;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    background: #9699a4;

    border:
        4px solid #fff;

    z-index: 30;
}

.rb-user-profile-online-dot.online {
    background: #2066C8;
}

.rb-user-profile-online-dot:not(.online) {
    background: #9699a4;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.rb-user-profile-main {
    position: relative;

    padding:
        16px 24px 28px;

    text-align: center;
}


/* =========================================================
   STAFF MAIN CONTENT
   ---------------------------------------------------------
   Name starts immediately below the banner.
========================================================= */

.rb-user-profile-banner.staff-profile-banner
~ .rb-user-profile-avatar-wrap
~ .rb-user-profile-main {
    padding-top: 8px;
}


/* =========================================================
   NORMAL USER MAIN CONTENT
========================================================= */

.rb-user-profile-banner.normal-profile-banner
~ .rb-user-profile-avatar-wrap
~ .rb-user-profile-main {
    padding-top: 12px;
}


/* =========================================================
   NAME
========================================================= */

.rb-user-profile-name-row {
    display: flex;

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

    gap: 7px;

    margin-top: 8px;
}

.rb-user-profile-name {
    font-size: 27px;
    line-height: 1.15;

    font-weight: 900;

    color: #171722;
}


/* ---------------------------------------------------------
   BADGE
--------------------------------------------------------- */

.rb-user-profile-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.rb-user-profile-badge
.rb-public-role-badge {
    width: auto !important;
    height: 38px !important;

    max-width: 95px !important;

    object-fit: contain;

    flex: 0 0 auto;
}


/* PNG BADGES */

.rb-user-profile-badge
.rb-owner-badge,
.rb-user-profile-badge
.rb-public-owner-badge {
    width: 78px !important;
    height: auto !important;
    max-width: 78px !important;
}


/* EMOJI BADGES */

.rb-user-profile-badge
.rb-moderator-badge,
.rb-user-profile-badge
.rb-verified-badge {
    width: 34px !important;
    height: 34px !important;

    max-width: 34px !important;
}


/* =========================================================
   USERNAME
========================================================= */

.rb-user-profile-username {
    margin-top: 7px;

    color: #777785;

    font-size: 14px;
    font-weight: 650;
}


/* =========================================================
   ROLE PILL
========================================================= */

.rb-user-profile-role {
    width: fit-content;

    margin:
        12px auto 7px;

    padding:
        7px 13px;

    border-radius: 999px;

    background:
        rgba(77, 137, 220, 0.1);

    color:
        #4D89DC;

    font-size: 12px;
    font-weight: 850;

    text-transform: capitalize;
}


/* =========================================================
   PROFILE PRESENCE
   ---------------------------------------------------------
   Online:
   - Online status
   - Online since
   - Current room

   Offline:
   - Offline status
   - Last seen
   - Current room: Offline
========================================================= */

.rb-user-profile-status {
    display: inline-flex;

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

    width: fit-content;

    margin:
        8px auto 4px;

    padding:
        7px 13px;

    border-radius:
        999px;

    background:
        rgba(
            32,
            102,
            200,
            0.08
        );

    color:
        #2066C8;

    font-size:
        13px;

    font-weight:
        850;

    line-height:
        1.2;

    letter-spacing:
        .1px;

    transition:
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}


/* ---------------------------------------------------------
   ONLINE
--------------------------------------------------------- */

.rb-user-profile-status.online {

    color:
        #155DB7;

    background:
        linear-gradient(
            135deg,
            rgba(
                32,
                102,
                200,
                0.12
            ),
            rgba(
                74,
                143,
                235,
                0.07
            )
        );

    box-shadow:
        0 5px 16px
        rgba(
            32,
            102,
            200,
            0.10
        );
}


/* ---------------------------------------------------------
   OFFLINE
--------------------------------------------------------- */

.rb-user-profile-status.offline {

    color:
        #707887;

    background:
        linear-gradient(
            135deg,
            rgba(
                112,
                120,
                135,
                0.10
            ),
            rgba(
                112,
                120,
                135,
                0.05
            )
        );

    box-shadow:
        none;
}


/* =========================================================
   PRESENCE INFORMATION PANEL
========================================================= */

.rb-user-profile-presence-details {

    width:
        min(
            100%,
            430px
        );

    margin:
        12px auto 20px;

    padding:
        8px;

    display:
        grid;

    gap:
        8px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(
            75,
            137,
            220,
            0.13
        );

    border-radius:
        20px;

    background:
        linear-gradient(
            145deg,
            rgba(
                247,
                251,
                255,
                0.98
            ),
            rgba(
                237,
                245,
                255,
                0.88
            )
        );

    box-shadow:
        inset 0 1px 0
        rgba(
            255,
            255,
            255,
            0.90
        ),
        0 10px 28px
        rgba(
            49,
            93,
            150,
            0.08
        );

}


/* =========================================================
   EACH PRESENCE ROW
========================================================= */

.rb-profile-presence-line {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    min-height:
        56px;

    padding:
        9px 11px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(
            100,
            140,
            190,
            0.10
        );

    border-radius:
        16px;

    background:
        rgba(
            255,
            255,
            255,
            0.78
        );

    box-shadow:
        inset 0 1px 0
        rgba(
            255,
            255,
            255,
            0.88
        );

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;

}


/* ---------------------------------------------------------
   ICON HOST
--------------------------------------------------------- */

.rb-profile-presence-icon {

    width:
        40px;

    height:
        40px;

    min-width:
        40px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        13px;

    background:
        linear-gradient(
            145deg,
            rgba(
                32,
                102,
                200,
                0.13
            ),
            rgba(
                32,
                102,
                200,
                0.05
            )
        );

    color:
        #2066C8;

    line-height:
        0;

}


/* ---------------------------------------------------------
   SVG ICON
--------------------------------------------------------- */

.rb-profile-presence-icon svg {

    width:
        21px;

    height:
        21px;

    display:
        block;

    flex:
        0 0 21px;

}


/* ---------------------------------------------------------
   TEXT AREA
--------------------------------------------------------- */

.rb-profile-presence-copy {

    min-width:
        0;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    justify-content:
        center;

    gap:
        3px;

}


/* ---------------------------------------------------------
   SMALL LABEL
--------------------------------------------------------- */

.rb-profile-presence-label {

    color:
        #7D8796;

    font-size:
        10px;

    font-weight:
        800;

    line-height:
        1.2;

    letter-spacing:
        .03em;

    text-transform:
        uppercase;

}


/* ---------------------------------------------------------
   ACTUAL VALUE
--------------------------------------------------------- */

.rb-profile-presence-value {

    max-width:
        100%;

    overflow:
        hidden;

    color:
        #202A36;

    font-size:
        14px;

    font-weight:
        850;

    line-height:
        1.35;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

}


/* =========================================================
   ONLINE PRESENCE ROW
========================================================= */

.rb-profile-presence-line.online {

    border-color:
        rgba(
            32,
            102,
            200,
            0.10
        );

}


.rb-profile-presence-line.online
.rb-profile-presence-icon {

    color:
        #2066C8;

}


/* =========================================================
   OFFLINE PRESENCE ROW
========================================================= */

.rb-profile-presence-line.offline {

    background:
        rgba(
            249,
            250,
            252,
            0.92
        );

    border-color:
        rgba(
            112,
            120,
            135,
            0.10
        );

}


.rb-profile-presence-line.offline
.rb-profile-presence-icon {

    color:
        #7B8491;

    background:
        linear-gradient(
            145deg,
            rgba(
                123,
                132,
                145,
                0.13
            ),
            rgba(
                123,
                132,
                145,
                0.05
            )
        );

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .rb-user-profile-presence-details {

        margin:
            10px auto 18px;

        padding:
            7px;

        border-radius:
            18px;

    }


    .rb-profile-presence-line {

        min-height:
            54px;

        padding:
            8px 10px;

        gap:
            10px;

        border-radius:
            15px;

    }


    .rb-profile-presence-icon {

        width:
            38px;

        height:
            38px;

        min-width:
            38px;

        border-radius:
            12px;

    }


    .rb-profile-presence-icon svg {

        width:
            20px;

        height:
            20px;

    }


    .rb-profile-presence-value {

        font-size:
            13px;

    }

}


/* =========================================================
   BIO
========================================================= */

.rb-user-profile-bio {
    max-width: 430px;

    margin:
        18px auto 22px;

    padding:
        15px 16px;

    border-radius: 18px;

    background:
        rgba(77, 137, 220, 0.06);

    color: #575865;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   ACTIONS
========================================================= */

.rb-user-profile-actions {
    display: grid;

    grid-template-columns: 1fr;

    gap: 10px;
}


.rb-profile-action {
    width: 100%;
    min-height: 50px;

    border:
        1px solid
        rgba(45, 58, 70, 0.10);

    border-radius: 16px;

    background: #fff;

    color: #24242d;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.rb-profile-action:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 22px
        rgba(0,0,0,0.08);
}


/* ---------------------------------------------------------
   PRIMARY
--------------------------------------------------------- */

.rb-profile-action.primary {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #4D8AE0,
            #427ED2
        );

    color: #fff;
}


/* ---------------------------------------------------------
   DANGER
--------------------------------------------------------- */

.rb-profile-action.danger {
    color: #c23b4e;

    background: #fff7f8;

    border-color:
        rgba(194,59,78,0.12);
}


/* =========================================================
   STAFF DIALOG IDENTITY
========================================================= */

.rb-user-profile-dialog:has(
    .staff-profile-banner
) {
    border:
        1px solid
        rgba(77, 137, 220, 0.28);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .rb-user-profile-popup {
        padding: 10px;

        align-items: flex-end;
    }


    .rb-user-profile-dialog {
        width: 100%;

        max-height: 92vh;

        border-radius:
            28px 28px
            20px 20px;
    }


    /* -----------------------------------------------------
       STAFF MOBILE BANNER
    ----------------------------------------------------- */

    .rb-user-profile-banner.staff-profile-banner {
        height: 280px;

        border-radius:
            28px 28px 0 0;
    }


    /* -----------------------------------------------------
       STAFF MOBILE AVATAR
    ----------------------------------------------------- */

    .rb-user-profile-banner.staff-profile-banner
    ~ .rb-user-profile-avatar-wrap {
        width: 108px;
        height: 108px;

        top: 145px;
    }


    /* -----------------------------------------------------
       NORMAL MOBILE AVATAR
    ----------------------------------------------------- */

    .rb-user-profile-banner.normal-profile-banner
    ~ .rb-user-profile-avatar-wrap {
        width: 108px;
        height: 108px;

        margin:
            24px auto 0;
    }


    /* -----------------------------------------------------
       MAIN
    ----------------------------------------------------- */

    .rb-user-profile-main {
        padding:
            12px
            18px
            24px;
    }


    .rb-user-profile-banner.staff-profile-banner
    ~ .rb-user-profile-avatar-wrap
    ~ .rb-user-profile-main {
        padding-top: 8px;
    }


    /* -----------------------------------------------------
       NAME
    ----------------------------------------------------- */

    .rb-user-profile-name {
        font-size: 24px;
    }


    /* -----------------------------------------------------
       ACTIONS
    ----------------------------------------------------- */

    .rb-profile-action {
        min-height: 48px;
    }
}
/* =========================================================
   RANDOMBONDS — PROFILE EDITOR PART 1
========================================================= */

.rb-my-profile-page {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 18px 80px;
    box-sizing: border-box;
}


/* =========================================================
   HERO
========================================================= */

.rb-profile-editor-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            rgba(58, 133, 237, 0.12),
            rgba(34, 211, 238, 0.10)
        );
    border: 1px solid rgba(90, 127, 180, 0.15);
    box-shadow:
        0 20px 55px rgba(20, 32, 50, 0.1);
}


/* =========================================================
   BANNER
========================================================= */

.rb-profile-editor-banner {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #E8F2FF,
            #DDF2FF
        );

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Normal registered/verified users do not use banners */
.rb-profile-editor-banner[style*="display: none"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}


.rb-profile-editor-banner.has-image {
    background-color: #ddd;
}


.rb-profile-editor-banner::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 14, 20, 0.05),
            rgba(10, 14, 20, 0.4)
        );

    pointer-events: none;
}


.rb-banner-overlay {
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    bottom: auto;

    z-index: 20;

    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;

    color: #fff;

    pointer-events: none;
}


.rb-banner-overlay span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.35);
      
      pointer-events: none;
}
      



.rb-profile-media-button {
    position: relative;
    z-index: 21;

    pointer-events: auto;

    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(20, 20, 30, 0.50);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #fff;

    padding: 10px 14px;

    min-height: 48px;

    border-radius: 14px;

    font-weight: 700;
    font-size: 13px;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.rb-profile-media-button:hover {
    transform: translateY(-1px);
    background: rgba(20, 20, 30, 0.68);
}


/* =========================================================
   AVATAR
========================================================= */

.rb-profile-editor-avatar-area {
    position: relative;
    z-index: 5;

    display: flex;
    justify-content: center;

    margin-top: -78px;
}

/* Banner-less profile */
.rb-profile-editor-banner[style*="display: none"]
~ .rb-profile-editor-avatar-area {
    margin-top: 28px;
} 

.rb-profile-editor-avatar {
    position: relative;

    width: 150px;
    height: 150px;

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

    overflow: hidden;

    background: #F3F8FF;

    box-shadow:
        0 14px 40px rgba(20, 32, 50, 0.2);

    font-size: 42px;
    font-weight: 800;

    transition:
        border-radius 180ms ease,
        border-color 180ms ease;
}


.rb-profile-editor-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* MALE */

.rb-profile-editor-avatar.rb-editor-male {
    border-radius: 50%;
    border: 6px solid #111;
}


/* FEMALE */

.rb-profile-editor-avatar.rb-editor-female {
    border-radius: 20px;
    border: 6px solid #EC4899;
}


/* OTHER */

.rb-profile-editor-avatar.rb-editor-other {
    border-radius: 24px;
    border: 6px solid #7C9BC7;
}


/* CAMERA BUTTON */

.rb-profile-avatar-camera {
    position: absolute;

    right: 4px;
    bottom: 4px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 3px solid #fff;

    background:
        linear-gradient(
            135deg,
            #3A85ED,
            #468CEF
        );

    color: #fff;

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

    font-size: 17px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(50, 96, 160, 0.28);

    transition:
        transform 180ms ease;
}


.rb-profile-avatar-camera:hover {
    transform: scale(1.06);
}


/* =========================================================
   IDENTITY
========================================================= */

.rb-profile-editor-identity {
    text-align: center;

    padding:
        18px
        18px
        28px;
}


.rb-profile-editor-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;

    color: #171722;

    font-size: 28px;
    font-weight: 850;
    line-height: 1.15;
}


.rb-profile-editor-name
.rb-public-role-badge {
    width: auto !important;
    height: 38px !important;

    max-width: 95px !important;

    object-fit: contain;

    flex: 0 0 auto;
}


.rb-profile-editor-name
.rb-owner-badge,
.rb-profile-editor-name
.rb-public-owner-badge {
    width: 78px !important;
    height: auto !important;
}


.rb-profile-editor-name
.rb-moderator-badge,
.rb-profile-editor-name
.rb-verified-badge {
    width: 34px !important;
    height: 34px !important;
}

.rb-profile-editor-username {
    margin-top: 8px;

    color: #72727f;

    font-size: 15px;
    font-weight: 650;
}


.rb-profile-editor-role {
    display: inline-flex;
    align-items: center;

    margin-top: 10px;

    padding: 7px 12px;

    border-radius: 999px;

    background: rgba(58, 133, 237, 0.09);

    color: #4179C7;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* =========================================================
   EDIT CARD
========================================================= */

.rb-profile-editor-card {
    margin-top: 22px;

    padding: 28px;

    border-radius: 26px;

    background: #fff;

    border: 1px solid rgba(90, 127, 180, 0.12);

    box-shadow:
        0 18px 50px rgba(20, 32, 50, 0.08);
}


.rb-profile-editor-eyebrow {
    color: #548BD9;

    font-size: 11px;

    font-weight: 850;

    letter-spacing: 0.12em;
}


.rb-profile-editor-heading h2 {
    margin:
        7px
        0
        6px;

    font-size: 25px;
    line-height: 1.2;

    color: #171722;
}


.rb-profile-editor-heading p {
    margin: 0;

    color: #7c7c88;

    font-size: 14px;
}


/* =========================================================
   FORM
========================================================= */

.rb-profile-editor-form {
    margin-top: 26px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.rb-profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.rb-profile-field-full {
    grid-column: 1 / -1;
}


.rb-profile-field label {
    color: #3b3b47;

    font-size: 13px;

    font-weight: 800;
}


.rb-profile-field input,
.rb-profile-field select,
.rb-profile-field textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dedce8;

    background: #F9FBFD;

    color: #171722;

    border-radius: 15px;

    padding: 13px 14px;

    outline: none;

    font:
        inherit;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}


.rb-profile-field textarea {
    resize: vertical;
    min-height: 130px;
}


.rb-profile-field input:focus,
.rb-profile-field select:focus,
.rb-profile-field textarea:focus {
    border-color: #6EA1E8;

    background: #fff;

    box-shadow:
        0 0 0 4px
        rgba(58, 133, 237, 0.09);
}


.rb-profile-input-prefix {
    display: flex;
    align-items: center;

    border: 1px solid #dedce8;

    border-radius: 15px;

    background: #F9FBFD;

    overflow: hidden;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}


.rb-profile-input-prefix:focus-within {
    border-color: #6EA1E8;

    box-shadow:
        0 0 0 4px
        rgba(58, 133, 237, 0.09);
}


.rb-profile-input-prefix span {
    padding-left: 14px;

    color: #727d8b;

    font-weight: 800;
}


.rb-profile-input-prefix input {
    border: 0;

    box-shadow: none;

    background: transparent;

    border-radius: 0;
}


.rb-profile-input-prefix input:focus {
    box-shadow: none;
}


/* =========================================================
   COUNTER
========================================================= */

.rb-profile-character-count {
    align-self: flex-end;

    margin-top: -2px;

    font-size: 11px;

    color: #9995a6;
}


/* =========================================================
   FOOTER
========================================================= */

.rb-profile-editor-footer {
    grid-column: 1 / -1;

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

    gap: 16px;

    padding-top: 8px;
}


.rb-profile-editor-status {
    color: #8a8794;

    font-size: 12px;

    line-height: 1.5;
}


.rb-profile-save-button {
    min-width: 155px;

    border: 0;

    border-radius: 15px;

    padding: 13px 18px;

    background:
        linear-gradient(
            135deg,
            #3A85ED,
            #468CEF
        );

    color: #fff;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 24px
        rgba(58, 133, 237, 0.22);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.rb-profile-save-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 16px 30px
        rgba(58, 133, 237, 0.28);
}


/* =========================================================
   MEDIA NOTE
========================================================= */

.rb-profile-media-note {
    margin-top: 18px;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 18px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(58, 133, 237, 0.06),
            rgba(37, 99, 235, 0.05)
        );

    border: 1px solid rgba(58, 133, 237, 0.1);
}


.rb-profile-media-note-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

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

    border-radius: 14px;

    background: rgba(58, 133, 237, 0.1);

    font-size: 20px;
}


.rb-profile-media-note strong {
    display: block;

    margin-bottom: 4px;

    color: #272d34;

    font-size: 14px;
}


.rb-profile-media-note p {
    margin: 0;

    color: #7f7c88;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .rb-my-profile-page {
        padding:
            14px
            10px
            60px;
    }


    .rb-profile-editor-banner {
        height: 190px;
    }


    .rb-profile-editor-avatar-area {
    margin-top: -62px;
}

/* Banner-less profile on mobile */
.rb-profile-editor-banner[style*="display: none"]
~ .rb-profile-editor-avatar-area {
    margin-top: 24px;
}


    .rb-profile-editor-avatar {
        width: 125px;
        height: 125px;
    }


    .rb-profile-avatar-camera {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }


    .rb-profile-editor-name {
        font-size: 23px;
    }


    .rb-profile-editor-card {
        padding: 20px 16px;
        border-radius: 22px;
    }


    .rb-profile-editor-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }


    .rb-profile-field-full {
        grid-column: auto;
    }


    .rb-profile-editor-footer {
        flex-direction: column;
        align-items: stretch;
    }


    .rb-profile-save-button {
        width: 100%;
    }


    .rb-banner-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;

        align-items: flex-end;
        flex-direction: column;
    }
}
/* =========================================================
   RANDOMBONDS — AVATAR + PHOTO STUDIO
========================================================= */

/* ---------------------------------------------------------
   PROFILE AVATAR
--------------------------------------------------------- */

#rbProfileAvatarPreview {
    position: relative !important;

    width: 124px !important;
    height: 124px !important;

    overflow: visible !important;

    z-index: 10 !important;

    display: block !important;
}

/* Actual profile image */
#rbProfileAvatarPreview img,
#rbProfileAvatarPreview .rb-profile-avatar-image,
#rbProfileAvatarPreview > img {
    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: cover !important;

    border-radius: inherit !important;

    overflow: hidden !important;
}

/* Male — black circular */
#rbProfileAvatarPreview.rb-profile-male {
    border-radius: 50% !important;
    border: 6px solid #111111 !important;
}

/* Female — pink square */
#rbProfileAvatarPreview.rb-profile-female {
    border-radius: 18px !important;
    border: 6px solid #EC4899 !important;
}

/* Other */
#rbProfileAvatarPreview.rb-profile-other {
    border-radius: 22px !important;
    border: 6px solid #7C9BC7 !important;
}

/* ---------------------------------------------------------
   CAMERA BUTTON
--------------------------------------------------------- */

#rbChooseProfilePhoto {
    position: absolute !important;

    left: calc(100% + 10px) !important;
    top: 50% !important;

    right: auto !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;

    width: 50px !important;
    height: 50px !important;

    min-width: 50px !important;
    min-height: 50px !important;

    padding: 0 !important;

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

    border-radius: 50% !important;

    border: 4px solid #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #3A85ED,
            #468CEF
        ) !important;

    color: #ffffff !important;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.22) !important;

    z-index: 100 !important;
}

/* =========================================================
   RANDOMBONDS — NEXT LEVEL PHOTO STUDIO
   Crop • Filters • Adjust • Fun
========================================================= */

#rbPhotoStudioModal {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: none;

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

    padding: 12px;

    box-sizing: border-box;
}

#rbPhotoStudioModal.open {
    display: flex;
}

.rb-photo-studio-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(9, 14, 20, 0.82);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* =========================================================
   MAIN STUDIO
========================================================= */

.rb-photo-studio-dialog {
    position: relative;
    z-index: 2;

    width: min(560px, 100%);

    max-height: 94vh;

    overflow-y: auto;
    overflow-x: hidden;

    box-sizing: border-box;

    padding: 18px;

    border-radius: 28px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #F9FCFF 100%
        );

    border: 1px solid
        rgba(58, 133, 237, 0.14);

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.38);

    overscroll-behavior: contain;
}

/* =========================================================
   HEADER
========================================================= */

.rb-photo-studio-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 14px;
}

.rb-photo-studio-title {
    font-size: 21px;

    font-weight: 900;

    color: #171722;

    line-height: 1.2;
}

.rb-photo-studio-subtitle {
    margin-top: 5px;

    color: #7c7888;

    font-size: 12px;

    line-height: 1.45;
}

.rb-photo-studio-close {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

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

    border: 0;

    border-radius: 50%;

    background: #EFF2F7;

    color: #373d45;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 160ms ease,
        background 160ms ease;
}

.rb-photo-studio-close:hover {
    transform: scale(1.05);

    background: #E7ECF4;
}

/* =========================================================
   PREVIEW
========================================================= */

.rb-photo-studio-preview-area {
    display: flex;

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

    padding: 12px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #EAF3FF,
            #fff0f8
        );

    border: 1px solid
        rgba(58, 133, 237, 0.1);
}

.rb-photo-studio-crop-frame {
    position: relative;

    width: min(310px, 72vw);
    height: min(310px, 72vw);

    overflow: hidden;

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

    background: #16161d;

    border: 4px solid #ffffff;

    box-shadow:
        0 18px 55px
        rgba(0, 0, 0, 0.24);

    touch-action: none;

    cursor: grab;

    isolation: isolate;
}

.rb-photo-studio-crop-frame:active {
    cursor: grabbing;
}

/* Male */
.rb-photo-studio-crop-frame.rb-photo-frame-male {
    border-radius: 50%;
}

/* Female — square frame with the requested pink border. */
.rb-photo-studio-crop-frame.rb-photo-frame-female {
    border-radius: 22px;
    border-color: #EC4899;
}

/* Other */
.rb-photo-studio-crop-frame.rb-photo-frame-other {
    border-radius: 24px;
}

/* =========================================================
   IMAGE
========================================================= */

.rb-photo-studio-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;

    transform-origin: center;

    user-select: none;
    -webkit-user-drag: none;

    pointer-events: none;

    z-index: 1;
}

/* =========================================================
   OVERLAYS
========================================================= */

.rb-photo-studio-overlay-layer {
    position: absolute;

    inset: 0;

    z-index: 5;

    pointer-events: none;
}

.rb-photo-studio-overlay {
    position: absolute;

    border: 0;

    padding: 0;

    margin: 0;

    background: transparent;

    color: #ffffff;

    line-height: 1;

    cursor: grab;

    user-select: none;

    pointer-events: auto;

    text-shadow:
        0 3px 10px
        rgba(0,0,0,0.55);

    touch-action: none;
}

.rb-photo-studio-overlay:active {
    cursor: grabbing;
}

.rb-photo-studio-text-overlay {
    white-space: nowrap;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-weight: 900;
}

/* =========================================================
   VIGNETTE
========================================================= */

.rb-photo-studio-vignette {
    position: absolute;

    inset: 0;

    z-index: 6;

    pointer-events: none;

    opacity: 0;

    background:
        radial-gradient(
            circle,
            transparent 35%,
            rgba(0,0,0,0.80) 100%
        );
}

/* =========================================================
   GRID
========================================================= */

.rb-photo-studio-grid {
    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 7;

    background:
        linear-gradient(
            to right,
            transparent 32.8%,
            rgba(255,255,255,0.42) 33%,
            transparent 33.2%,
            transparent 66.1%,
            rgba(255,255,255,0.42) 66.3%,
            transparent 66.5%
        ),
        linear-gradient(
            to bottom,
            transparent 32.8%,
            rgba(255,255,255,0.42) 33%,
            transparent 33.2%,
            transparent 66.1%,
            rgba(255,255,255,0.42) 66.3%,
            transparent 66.5%
        );

    opacity: 0.78;
}

/* =========================================================
   TABS
========================================================= */

.rb-photo-studio-tabs {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 6px;

    margin-top: 14px;

    padding: 5px;

    border-radius: 16px;

    background: #EDF2F8;

    border: 1px solid
        rgba(58, 133, 237, 0.08);
}

.rb-photo-studio-tab {
    min-height: 42px;

    padding: 8px 7px;

    border: 0;

    border-radius: 12px;

    background: transparent;

    color: #777281;

    font-size: 12px;

    font-weight: 850;

    cursor: pointer;

    transition:
        color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.rb-photo-studio-tab.active {
    background: #ffffff;

    color: #4485DF;

    box-shadow:
        0 4px 12px
        rgba(30, 51, 80, 0.09);
}

/* =========================================================
   PANELS
========================================================= */

.rb-photo-studio-panel {
    display: none;

    margin-top: 14px;
}

.rb-photo-studio-panel.active {
    display: block;
}

/* =========================================================
   CROP CONTROLS
========================================================= */

.rb-photo-studio-tool-row {
    display: flex;

    align-items: center;

    gap: 9px;
}

.rb-photo-studio-tool {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

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

    border: 1px solid #D8E0EB;

    border-radius: 14px;

    background: #ffffff;

    color: #395B8B;

    font-size: 26px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 5px 14px
        rgba(45, 68, 100, 0.07);
}

.rb-photo-studio-tool:active {
    transform: translateY(1px);
}

.rb-photo-studio-slider {
    flex: 1;

    min-width: 0;

    accent-color: #3A85ED;

    cursor: pointer;
}

.rb-photo-studio-action-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 10px;
}

.rb-photo-studio-action {
    min-height: 44px;

    padding: 9px 12px;

    border: 1px solid #DDE3EC;

    border-radius: 13px;

    background: #ffffff;

    color: #464d56;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}

.rb-photo-studio-tip {
    margin-top: 10px;

    padding:
        10px 12px;

    border-radius: 13px;

    background:
        rgba(58, 133, 237, 0.06);

    color: #777180;

    font-size: 11px;

    line-height: 1.5;

    text-align: center;
}

/* =========================================================
   FILTERS
========================================================= */

.rb-photo-filter-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;
}

.rb-photo-filter {
    min-height: 56px;

    border: 1px solid #DDE3EC;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #F9FBFD
        );

    color: #4d545d;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.rb-photo-filter:hover {
    transform: translateY(-1px);
}

.rb-photo-filter.active {
    border-color:
        rgba(58, 133, 237, 0.5);

    color: #4485DF;

    box-shadow:
        0 0 0 3px
        rgba(58, 133, 237, 0.08);
}

/* =========================================================
   ADJUST
========================================================= */

.rb-photo-adjust-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.rb-photo-adjust-row {
    display: grid;

    grid-template-columns:
        92px minmax(0, 1fr);

    align-items: center;

    gap: 12px;
}

.rb-photo-adjust-row span {
    color: #4a515a;

    font-size: 12px;

    font-weight: 800;
}

.rb-photo-adjust-row input[type="range"] {
    width: 100%;

    accent-color: #3A85ED;

    cursor: pointer;
}

/* =========================================================
   FUN
========================================================= */

.rb-photo-fun-section {
    margin-bottom: 14px;
}

.rb-photo-fun-title {
    margin-bottom: 8px;

    color: #464d55;

    font-size: 12px;

    font-weight: 900;
}

.rb-photo-option-row {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.rb-photo-fun-option {
    width: 48px;
    height: 48px;

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

    border: 1px solid #DEE4EC;

    border-radius: 14px;

    background: #ffffff;

    font-size: 23px;

    cursor: pointer;

    box-shadow:
        0 4px 12px
        rgba(40, 57, 80, 0.06);
}

.rb-photo-fun-option:active {
    transform: scale(0.96);
}

.rb-photo-text-row {
    display: flex;

    gap: 8px;
}

.rb-photo-text-row input {
    flex: 1;

    min-width: 0;

    min-height: 44px;

    padding:
        0 13px;

    border: 1px solid #ddd9e7;

    border-radius: 13px;

    background: #ffffff;

    color: #20202a;

    outline: none;

    font:
        inherit;
}

.rb-photo-text-row input:focus {
    border-color: #6EA1E8;

    box-shadow:
        0 0 0 3px
        rgba(58, 133, 237, 0.08);
}

.rb-photo-add-text {
    min-width: 70px;

    border: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #3A85ED,
            #468CEF
        );

    color: #ffffff;

    font-size: 12px;

    font-weight: 850;

    cursor: pointer;
}

.rb-photo-frame-option {
    min-height: 42px;

    padding:
        8px 12px;

    border: 1px solid #e0dce9;

    border-radius: 13px;

    background: #ffffff;

    color: #535961;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;
}

.rb-photo-frame-option.active {
    border-color: #6EA1E8;

    color: #4485DF;

    background:
        rgba(58, 133, 237, 0.06);
}

.rb-photo-remove-overlays {
    width: 100%;

    min-height: 42px;

    margin-top: 4px;

    border: 1px solid #ead6dc;

    border-radius: 13px;

    background: #fff8fa;

    color: #aa5264;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}

/* =========================================================
   FRAME EFFECTS
========================================================= */

.rb-photo-studio-crop-frame.rb-frame-glow {
    box-shadow:
        0 0 0 5px rgba(85, 152, 247, 0.45),
        0 0 30px rgba(85, 152, 247, 0.55),
        0 18px 55px rgba(0,0,0,0.24);
}

.rb-photo-studio-crop-frame.rb-frame-neon {
    box-shadow:
        0 0 0 5px rgba(37,99,235,0.55),
        0 0 30px rgba(58, 133, 237, 0.65),
        0 18px 55px rgba(0,0,0,0.24);
}

.rb-photo-studio-crop-frame.rb-frame-royal {
    box-shadow:
        0 0 0 5px rgba(245,196,81,0.7),
        0 0 22px rgba(245,196,81,0.45),
        0 18px 55px rgba(0,0,0,0.24);
}

.rb-photo-studio-crop-frame.rb-frame-rainbow {
    box-shadow:
        0 0 0 5px rgba(58, 133, 237, 0.45),
        0 0 28px rgba(37,99,235,0.45),
        0 18px 55px rgba(0,0,0,0.24);
}

/* =========================================================
   FOOTER
========================================================= */

.rb-photo-studio-footer {
    display: flex;

    gap: 10px;

    margin-top: 16px;

    padding-top: 4px;
}

.rb-photo-studio-cancel,
.rb-photo-studio-apply {
    flex: 1;

    min-height: 48px;

    border: 0;

    border-radius: 14px;

    font-size: 13px;

    font-weight: 850;

    cursor: pointer;
}

.rb-photo-studio-cancel {
    background: #EAEFF5;

    color: #4d545c;
}

.rb-photo-studio-apply {
    background:
        linear-gradient(
            135deg,
            #3A85ED,
            #468CEF
        );

    color: #ffffff;

    box-shadow:
        0 10px 24px
        rgba(58, 133, 237, 0.22);
}

.rb-photo-studio-apply:disabled {
    opacity: 0.65;

    cursor: wait;
}

/* =========================================================
   BODY LOCK
========================================================= */

body.rb-photo-studio-open {
    overflow: hidden;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    #rbPhotoStudioModal {
        padding: 8px;
    }

    .rb-photo-studio-dialog {
        width: 100%;

        max-height: 96vh;

        padding: 14px;

        border-radius: 22px;
    }

    .rb-photo-studio-title {
        font-size: 19px;
    }

    .rb-photo-studio-subtitle {
        font-size: 11px;
    }

    .rb-photo-studio-crop-frame {
        width: min(285px, 78vw);
        height: min(285px, 78vw);
    }

    .rb-photo-studio-tabs {
        gap: 4px;
        padding: 4px;
    }

    .rb-photo-studio-tab {
        min-height: 40px;

        font-size: 11px;
    }

    .rb-photo-studio-tool {
        width: 44px;
        height: 44px;

        flex-basis: 44px;
    }

    .rb-photo-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .rb-photo-adjust-row {
        grid-template-columns:
            78px minmax(0, 1fr);
    }

    .rb-photo-studio-footer {
        flex-direction: column;
    }

    .rb-photo-studio-cancel,
    .rb-photo-studio-apply {
        width: 100%;
    }

    .rb-photo-fun-option {
        width: 44px;
        height: 44px;
    }
}
/* =========================================================
   RANDOMBONDS — OWNER INVISIBLE MODE SWITCH
========================================================= */

.rb-owner-setting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rb-owner-invisible-toggle {
    position: relative;

    width: 58px;
    height: 32px;

    flex: 0 0 58px;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: #d9d9e5;

    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.10);

    cursor: pointer;

    transition:
        background 180ms ease,
        box-shadow 180ms ease;
}

.rb-owner-invisible-toggle-knob {
    position: absolute;

    top: 4px;
    left: 4px;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.18);

    transition:
        transform 180ms ease;
}

.rb-owner-invisible-toggle.active {
    background:
        linear-gradient(
            135deg,
            var(--rb-primary),
            var(--rb-secondary)
        );

    box-shadow:
        0 5px 15px
        rgba(75, 145, 244, 0.25);
}

.rb-owner-invisible-toggle.active
.rb-owner-invisible-toggle-knob {
    transform:
        translateX(26px);
}

.rb-owner-invisible-toggle:focus-visible {
    outline:
        3px solid
        rgba(75, 145, 244, 0.28);

    outline-offset: 3px;
}

.rb-owner-invisible-status {
    margin-top: 16px;

    color: var(--rb-text-soft);

    font-size: 13px;
    font-weight: 700;
}
/* =========================================================
   RANDOMBONDS — PREMIUM NAME APPEARANCE
========================================================= */

.rb-name-style-card {
    position: relative;

    display: grid;
    gap: 14px;

    padding: 18px;

    border: 1px solid rgba(75, 145, 244, 0.16);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(75, 145, 244, 0.07),
            rgba(63, 127, 216, 0.055),
            rgba(255, 255, 255, 0.96)
        );

    box-shadow:
        0 12px 30px rgba(38, 68, 110, 0.08),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.rb-name-style-card::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at top right,
            rgba(63, 127, 216, 0.12),
            transparent 38%
        );

    pointer-events: none;
}

.rb-name-style-row {
    position: relative;
    z-index: 1;

    display: grid;
    gap: 8px;
}

.rb-name-style-row label {
    margin: 0;

    font-size: 12px;
    font-weight: 850;

    letter-spacing: .04em;

    color: #454c54;
}

.rb-name-style-row select,
.rb-name-style-row input[type="color"] {
    width: 100%;
    min-height: 52px;

    border: 1px solid rgba(75, 145, 244, 0.14);
    border-radius: 16px;

    background: rgba(255,255,255,.86);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 5px 16px rgba(20, 41, 70, 0.04);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.rb-name-style-row select {
    padding: 0 14px;

    color: #20202b;

    font-size: 15px;
    font-weight: 700;
}

.rb-name-style-row input[type="color"] {
    height: 52px;
    padding: 6px;

    cursor: pointer;
    appearance: none;
}

.rb-name-style-row select:focus,
.rb-name-style-row input[type="color"]:focus {
    outline: none;

    border-color: rgba(75, 145, 244, 0.48);

    box-shadow:
        0 0 0 4px rgba(75, 145, 244, 0.1),
        0 8px 22px rgba(46, 89, 150, 0.1);
}

.rb-name-style-row select:hover,
.rb-name-style-row input[type="color"]:hover {
    transform: translateY(-1px);
}

.rb-name-style-preview {
    position: relative;
    z-index: 1;

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

    gap: 16px;

    margin-top: 2px;
    padding: 17px 18px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(75, 145, 244, 0.11),
            rgba(63, 127, 216, 0.1)
        );

    border: 1px solid rgba(75, 145, 244, 0.14);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8);
}

.rb-name-style-preview > span {
    font-size: 11px;
    font-weight: 900;

    letter-spacing: .12em;
    text-transform: uppercase;

    color: #77717f;
}

.rb-name-style-preview > strong {
    min-width: 0;

    font-size: 20px;
    font-weight: 900;

    text-align: right;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 700px) {

    .rb-name-style-card {
        padding: 15px;

        border-radius: 20px;
    }

    .rb-name-style-preview {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .rb-name-style-preview > strong {
        max-width: 100%;

        text-align: left;
    }
}
/* =========================================================
   RANDOMBONDS — NAME FONT STYLES
========================================================= */

.name-font-default {
    font-family: inherit !important;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
}

.name-font-modern {
    font-family: Arial, Helvetica, sans-serif !important;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .2px;
}

.name-font-elegant {
    font-family: Georgia, "Times New Roman", serif !important;
    font-style: italic;
    font-weight: 600;
    letter-spacing: .3px;
}

.name-font-bold {
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif !important;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .5px;
}

.name-font-gaming {
    font-family: "Courier New", Courier, monospace !important;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.name-font-premium {
    font-family: Georgia, "Times New Roman", serif !important;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .8px;
}


/* =========================================================
   RANDOMBONDS — NAME EFFECTS
========================================================= */

.name-effect-none {
    text-shadow: none !important;
    filter: none;
}

.name-effect-glow {
    text-shadow:
        0 0 5px currentColor,
        0 0 12px currentColor;
}

.name-effect-shine {
    background:
        linear-gradient(
            90deg,
            currentColor 0%,
            #ffffff 45%,
            currentColor 65%,
            currentColor 100%
        );

    background-size: 220% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        rbNameShine 2.2s linear infinite;
}

.name-effect-neon {
    text-shadow:
        0 0 4px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 32px currentColor;
}

@keyframes rbNameShine {

    0% {
        background-position: 220% 0;
    }

    100% {
        background-position: -40% 0;
    }
}
/* =========================================================
   RANDOMBONDS — COMPACT MEMBERS CARDS
========================================================= */

.rb-members-presence-card {
    position: relative !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 98px !important;

    padding: 12px 18px !important;
    gap: 16px !important;

    box-sizing: border-box !important;

    background: #ffffff !important;

    border: 1px solid rgba(75, 145, 244, 0.12) !important;
    border-radius: 20px !important;

    box-shadow:
        0 6px 20px rgba(35, 58, 90, 0.06) !important;

    overflow: visible !important;
}

/* No banner on Members page */
.rb-members-presence-card .rb-members-card-banner {
    display: none !important;
}

/* ---------------------------------------------------------
   PROFILE PHOTO
--------------------------------------------------------- */

.rb-members-presence-card .rb-members-avatar {
    position: relative !important;

    flex: 0 0 64px !important;

    width: 64px !important;
    height: 64px !important;

    min-width: 64px !important;
    min-height: 64px !important;

    margin: 0 !important;
    padding: 0 !important;

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

    background: #ffffff !important;

    box-sizing: border-box !important;

    overflow: visible !important;

    z-index: 5 !important;
}

/* Male = black round */
.rb-members-presence-card.rb-member-gender-male
.rb-members-avatar {
    border: 4px solid #111111 !important;
    border-radius: 50% !important;
}

/* Female = pink square */
.rb-members-presence-card.rb-member-gender-female
.rb-members-avatar {
    border: 4px solid #EC4899 !important;
    border-radius: 13px !important;
}

/* Other */
.rb-members-presence-card.rb-member-gender-other
.rb-members-avatar {
    border: 4px solid #d2d2dc !important;
    border-radius: 50% !important;
}

/* Actual photo */
.rb-members-presence-card .rb-members-avatar img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: inherit !important;

    overflow: hidden !important;
}
/* ---------------------------------------------------------
   ONLINE / OFFLINE DOT
--------------------------------------------------------- */

.rb-members-presence-card .rb-members-presence-dot {
    position: absolute !important;

    right: -7px !important;
    bottom: 1px !important;

    width: 16px !important;
    height: 16px !important;

    box-sizing: border-box !important;

    border: 3px solid #ffffff !important;
    border-radius: 50% !important;

    z-index: 20 !important;
}

.rb-members-presence-card .rb-members-presence-dot.online {
    background: #1861C7 !important;
}

.rb-members-presence-card .rb-members-presence-dot.offline {
    background: #ff3347 !important;
}

/* ---------------------------------------------------------
   INFORMATION
--------------------------------------------------------- */

.rb-members-presence-card .member-info {
    flex: 1 1 auto !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: flex-start !important;
    justify-content: center !important;

    background: transparent !important;
    box-shadow: none !important;

    text-align: left !important;
}

/* Name + badge */
.rb-members-presence-card .member-name {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 7px !important;

    width: 100% !important;

    flex-wrap: wrap !important;
}

/* Name */
.rb-members-presence-card .rb-member-display-name {
    font-size: 18px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}

/* Staff badge */
.rb-members-presence-card .member-name img {
    width: 86px !important;
    height: 32px !important;

    min-width: 86px !important;
    min-height: 32px !important;

    object-fit: contain !important;
}

/* Username */
.rb-members-presence-card .rb-member-username {
    display: block !important;

    margin-top: 3px !important;

    font-size: 14px !important;
    line-height: 1.15 !important;

    color: #73778a !important;
}

/* Role + status */
.rb-members-presence-card .rb-member-role-line {
    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    margin-top: 4px !important;
}

/* Role chip */
.rb-members-presence-card .rb-member-role {
    display: inline-flex !important;

    align-items: center !important;

    min-height: 25px !important;

    padding: 3px 10px !important;

    border-radius: 999px !important;

    background: #E9F2FF !important;

    color: #478AE8 !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}

/* Online / offline */
.rb-members-presence-card .rb-member-online-label {
    font-size: 13px !important;
    font-weight: 800 !important;
}

.rb-members-presence-card .rb-member-online-label.online {
    color: #185BB9 !important;
}

.rb-members-presence-card .rb-member-online-label.offline {
    color: #f02f45 !important;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

    .rb-members-presence-card {
        min-height: 92px !important;

        padding: 10px 14px !important;

        gap: 14px !important;

        border-radius: 18px !important;
    }

    .rb-members-presence-card .rb-members-avatar {
        flex: 0 0 58px !important;

        width: 58px !important;
        height: 58px !important;

        min-width: 58px !important;
        min-height: 58px !important;
    }

    .rb-members-presence-card .rb-members-presence-dot {
        width: 15px !important;
        height: 15px !important;

        right: -6px !important;
        bottom: 0 !important;

        border-width: 3px !important;
    }

    .rb-members-presence-card .rb-member-display-name {
        font-size: 17px !important;
    }

    .rb-members-presence-card .member-name img {
        width: 76px !important;
        height: 29px !important;
    }

    .rb-members-presence-card .rb-member-username {
        font-size: 13px !important;
    }

    .rb-members-presence-card .rb-member-role {
        font-size: 11px !important;
        min-height: 23px !important;
        padding: 3px 9px !important;
    }

    .rb-members-presence-card .rb-member-online-label {
        font-size: 12px !important;
    }
}
/* =========================================================
   RANDOMBONDS — GIF PICKER
   FINAL CENTERED CARD
========================================================= */

#rbPublicGifPicker {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;

    width: 350px !important;
    max-width: 90vw !important;

    height: 500px !important;
    max-height: 78vh !important;

    transform: translate(-50%, -50%) !important;

    box-sizing: border-box !important;

    padding: 18px !important;

    background: rgba(255, 255, 255, 0.98) !important;

    border: 1px solid rgba(255,255,255,.7) !important;

    border-radius: 30px !important;

    overflow: hidden !important;

    z-index: 999999 !important;

    display: flex !important;
    flex-direction: column !important;

    box-shadow:
        0 0 0 100vmax rgba(8, 10, 18, .68),
        0 28px 75px rgba(0,0,0,.40),
        0 8px 24px rgba(58, 133, 237, 0.18) !important;

    animation: rbGifOpen .22s ease-out !important;
}

#rbPublicGifPicker.hidden {
    display: none !important;
}

@keyframes rbGifOpen {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.94);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* =========================================================
   TITLE
========================================================= */

#rbPublicGifPicker h3 {
    margin: 0 !important;

    padding: 2px 40px 12px 2px !important;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;

    font-size: 20px !important;
    font-weight: 800 !important;

    color: #1B2635 !important;

    line-height: 1.2 !important;

    flex-shrink: 0 !important;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

#rbPublicGifPicker > button:first-of-type {
    position: absolute !important;

    top: 13px !important;
    right: 13px !important;

    width: 34px !important;
    height: 34px !important;

    padding: 0 !important;

    border: 0 !important;

    border-radius: 50% !important;

    background: #EDF2FA !important;

    color: #2872D9 !important;

    font-size: 20px !important;
    font-weight: 700 !important;

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

    cursor: pointer !important;
}


/* =========================================================
   PREMIUM SEARCH BOX
========================================================= */

#rbPublicGifPicker input {
    width: 100% !important;

    height: 46px !important;

    box-sizing: border-box !important;

    padding: 0 15px 0 42px !important;

    margin: 0 0 12px 0 !important;

    border-radius: 16px !important;

    border: 1px solid #DEE8F7 !important;

    outline: none !important;

    background:
        linear-gradient(
            180deg,
            #F8FBFF,
            #F1F5FB
        ) !important;

    color: #1B2635 !important;

    font-size: 14px !important;
    font-weight: 500 !important;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.03) !important;

    flex-shrink: 0 !important;
}

#rbPublicGifPicker input::placeholder {
    color: #929ca8 !important;
}

#rbPublicGifPicker input:focus {
    border-color: #5C9CF6 !important;

    box-shadow:
        0 0 0 4px rgba(92, 156, 246, 0.1) !important;
}



/* Search icon — RandomBonds blue */
#rbPublicGifPicker input {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'%3E%3C/line%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: 15px center !important;
}



/* =========================================================
   SEARCH BUTTON
========================================================= */

#rbPublicGifPicker input + button {
    height: 40px !important;

    margin: -4px 0 10px 0 !important;

    padding: 0 16px !important;

    border: 0 !important;

    border-radius: 13px !important;

    background:
        linear-gradient(
            135deg,
            #3A85ED,
            #266ED3
        ) !important;

    color: #fff !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    box-shadow:
        0 5px 14px rgba(58, 133, 237, 0.2) !important;

    align-self: flex-end !important;
}


/* =========================================================
   TRENDING TEXT
========================================================= */

#rbPublicGifPicker input + button + * {
    flex-shrink: 0;
}


/* =========================================================
   GIF IMAGES
========================================================= */

#rbPublicGifPicker img {
    width: 100% !important;

    height: 76px !important;

    object-fit: cover !important;

    display: block !important;

    border-radius: 13px !important;
}


/* =========================================================
   BUTTONS CONTAINING GIFS
========================================================= */

#rbPublicGifPicker button:has(img) {
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    border-radius: 13px !important;

    overflow: hidden !important;

    cursor: pointer !important;
}

#rbPublicGifPicker button:has(img):active {
    transform: scale(.97) !important;
}


/* =========================================================
   RANDOMBONDS — GIF GRID FILL
========================================================= */

#rbPublicGifPicker button:has(img) {
    width: calc(33.333% - 6px) !important;
    height: 88px !important;

    display: inline-flex !important;
    vertical-align: top !important;

    margin: 3px !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 14px !important;

    overflow: hidden !important;

    background: #F0F3F8 !important;

    cursor: pointer !important;
}

#rbPublicGifPicker button:has(img) img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    display: block !important;

    border-radius: 14px !important;
}


/* Make the GIF area use the available width */
#rbPublicGifPicker {
    text-align: left !important;
}


/* Slightly larger GIFs on bigger screens */
@media (min-width: 431px) {
    #rbPublicGifPicker button:has(img) {
        height: 92px !important;
    }
}


/* Phone */
@media (max-width: 430px) {
    #rbPublicGifPicker button:has(img) {
        width: calc(33.333% - 6px) !important;
        height: 82px !important;
        margin: 3px !important;
    }
}


/* =========================================================
   SMALL SCREEN
========================================================= */

@media (max-width: 430px) {

    #rbPublicGifPicker {
        width: 350px !important;
        max-width: 90vw !important;

        height: 500px !important;
        max-height: 76vh !important;

        padding: 16px !important;

        border-radius: 28px !important;
    }

    #rbPublicGifPicker img {
        height: 72px !important;
    }
}
/* =========================================================
   RANDOMBONDS — GIF PICKER SCROLL FIX
========================================================= */

#rbPublicGifPicker {
    overflow-y: auto !important;
    overflow-x: hidden !important;

    -webkit-overflow-scrolling: touch !important;

    scrollbar-width: thin !important;
}

/* Keep GIF images inside the picker width */
#rbPublicGifPicker img {
    max-width: 100% !important;
}

/* Keep the GIF buttons from overflowing horizontally */
#rbPublicGifPicker button:has(img) {
    max-width: 100% !important;
}
/* =========================================================
   RANDOMBONDS — GIF PICKER CLICK PROTECTION
========================================================= */

#rbPublicGifPicker img {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}
/* =========================================================
   RANDOMBONDS — COMPACT PUBLIC CHAT GIF
========================================================= */

.rb-public-chat-gif {
    display: block;

    width: 165px !important;
    max-width: 58vw !important;

    max-height: 175px !important;
    height: auto !important;

    object-fit: contain !important;

    border-radius: 13px;

    margin-top: 5px;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.10);
}

@media (max-width: 430px) {

    .rb-public-chat-gif {
        width: 155px !important;
        max-width: 55vw !important;
        max-height: 165px !important;
    }
}
/* =========================================================
   RANDOMBONDS — YOUTUBE PICKER
========================================================= */

#rbPublicYouTubePicker {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 14px !important;

    box-sizing: border-box !important;

    background:
        rgba(8, 10, 18, .68) !important;

    backdrop-filter:
        blur(9px);

    z-index: 999999 !important;
}

#rbPublicYouTubePicker.hidden {
    display: none !important;
}


/* =========================================================
   MAIN CARD
========================================================= */

#rbPublicYouTubePicker
.rb-youtube-card {

    width: 350px;

    max-width: 91vw;

    max-height: 78vh;

    background: #ffffff;

    border-radius: 28px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 28px 70px
        rgba(0,0,0,.38);

    animation:
        rbYouTubePopupIn
        .22s
        ease-out;
}

@keyframes rbYouTubePopupIn {

    from {
        opacity: 0;
        transform:
            scale(.94)
            translateY(10px);
    }

    to {
        opacity: 1;
        transform:
            scale(1)
            translateY(0);
    }
}


/* =========================================================
   HEADER
========================================================= */

.rb-youtube-header {

    min-height: 64px;

    padding:
        0
        14px
        0
        17px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626,
            #b91c1c
        );
}

.rb-youtube-heading {

    display: flex;

    align-items: center;

    gap: 11px;
}

.rb-youtube-icon {

    width: 38px;
    height: 38px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255,255,255,.18);

    font-size: 17px;
}

.rb-youtube-heading h3 {

    margin: 0;

    font-size: 18px;

    font-weight: 800;
}

.rb-youtube-heading p {

    margin: 3px 0 0;

    font-size: 11px;

    opacity: .85;
}


/* =========================================================
   CLOSE
========================================================= */

.rb-youtube-close {

    width: 34px;
    height: 34px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255,255,255,.18);

    color: #ffffff;

    font-size: 21px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;
}


/* =========================================================
   BODY
========================================================= */

.rb-youtube-body {

    padding: 13px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    min-height: 0;
}


/* =========================================================
   URL INPUT
========================================================= */

.rb-youtube-input-wrap {

    position: relative;
}

.rb-youtube-input-icon {

    position: absolute;

    left: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    font-size: 15px;

    pointer-events: none;
}

#rbPublicYouTubeInput {

    width: 100%;

    height: 45px;

    box-sizing: border-box;

    padding:
        0
        13px
        0
        39px;

    border:
        1px solid #DFE6F0;

    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            #FAFCFF,
            #F2F5FA
        );

    color: #1E2632;

    font-size: 13px;

    outline: none;
}

#rbPublicYouTubeInput:focus {

    border-color:
        #ef4444;

    box-shadow:
        0 0 0 3px
        rgba(239,68,68,.10);
}


/* =========================================================
   PREVIEW BUTTON
========================================================= */

.rb-youtube-preview-button {

    width: 100%;

    height: 42px;

    border: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;
}


/* =========================================================
   PREVIEW AREA
========================================================= */

.rb-youtube-preview {

    min-height: 180px;

    border-radius: 18px;

    overflow: hidden;

    background:
        #F5F7FA;

    border:
        1px solid #E9EEF5;
}

.rb-youtube-empty {

    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    text-align: center;

    color: #848d98;
}

.rb-youtube-empty-icon {

    font-size: 30px;

    margin-bottom: 3px;
}

.rb-youtube-empty strong {

    color: #333c47;

    font-size: 14px;
}

.rb-youtube-empty span {

    font-size: 11px;
}


/* =========================================================
   VIDEO PREVIEW
========================================================= */

.rb-youtube-media-preview {

    display: flex;

    flex-direction: column;
}

.rb-youtube-thumbnail-wrap {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #111;

    overflow: hidden;
}

.rb-youtube-thumbnail {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.rb-youtube-play {

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 48px;
    height: 48px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(220,38,38,.94);

    color: #ffffff;

    font-size: 18px;

    padding-left: 2px;
}

.rb-youtube-type-badge {

    position: absolute;

    left: 9px;
    top: 9px;

    padding:
        5px
        9px;

    border-radius: 9px;

    background:
        rgba(0,0,0,.62);

    color: #ffffff;

    font-size: 10px;

    font-weight: 800;
}

.rb-youtube-preview-info {

    padding:
        10px
        12px;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.rb-youtube-preview-info strong {

    color: #2a333e;

    font-size: 13px;
}

.rb-youtube-preview-info span {

    color: #89919c;

    font-size: 10px;
}


/* =========================================================
   STATUS
========================================================= */

.rb-youtube-status {

    min-height: 15px;

    font-size: 11px;

    text-align: center;

    color: #89919c;
}

.rb-youtube-status.success {

    color: #1651A3;
}

.rb-youtube-status.error {

    color: #dc2626;
}


/* =========================================================
   FOOTER
========================================================= */

.rb-youtube-footer {

    padding:
        7px
        10px;

    border-top:
        1px solid #EAEEF3;

    text-align: center;

    color: #958d9e;

    font-size: 9px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 430px) {

    #rbPublicYouTubePicker
    .rb-youtube-card {

        width: 348px;

        max-width: 91vw;

        border-radius: 26px;
    }

    .rb-youtube-body {

        padding: 11px;
    }
}
/* =========================================================
   RANDOMBONDS — YOUTUBE SEND BUTTON
========================================================= */

.rb-youtube-send-button {

    width: 100%;

    height: 42px;

    border: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #3A85ED,
            #1C59AF
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform .18s ease,
        opacity .18s ease,
        box-shadow .18s ease;

    box-shadow:
        0 6px 16px
        rgba(58, 133, 237, 0.18);
}

.rb-youtube-send-button:active {
    transform: scale(.98);
}

.rb-youtube-send-button:disabled {

    opacity: .45;

    cursor: not-allowed;

    box-shadow: none;
}
/* =========================================================
   RANDOMBONDS — PUBLIC CHAT YOUTUBE
========================================================= */

.rb-public-youtube {
    width: min(280px, 78vw);

    margin-top: 6px;

    overflow: hidden;

    border-radius: 15px;

    background: #111;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12);
}

.rb-public-youtube-label {
    padding: 7px 10px;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    color: #ffffff;

    font-size: 10px;

    font-weight: 800;
}

.rb-public-youtube-frame {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    border: 0;
}

/* =========================================================
   RANDOMBONDS — UNIFIED YOUTUBE CHAT CARD
========================================================= */

.rb-public-youtube {
    width: min(280px, 78vw);

    margin-top: 6px;

    background: #111;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12);
}

.rb-public-youtube-frame {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    border: 0;

    background: #000;
}

@media (max-width: 430px) {

    .rb-public-youtube {
        width: 260px;
        max-width: 76vw;
    }

    .rb-public-youtube-frame {
        aspect-ratio: 16 / 9;
    }
}
/* =========================================
   RANDOMBONDS YOUTUBE FULLSCREEN
========================================= */

body.rb-youtube-body-immersive {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
}

.rb-public-youtube.rb-youtube-immersive {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 0 !important;

    background: #000 !important;

    z-index: 2147483647 !important;

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

    overflow: hidden !important;
}

.rb-public-youtube.rb-youtube-immersive
.rb-public-youtube-frame {
    display: block !important;

    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;
    max-height: none !important;

    aspect-ratio: auto !important;

    border: 0 !important;

    background: #000 !important;
}

.rb-public-youtube.rb-youtube-immersive
.rb-youtube-fullscreen-btn {
    position: fixed !important;

    right: 14px !important;
    bottom: 14px !important;

    width: 44px !important;
    height: 44px !important;

    z-index: 2147483648 !important;
}
/* =========================================================
   RANDOMBONDS — PUBLIC CHAT MESSAGE MENU
   PREMIUM MESSAGE ACTION UI
========================================================= */

.rb-public-message {
    position: relative;
}


/* ---------------------------------------------------------
   THREE DOT BUTTON
--------------------------------------------------------- */

.rb-public-message-menu {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 50;
}


.rb-public-message-menu-button {
    width: 20px;
    height: 20px;

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

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    color: #558CD9;

    font-size: 16px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;

    box-shadow: none;
}

.rb-public-message-menu-button:hover {
    transform: scale(1.08);

    background: rgba(242, 247, 255, 0.98);

    box-shadow:
        0 7px 22px rgba(55, 99, 160, 0.2);
}


.rb-public-message-menu-button:active {
    transform: scale(0.92);
}


/* ---------------------------------------------------------
   ACTION POPUP
--------------------------------------------------------- */

.rb-public-message-action-dropdown {

    min-width: 205px;
    
    display: flex;
    
flex-direction: column;

    gap: 4px;

    padding: 7px;

    margin-top: 7px;

    border-radius: 16px;

    background:
        rgba(255,255,255,0.97);

    border:
        1px solid rgba(100, 150, 220, 0.12);

    box-shadow:
        0 14px 38px rgba(30, 59, 100, 0.18),
        0 4px 12px rgba(0,0,0,0.08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;

    animation:
        rbPublicMessageMenuIn
        0.16s ease-out;
}


/* ---------------------------------------------------------
   ACTION BUTTONS
--------------------------------------------------------- */

.rb-public-message-action {

    width: 100%;
    height: 44px;
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 11px;

    box-sizing: border-box;

    padding: 0 14px;

    margin: 0;

    border: 0;
    border-radius: 11px;

    background: transparent;

    color: #222;

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

    text-align: left;

    position: relative;
    z-index: 100001;

    pointer-events: auto;

    cursor: pointer;

    touch-action: manipulation;

    -webkit-user-select: none;
    user-select: none;

    -webkit-tap-highlight-color: transparent;
}
.rb-public-message-action span {
    pointer-events: none;
}


.rb-public-message-action:hover {

    background:
        rgba(78, 143, 235, 0.08);

    transform:
        translateX(2px);
}


.rb-public-message-action:active {

    transform:
        scale(0.98);
}


/* ---------------------------------------------------------
   MENU ANIMATION
--------------------------------------------------------- */

@keyframes rbPublicMessageMenuIn {

    from {
        opacity: 0;
        transform:
            translateY(-5px)
            scale(0.96);
        transform-origin:
            top right;
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
        transform-origin:
            top right;
    }
}
.rb-public-message-action-dropdown {
    pointer-events: auto !important;
    z-index: 99999 !important;
}

.rb-public-message-action {
    pointer-events: auto !important;
    position: relative;
    z-index: 100000;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
/* =========================================================
   RANDOMBONDS — IGNORED USERS SETTINGS
========================================================= */

.rb-ignored-users-card {
    overflow: hidden;

    padding: 0;

    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius-xl);

    background:
        linear-gradient(
            180deg,
            rgba(75, 145, 244, 0.035),
            var(--rb-surface)
        );

    box-shadow: var(--rb-shadow-sm);
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.rb-ignored-users-card
.rb-owner-setting-header {
    padding: 20px 20px 16px;

    border-bottom: 1px solid var(--rb-border);
}


.rb-ignored-users-card
.rb-owner-setting-header h2 {
    margin-top: 4px;

    font-size: 19px;
    font-weight: 850;

    letter-spacing: -.3px;
}


.rb-ignored-users-card
.rb-owner-setting-header p {
    max-width: 600px;

    margin-top: 7px;

    color: var(--rb-text-soft);

    font-size: 13px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   LIST
--------------------------------------------------------- */

.rb-ignored-users-list {
    display: grid;

    gap: 0;

    padding: 4px 0;
}


/* ---------------------------------------------------------
   USER ROW
--------------------------------------------------------- */

.rb-ignored-user-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 72px;

    padding: 12px 16px;

    border-bottom: 1px solid var(--rb-border);

    transition:
        background var(--rb-transition),
        transform var(--rb-transition);
}


.rb-ignored-user-item:last-child {
    border-bottom: 0;
}


.rb-ignored-user-item:hover {
    background:
        rgba(75, 145, 244, 0.035);
}


/* ---------------------------------------------------------
   USER ICON
--------------------------------------------------------- */

.rb-ignored-user-item::before {
    content: "🚫";

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

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

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(75, 145, 244, 0.12),
            rgba(37, 99, 235, .10)
        );

    border: 1px solid rgba(75, 145, 244, 0.1);

    font-size: 18px;
}


/* ---------------------------------------------------------
   USER INFORMATION
--------------------------------------------------------- */

.rb-ignored-user-info {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.rb-ignored-user-info strong {
    overflow: hidden;

    color: var(--rb-text);

    font-size: 14px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.rb-ignored-user-info span {
    overflow: hidden;

    color: var(--rb-text-muted);

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   UNIGNORE BUTTON
--------------------------------------------------------- */

.rb-unignore-button {
    width: auto !important;
    min-width: 92px;

    flex: 0 0 auto;

    min-height: 38px;

    padding: 0 14px;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 750;

    white-space: nowrap;
}


.rb-unignore-button:hover {
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   EMPTY / LOADING STATES
--------------------------------------------------------- */

.rb-ignored-users-empty,
.rb-ignored-users-loading {
    padding: 24px 18px;

    color: var(--rb-text-soft);

    font-size: 13px;

    line-height: 1.6;

    text-align: center;
}


.rb-ignored-users-empty::before {
    content: "🚫";

    display: block;

    margin-bottom: 8px;

    font-size: 25px;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 560px) {

    .rb-ignored-users-card
    .rb-owner-setting-header {
        padding: 18px 16px 14px;
    }


    .rb-ignored-user-item {
        gap: 10px;

        min-height: 68px;

        padding: 10px 12px;
    }


    .rb-ignored-user-item::before {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        border-radius: 12px;

        font-size: 16px;
    }


    .rb-ignored-user-info strong {
        font-size: 13px;
    }


    .rb-ignored-user-info span {
        font-size: 11px;
    }


    .rb-unignore-button {
        min-width: 82px;

        min-height: 36px;

        padding: 0 10px;

        font-size: 11px;
    }

}
/* =========================================================
   RANDOMBONDS — PUBLIC CHAT MENTIONS
========================================================= */

.rb-public-mention {
    display: inline;

    padding: 1px 4px;

    border-radius: 6px;

    color: #3578D5;

    background: rgba(75, 145, 244, 0.12);

    font-weight: 750;

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}


.rb-public-mention-self {
    color: #2B6CC7;

    background: rgba(75, 145, 244, 0.2);

    box-shadow:
        0 0 0 1px
        rgba(75, 145, 244, 0.08);
}

/* =========================================================
   RANDOMBONDS — PUBLIC CHAT QUICK PROFILE POPUP
   ---------------------------------------------------------
   Small floating profile card
========================================================= */

.rb-public-chat-quick-profile {
    position: fixed;

    inset: 0;

    z-index: 100001;

    display: flex;

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

    padding: 16px;

    box-sizing: border-box;
}


.rb-public-chat-quick-profile.hidden {
    display: none !important;
}


/* =========================================================
   BACKDROP
========================================================= */

.rb-public-chat-quick-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(8, 10, 18, 0.58);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


/* =========================================================
   CARD
========================================================= */

.rb-public-chat-quick-card {
    position: relative;

    z-index: 2;

    width: min(
        360px,
        calc(100vw - 32px)
    );

    max-height: 82vh;

    overflow: hidden;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #F7FAFF
        );

    border:
        1px solid
        rgba(77, 137, 220, 0.15);

    box-shadow:
        0 28px 80px
        rgba(0,0,0,0.30);

    animation:
        rbPublicQuickProfileIn
        180ms ease-out;
}


/* =========================================================
   CLOSE
========================================================= */

.rb-public-chat-quick-close {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 30;

    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 50%;

    display: flex;

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

    background:
        rgba(255,255,255,0.88);

    color:
        #22222b;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(0,0,0,0.14);
}


.rb-public-chat-quick-close:active {
    transform:
        scale(0.94);
}


/* =========================================================
   BANNER
========================================================= */

.rb-public-chat-quick-banner {
    width: 100%;

    height: 250px;

    background:
        linear-gradient(
            135deg,
            #4D97FF,
            #3F7FD8
        );

    background-position:
        center;

    background-size:
        cover;

    background-repeat:
        no-repeat;
}

/* =========================================================
   AVATAR
========================================================= */

.rb-public-chat-quick-avatar-wrap {
    position: relative;

    width: 82px;
    height: 82px;

    margin:
        -41px auto 0;

    z-index: 10;

    padding: 0;

    border-radius: 50%;

    background: transparent;

    box-shadow: none;
}

/* =========================================================
   STAFF — AVATAR INSIDE BANNER
========================================================= */

.rb-public-chat-quick-card.rb-quick-staff-profile {
    overflow: hidden;

    position: relative;
}


.rb-public-chat-quick-card.rb-quick-staff-profile
.rb-public-chat-quick-avatar-wrap {
    position: absolute;

    top: 102px;
    left: 50%;

    transform:
        translateX(-50%);

    margin: 0;

    z-index: 15;
}


.rb-public-chat-quick-card.rb-quick-staff-profile
.rb-public-chat-quick-main {
    padding-top: 54px;
}


.rb-public-chat-quick-avatar {
    width: 100%;
    height: 100%;

    overflow: hidden;

    display: flex;

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

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #4D97FF,
            #3F7FD8
        );

    color:
        #ffffff;

    font-size: 24px;

    font-weight: 900;
}


.rb-public-chat-quick-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: inherit;

    pointer-events: none;
}


/* =========================================================
   MAIN
========================================================= */

.rb-public-chat-quick-main {
    padding:
        12px
        18px
        20px;

    text-align: center;
}


/* =========================================================
   NAME
========================================================= */

.rb-public-chat-quick-name-row {
    display: flex;

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

    gap: 7px;

    flex-wrap: wrap;
}


.rb-public-chat-quick-name {
    color:
        #181821;

    font-size:
        21px;

    font-weight:
        900;

    line-height:
        1.2;
}


/* =========================================================
   BADGE
========================================================= */

.rb-public-chat-quick-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;
}


.rb-public-chat-quick-badge
.rb-public-role-badge {
    width: auto !important;

    height: 30px !important;

    max-width: 80px !important;

    object-fit: contain;
}


.rb-public-chat-quick-badge
.rb-owner-badge,
.rb-public-chat-quick-badge
.rb-public-owner-badge {
    width: 66px !important;

    height: auto !important;

    max-width: 66px !important;
}


.rb-public-chat-quick-badge
.rb-moderator-badge,
.rb-public-chat-quick-badge
.rb-verified-badge {
    width: 28px !important;

    height: 28px !important;
}


/* =========================================================
   USERNAME
========================================================= */

.rb-public-chat-quick-username {
    margin-top: 5px;

    color:
        #777785;

    font-size:
        13px;

    font-weight:
        650;
}


/* =========================================================
   ROLE
========================================================= */

.rb-public-chat-quick-role {
    width:
        fit-content;

    margin:
        9px auto 14px;

    padding:
        5px 11px;

    border-radius:
        999px;

    background:
        rgba(77, 137, 220, 0.09);

    color:
        #4179C7;

    font-size:
        11px;

    font-weight:
        850;

    text-transform:
        capitalize;
}


/* =========================================================
   ACTIONS
========================================================= */

.rb-public-chat-quick-actions {
    display: flex  ;

    align-items: stretch;

    justify-content: center;

    gap: 12px;

    margin-top: 10px;

    flex-wrap: wrap;
}
.rb-public-chat-quick-action {
    width: 100px;

    max-width: 100px;

    flex: 0 1 100px;
}

.rb-public-chat-quick-action {
    min-width: 0;

    min-height:
        58px;

    padding:
        8px 5px;

    border:
        1px solid
        rgba(77, 137, 220, 0.1);

    border-radius:
        14px;

    background:
        rgba(77, 137, 220, 0.045);

    color:
        #262633;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        4px;

    font-size:
        11px;

    font-weight:
        750;

    cursor:
        pointer;

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}


.rb-public-chat-quick-action span:first-child {
    font-size:
        19px;

    line-height:
        1;
}


.rb-public-chat-quick-action:hover {
    background:
        rgba(77, 137, 220, 0.1);

    border-color:
        rgba(77, 137, 220, 0.2);

    transform:
        translateY(-1px);
}


.rb-public-chat-quick-action:active {
    transform:
        scale(0.96);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .rb-public-chat-quick-profile {
        padding:
            12px;
    }


    .rb-public-chat-quick-card {
        width:
            min(
                360px,
                calc(100vw - 24px)
            );

        border-radius:
            22px;
    }


    .rb-public-chat-quick-banner {
        height:
            200px;
    }


    .rb-public-chat-quick-avatar-wrap {
        width:
            76px;

        height:
            76px;

        margin:
            -38px auto 0;
    }


    .rb-public-chat-quick-name {
        font-size:
            20px;
    }


    .rb-public-chat-quick-action {
        min-height:
            56px;
    }
}


/* =========================================================
   OPEN ANIMATION
========================================================= */

@keyframes rbPublicQuickProfileIn {

    from {
        opacity:
            0;

        transform:
            translateY(10px)
            scale(0.96);
    }

    to {
        opacity:
            1;

        transform:
            translateY(0)
            scale(1);
    }
}
/* =========================================================
   QUICK PROFILE — GENDER AVATAR
========================================================= */

/* MALE — ROUND + BLACK */
.rb-public-chat-quick-avatar.rb-quick-gender-male {
    border-radius: 50%;

    border:
        5px solid #111111;
}


/* FEMALE — SQUARE + PINK */
.rb-public-chat-quick-avatar.rb-quick-gender-female {
    border-radius: 18px;

    border:
        5px solid #EC4899;
}


/* OTHER / UNKNOWN */
.rb-public-chat-quick-avatar.rb-quick-gender-other {
    border-radius: 24px;

    border:
        5px solid #6193D8;
}

/* =========================================================
   RANDOMBONDS — PUBLIC CHAT ACTION ICONS
========================================================= */

.rb-public-action-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

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

    line-height: 0;
}

.rb-public-action-icon svg {
    width: 24px;
    height: 24px;

    display: block;

    flex: 0 0 24px;
}
/* =========================================================
   RANDOMBONDS — GLOBAL MUTE INDICATOR
========================================================= */

.rb-global-mute-indicator {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 6px;
    line-height: 0;
}

.rb-global-mute-indicator svg {
    width: 22px;
    height: 22px;
    display: block;
}
/* =========================================================
   RANDOMBONDS — MUTE INDICATOR PROFILE HOSTS
========================================================= */

.rb-profile-mute-indicator-host,
.rb-quick-mute-indicator-host {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;
    min-width: 28px !important;

    height: 28px !important;
    min-height: 28px !important;

    flex: 0 0 28px !important;
    flex-shrink: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;

    line-height: 0 !important;
}

.rb-profile-mute-indicator-host .rb-global-mute-indicator,
.rb-quick-mute-indicator-host .rb-global-mute-indicator {
    display: inline-flex !important;

    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    flex: 0 0 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}

.rb-profile-mute-indicator-host
.rb-global-mute-indicator svg,
.rb-quick-mute-indicator-host
.rb-global-mute-indicator svg {
    display: block !important;

    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    overflow: visible !important;
}
/* =========================================================
   PUBLIC CHAT ONLINE MEMBERS — MUTE INDICATOR
========================================================= */

.rb-public-online-mute-host {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 28px !important;
    min-width: 28px !important;

    height: 28px !important;
    min-height: 28px !important;

    flex: 0 0 28px !important;
    flex-shrink: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
    line-height: 0 !important;
}

.rb-public-online-mute-host
.rb-global-mute-indicator {
    display: inline-flex !important;

    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    flex: 0 0 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}

.rb-public-online-mute-host
.rb-global-mute-indicator svg {
    display: block !important;

    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    overflow: visible !important;
}
/* =========================================================
   RANDOMBONDS — VIBI PUBLIC CHAT
========================================================= */

.rb-vibi-public-message
.public-message-content {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

}


.rb-vibi-public-message
.public-message-meta {

    display: contents;

    margin-bottom: 0;

}


.rb-vibi-public-message
.public-message-username {

    color:
        var(--rb-primary);

    font-weight: 850;

    white-space: nowrap;

    cursor: default !important;

}


.rb-vibi-public-message
.public-message-text {

    width: auto;

    max-width: 100%;

    flex: 1 1 auto;

}


.rb-vibi-chat-avatar {

    overflow: hidden;

    cursor: pointer;

    background:
        var(--rb-surface-soft);

    border:
        1px solid
        rgba(75, 145, 244, 0.2);

    box-shadow:
        0 4px 14px
        rgba(75, 145, 244, 0.18);
}


.rb-vibi-chat-avatar img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: inherit;
}


/* =========================================================
   VIBI QUICK PROFILE
========================================================= */

.rb-quick-vibi-profile
.rb-public-chat-quick-avatar {

    overflow: hidden;

    border:
        1px solid
        rgba(75, 145, 244, 0.24);

    box-shadow:
        0 8px 24px
        rgba(75, 145, 244, 0.22);
}


.rb-quick-vibi-profile
.rb-public-chat-quick-avatar img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: inherit;
}

/* =========================================================
   RANDOMBONDS — THEME STUDIO
   PART 2 — PREMIUM THEME PREVIEWS
   BLUE-ONLY ACCENTS
========================================================= */

.rb-theme-studio {
    width: 100%;
    padding: 6px 0 30px;
}

.rb-theme-studio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.rb-theme-studio-header h2 {
    margin-top: 4px;
    font-size: clamp(25px, 4vw, 34px);
    letter-spacing: -1px;
}

.rb-theme-studio-header p {
    margin-top: 7px;
    max-width: 650px;
    color: var(--rb-text-soft);
    line-height: 1.6;
}

.rb-theme-default-note {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    min-width: 210px;
    padding: 13px 15px;
    border: 1px solid rgba(10, 75, 166, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.94),
            rgba(235, 241, 250, 0.88)
        );
    box-shadow:
        0 12px 28px rgba(9, 32, 64, 0.07);
}

.rb-theme-default-note > span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            #0A4BA6,
            #2770D6
        );
    color: #ffffff;
    font-size: 18px;
    box-shadow:
        0 8px 18px rgba(10, 75, 166, 0.22);
}

.rb-theme-default-note strong {
    display: block;
    font-size: 13px;
}

.rb-theme-default-note div span {
    display: block;
    margin-top: 3px;
    color: var(--rb-text-muted);
    font-size: 11px;
}


/* =========================================================
   THEME GRID
========================================================= */

.rb-theme-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   THEME CARD
========================================================= */

.rb-theme-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 12px 32px rgba(12,28,36,.08);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.rb-theme-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 42px rgba(12,28,36,.13);
}

.rb-theme-card:has(
    .rb-theme-select-button:focus-visible
) {
    outline: 3px solid rgba(10, 75, 166, 0.18);
    outline-offset: 3px;
}


/* =========================================================
   MINI UI PREVIEW
========================================================= */

.rb-theme-preview {
    position: relative;
    min-height: 245px;
    padding: 14px;
    overflow: hidden;
    isolation: isolate;
}

.rb-theme-preview::before,
.rb-theme-preview::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.rb-theme-preview::before {
    inset: -35%;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255,255,255,.22),
            transparent 24%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(255,255,255,.12),
            transparent 26%
        );
}

.rb-theme-preview::after {
    width: 180px;
    height: 180px;
    right: -55px;
    top: -65px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .45;
}

.rb-mini-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    margin-bottom: 10px;
}

.rb-mini-topbar > span {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
}

.rb-mini-topbar > div {
    height: 8px;
    flex: 1;
    max-width: 96px;
    border-radius: 99px;
    opacity: .48;
}

.rb-mini-topbar > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: .78;
}

.rb-mini-hero {
    padding: 17px;
    min-height: 92px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        0 10px 25px rgba(0,0,0,.10);
}

.rb-mini-hero small {
    display: block;
    margin-bottom: 8px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .14em;
    opacity: .72;
}

.rb-mini-hero strong {
    display: block;
    font-size: clamp(17px, 2.3vw, 24px);
    letter-spacing: -.5px;
}

.rb-mini-cards {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.rb-mini-cards span {
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}


/* =========================================================
   THEME INFO
========================================================= */

.rb-theme-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px 12px;
}

.rb-theme-info h3 {
    font-size: 18px;
    letter-spacing: -.3px;
}

.rb-theme-info p {
    max-width: 410px;
    margin-top: 5px;
    color: var(--rb-text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.rb-theme-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 9px;
    border-radius: 99px;
    white-space: nowrap;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .07em;
}


/* =========================================================
   THEME BUTTON
========================================================= */

.rb-theme-select-button {
    width: calc(100% - 36px);
    min-height: 44px;
    margin: 0 18px 18px;
    border-radius: 13px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.rb-theme-select-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.rb-theme-select-button:active {
    transform: scale(.985);
}


/* =========================================================
   1 — MODERN GLASS
========================================================= */

.rb-theme-modern-glass {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #EEF3FA
        );
}

.rb-theme-modern-glass .rb-theme-preview {
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(20, 100, 212, 0.24),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(255,122,102,.20),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #0C1D35,
            #0E3D80
        );
}

.rb-theme-modern-glass .rb-theme-preview::after {
    background:
        radial-gradient(
            circle,
            rgba(255,122,102,.48),
            transparent 68%
        );
}

.rb-theme-modern-glass .rb-mini-topbar > span {
    background: linear-gradient(
        135deg,
        #0A4BA6,
        #2770D6
    );
}

.rb-theme-modern-glass .rb-mini-topbar > div {
    background: #DFE9F8;
}

.rb-theme-modern-glass .rb-mini-topbar > i {
    background: #ff927f;
}

.rb-theme-modern-glass .rb-mini-hero,
.rb-theme-modern-glass .rb-mini-cards span {
    background: rgba(255,255,255,.10);
    color: #ffffff;
}

.rb-theme-modern-glass .rb-theme-badge {
    color: #087f80;
    background: #dff8f7;
}

.rb-theme-modern-glass .rb-theme-select-button {
    background:
        linear-gradient(
            135deg,
            #0A4BA6,
            #2770D6
        );
    box-shadow:
        0 10px 22px rgba(10, 75, 166, 0.2);
}


/* =========================================================
   2 — MIDNIGHT NEON
========================================================= */

.rb-theme-midnight-neon {
    background:
        linear-gradient(
            145deg,
            #07151b,
            #0c222b
        );
    border-color: rgba(39, 112, 214, 0.18);
}

.rb-theme-midnight-neon .rb-theme-preview {
    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(39, 112, 214, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(45, 127, 242, 0.16),
            transparent 30%
        ),
        #061318;
    color: #ECF4FF;
}

.rb-theme-midnight-neon .rb-theme-preview::after {
    background:
        radial-gradient(
            circle,
            rgba(45, 127, 242, 0.3),
            transparent 68%
        );
}

.rb-theme-midnight-neon .rb-mini-topbar > span {
    background:
        linear-gradient(
            135deg,
            #1866D4,
            #2D7FF2
        );
}

.rb-theme-midnight-neon .rb-mini-topbar > div {
    background: #19345A;
}

.rb-theme-midnight-neon .rb-mini-topbar > i {
    background: #2D7FF2;
}

.rb-theme-midnight-neon .rb-mini-hero,
.rb-theme-midnight-neon .rb-mini-cards span {
    background: rgba(8, 21, 40, 0.66);
    color: #EFF6FF;
    border-color: rgba(39, 112, 214, 0.22);
}

.rb-theme-midnight-neon .rb-theme-info h3,
.rb-theme-midnight-neon .rb-theme-info p {
    color: #EFF6FF;
}

.rb-theme-midnight-neon .rb-theme-info p {
    color: #9ab9c0;
}

.rb-theme-midnight-neon .rb-theme-select-button {
    background:
        linear-gradient(
            135deg,
            #1866D4,
            #2D7FF2
        );
    color: #071318;
}


/* =========================================================
   3 — ROYAL GOLD
========================================================= */

.rb-theme-royal-gold {
    background:
        linear-gradient(
            145deg,
            #18130b,
            #241a0d
        );
    border-color: rgba(246,185,74,.22);
}

.rb-theme-royal-gold .rb-theme-preview {
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(246,185,74,.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 78%,
            rgba(255,218,137,.10),
            transparent 34%
        ),
        #0f0c08;
    color: #fff8e7;
}

.rb-theme-royal-gold .rb-theme-preview::after {
    background:
        radial-gradient(
            circle,
            rgba(246,185,74,.30),
            transparent 68%
        );
}

.rb-theme-royal-gold .rb-mini-topbar > span {
    background:
        linear-gradient(
            135deg,
            #f6b94a,
            #ffe09a
        );
    color: #261a08;
}

.rb-theme-royal-gold .rb-mini-topbar > div {
    background: #5d4a27;
}

.rb-theme-royal-gold .rb-mini-topbar > i {
    background: #f6b94a;
}

.rb-theme-royal-gold .rb-mini-hero,
.rb-theme-royal-gold .rb-mini-cards span {
    background: rgba(34,24,11,.74);
    color: #fff7e3;
    border-color: rgba(246,185,74,.20);
}

.rb-theme-royal-gold .rb-theme-info h3,
.rb-theme-royal-gold .rb-theme-info p {
    color: #fff7e3;
}

.rb-theme-royal-gold .rb-theme-info p {
    color: #bcae8d;
}

.rb-theme-royal-gold .rb-theme-select-button {
    background:
        linear-gradient(
            135deg,
            #e6a52e,
            #f8cc70
        );
    color: #251707;
}


/* =========================================================
   4 — OCEAN BREEZE
========================================================= */

.rb-theme-ocean-breeze {
    background:
        linear-gradient(
            145deg,
            #effaff,
            #EAF1FB
        );
}

.rb-theme-ocean-breeze .rb-theme-preview {
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(56,189,248,.23),
            transparent 28%
        ),
        radial-gradient(
            circle at 86% 78%,
            rgba(20, 100, 212, 0.2),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #0c3550,
            #144891
        );
    color: #ffffff;
}

.rb-theme-ocean-breeze .rb-theme-preview::after {
    background:
        radial-gradient(
            circle,
            rgba(129, 181, 255, 0.32),
            transparent 68%
        );
}

.rb-theme-ocean-breeze .rb-mini-topbar > span {
    background:
        linear-gradient(
            135deg,
            #38bdf8,
            #1866D4
        );
}

.rb-theme-ocean-breeze .rb-mini-topbar > div {
    background: #B9D3F7;
}

.rb-theme-ocean-breeze .rb-mini-topbar > i {
    background: #C9DFFF;
}

.rb-theme-ocean-breeze .rb-mini-hero,
.rb-theme-ocean-breeze .rb-mini-cards span {
    background: rgba(255,255,255,.10);
    color: #ffffff;
}

.rb-theme-ocean-breeze .rb-theme-badge {
    color: #16627b;
    background: #dff7fc;
}

.rb-theme-ocean-breeze .rb-theme-select-button {
    background:
        linear-gradient(
            135deg,
            #1a9ed0,
            #1866D4
        );
}


/* =========================================================
   5 — SUNSET GLOW
========================================================= */

.rb-theme-sunset-glow {
    background:
        linear-gradient(
            145deg,
            #fff8f2,
            #fff2eb
        );
    border-color: rgba(255,122,102,.18);
}

.rb-theme-sunset-glow .rb-theme-preview {
    background:
        radial-gradient(
            circle at 16% 22%,
            rgba(255,181,89,.22),
            transparent 28%
        ),
        radial-gradient(
            circle at 84% 76%,
            rgba(255,96,121,.22),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #432217,
            #a94835
        );
    color: #ffffff;
}

.rb-theme-sunset-glow .rb-theme-preview::after {
    background:
        radial-gradient(
            circle,
            rgba(255,168,91,.34),
            transparent 68%
        );
}

.rb-theme-sunset-glow .rb-mini-topbar > span {
    background:
        linear-gradient(
            135deg,
            #ff9a46,
            #ff6b5a
        );
}

.rb-theme-sunset-glow .rb-mini-topbar > div {
    background: #ffd6b4;
}

.rb-theme-sunset-glow .rb-mini-topbar > i {
    background: #ffd27d;
}

.rb-theme-sunset-glow .rb-mini-hero,
.rb-theme-sunset-glow .rb-mini-cards span {
    background: rgba(58,24,17,.32);
    color: #ffffff;
    border-color: rgba(255,207,171,.18);
}

.rb-theme-sunset-glow .rb-theme-badge {
    color: #a33a2a;
    background: #ffe0d5;
}

.rb-theme-sunset-glow .rb-theme-select-button {
    background:
        linear-gradient(
            135deg,
            #ff7a43,
            #ff6b5a
        );
}


/* =========================================================
   6 — FOREST MINT
========================================================= */

.rb-theme-forest-mint {
    background:
        linear-gradient(
            145deg,
            #F4F7FB,
            #EDF2F8
        );
    border-color: rgba(24, 84, 168, 0.17);
}

.rb-theme-forest-mint .rb-theme-preview {
    background:
        radial-gradient(
            circle at 14% 18%,
            rgba(78, 134, 212, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 84% 78%,
            rgba(90, 144, 220, 0.18),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #101F35,
            #163662
        );
    color: #ffffff;
}

.rb-theme-forest-mint .rb-theme-preview::after {
    background:
        radial-gradient(
            circle,
            rgba(116, 160, 222, 0.3),
            transparent 68%
        );
}

.rb-theme-forest-mint .rb-mini-topbar > span {
    background:
        linear-gradient(
            135deg,
            #1854A8,
            #578DD9
        );
}

.rb-theme-forest-mint .rb-mini-topbar > div {
    background: #B8CCE8;
}

.rb-theme-forest-mint .rb-mini-topbar > i {
    background: #6799DF;
}

.rb-theme-forest-mint .rb-mini-hero,
.rb-theme-forest-mint .rb-mini-cards span {
    background: rgba(16, 31, 53, 0.38);
    color: #ffffff;
    border-color: rgba(186, 210, 244, 0.16);
}

.rb-theme-forest-mint .rb-theme-badge {
    color: #176647;
    background: #dcf5e6;
}

.rb-theme-forest-mint .rb-theme-select-button {
    background:
        linear-gradient(
            135deg,
            #1854A8,
            #477ECC
        );
}


/* =========================================================
   MOBILE THEME STUDIO
========================================================= */

@media (max-width: 800px) {

    .rb-theme-studio-header {
        flex-direction: column;
    }

    .rb-theme-default-note {
        width: 100%;
    }

    .rb-theme-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 520px) {

    .rb-theme-studio {
        padding-top: 0;
    }

    .rb-theme-preview {
        min-height: 220px;
    }

    .rb-theme-info {
        flex-direction: column;
        gap: 9px;
    }

    .rb-theme-badge {
        align-self: flex-start;
    }

    .rb-mini-hero {
        min-height: 82px;
        padding: 14px;
    }

    .rb-mini-cards {
        gap: 6px;
    }

    .rb-mini-cards span {
        min-height: 36px;
        padding: 7px 8px;
        font-size: 8px;
    }

}

/* =========================================================
   RANDOMBONDS — POST MEDIA VIEWER
   FULL SCREEN IMAGE / VIDEO
========================================================= */

.rb-post-media-viewer {

    position: fixed;

    inset: 0;

    z-index: 99990;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        20px;

    background:
        rgba(4, 10, 18, 0.92);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}


.rb-post-media-viewer.is-open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   VIEWER CONTENT
========================================================= */

.rb-post-media-viewer-content {

    position: relative;

    width: min(
        100%,
        1100px
    );

    height: min(
        92dvh,
        850px
    );

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius:
        20px;
}


/* =========================================================
   VIEWER IMAGE
========================================================= */

.rb-post-media-viewer-image {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    user-select: none;
}


/* =========================================================
   VIEWER VIDEO
========================================================= */

.rb-post-media-viewer-video {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    background: #000;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.rb-post-media-viewer-close {

    position: fixed;

    top:
        max(
            16px,
            env(safe-area-inset-top)
        );

    right:
        max(
            16px,
            env(safe-area-inset-right)
        );

    z-index: 2;

    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(0, 0, 0, 0.58);

    border:
        1px solid
        rgba(255, 255, 255, 0.20);

    backdrop-filter:
        blur(10px);

    font-size: 22px;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease;
}


.rb-post-media-viewer-close:hover {

    transform:
        scale(1.06);

    background:
        rgba(0, 0, 0, 0.74);
}


.rb-post-media-viewer-close:active {

    transform:
        scale(0.94);
}


/* =========================================================
   MOBILE VIEWER
========================================================= */

@media (max-width: 760px) {

    .post-media-preview-box {

        width: 100%;

        height:
            clamp(
                210px,
                58vw,
                300px
            );

        border-radius: 15px;
    }


    .post-media-play-button {

        width: 58px;

        height: 58px;

        font-size: 20px;
    }


    .rb-post-media-viewer {

        padding: 8px;
    }


    .rb-post-media-viewer-content {

        width: 100%;

        height:
            calc(
                100dvh - 16px
            );

        border-radius: 14px;
    }


    .rb-post-media-viewer-close {

        top:
            max(
                12px,
                env(safe-area-inset-top)
            );

        right:
            max(
                12px,
                env(safe-area-inset-right)
            );
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .post-media-preview-box,
    .post-media-play-button,
    .rb-post-media-viewer,
    .rb-post-media-viewer-close {

        transition: none !important;
    }
}

/* =========================================================
   RANDOMBONDS — POST EXTERNAL MEDIA COMPOSER
   YOUTUBE + INSTAGRAM
========================================================= */

.rb-post-external-media-box {
    width: 100%;
    padding: 14px;
    border-radius: 16px;

    background: var(--rb-surface);

    border: 1px solid var(--rb-border);

    box-shadow:
        0 6px 18px rgba(16, 32, 39, 0.08);

    color: var(--rb-text);

    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.rb-post-external-media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}


.rb-post-external-media-header > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.rb-post-external-media-header strong {
    color: var(--rb-text);

    font-size: 14px;
    font-weight: 800;

    line-height: 1.3;
}


.rb-post-external-media-header span {
    color: var(--rb-text-muted);

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.rb-post-external-media-close {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

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

    padding: 0;

    border: 1px solid var(--rb-border);
    border-radius: 50%;

    color: var(--rb-text-soft);

    background: var(--rb-surface-soft);

    font-size: 18px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 160ms ease,
        background 160ms ease,
        color 160ms ease;
}


.rb-post-external-media-close:hover {
    color: var(--rb-danger);

    background: #fff1f1;

    transform: scale(1.05);
}


.rb-post-external-media-close:active {
    transform: scale(.94);
}


/* =========================================================
   INPUT
========================================================= */

.rb-post-external-media-input-wrap {
    width: 100%;
}


.rb-post-external-media-input {
    width: 100%;

    min-height: 46px;

    padding:
        0
        13px;

    border:
        1px solid
        var(--rb-border);

    border-radius: 13px;

    color:
        var(--rb-text);

    background:
        var(--rb-surface-soft);

    font-size: 13px;

    box-sizing: border-box;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}


.rb-post-external-media-input::placeholder {
    color:
        var(--rb-text-muted);

    opacity: 1;
}


.rb-post-external-media-input:focus {
    border-color:
        var(--rb-primary);

    background:
        var(--rb-surface);

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.08);
}


/* =========================================================
   STATUS
========================================================= */

.rb-post-external-media-status {
    min-height: 18px;

    margin-top: 8px;

    color:
        var(--rb-text-muted);

    font-size: 11px;

    line-height: 1.4;
}


.rb-post-external-media-status.success {
    color:
        var(--rb-success);
}


.rb-post-external-media-status.error {
    color:
        var(--rb-danger);
}


/* =========================================================
   PREVIEW AREA
========================================================= */

.rb-post-external-media-preview {
    width: 100%;

    margin-top: 10px;
}


.rb-post-external-preview-card {
    width: 100%;

    overflow: hidden;

    border:
        1px solid
        var(--rb-border);

    border-radius: 14px;

    background:
        var(--rb-surface-soft);
}


/* =========================================================
   EXTERNAL PREVIEW IFRAME
========================================================= */

.rb-post-external-preview-frame {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #000;
}


.rb-post-external-preview-frame iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* Instagram can use a taller preview */
.rb-post-external-preview-frame.rb-instagram-frame {
    aspect-ratio: 1 / 1;

    background: #fff;
}


.rb-post-external-preview-label {
    display: flex;
    flex-direction: column;

    gap: 3px;

    padding: 10px 12px;
}


.rb-post-external-preview-label strong {
    color: var(--rb-text);

    font-size: 12px;
    font-weight: 800;
}


.rb-post-external-preview-label span {
    color: var(--rb-text-muted);

    font-size: 10px;
}


/* =========================================================
   INVALID LINK
========================================================= */

.rb-post-external-media-invalid {
    width: 100%;

    padding: 16px;

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

    gap: 5px;

    text-align: center;

    border:
        1px solid
        rgba(230, 83, 83, 0.16);

    border-radius: 14px;

    background:
        rgba(230, 83, 83, 0.05);
}


.rb-post-external-media-invalid > div {
    font-size: 24px;
}


.rb-post-external-media-invalid strong {
    color: var(--rb-danger);

    font-size: 12px;
}


.rb-post-external-media-invalid span {
    max-width: 280px;

    color: var(--rb-text-muted);

    font-size: 10px;

    line-height: 1.45;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .rb-post-external-media-box {
        padding: 12px;

        border-radius: 15px;
    }


    .rb-post-external-media-header strong {
        font-size: 13px;
    }


    .rb-post-external-media-input {
        min-height: 44px;

        font-size: 12px;
    }


    .rb-post-external-preview-frame {
        aspect-ratio: 16 / 9;
    }


    .rb-post-external-preview-frame.rb-instagram-frame {
        aspect-ratio: 1 / 1;
    }

}

/* =========================================================
   PRIVATE CHAT EMPTY ICON
========================================================= */

.private-empty-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;

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

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(30, 95, 170, 0.12),
            rgba(90, 133, 190, 0.08)
        );

    color: #1d5fa8;

    box-shadow:
        0 12px 30px rgba(30, 95, 170, 0.08),
        inset 0 0 0 1px rgba(30, 95, 170, 0.10);
}

.private-empty-icon svg {
    width: 54px;
    height: 54px;
    display: block;
}

/* =========================================================
   DISCOVER — INTERESTING POST AVATAR
========================================================= */

.rb-discover-post-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rb-discover-post-avatar img,
.rb-discover-post-avatar-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}


/* =========================================================
   DISCOVER — INTERESTING POST MEDIA
========================================================= */

.rb-discover-post-thumb {
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 16px;
}

.rb-discover-post-thumb img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* =========================================================
   DISCOVER — MINI POST MEDIA
========================================================= */

.rb-discover-post-thumb {
    position: relative;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 14px;
    background: #eef2f7;
}

.rb-discover-post-thumb img,
.rb-discover-post-thumb video {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
}

.rb-discover-mini-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 44px;
    height: 44px;

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

    border-radius: 50%;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);

    font-size: 17px;
}

/* =========================================================
   RANDOMBONDS — PVT FINAL IDENTITY FIX
   Blue fallback • Saved name effects • Floating badge
========================================================= */

.rb-pvt-name-text {
    min-width: 0 !important;

    display: inline-block !important;

    color:
        var(
            --rb-pvt-name-color,
            var(--rb-text)
        ) !important;

    overflow: visible !important;

    text-overflow: clip !important;

    white-space: nowrap !important;
}

/* Saved color must win over the generic class */
.rb-pvt-name-text {
    color: unset;
}


/* =========================================================
   PVT BADGE — FLOATING
========================================================= */

.rb-pvt-badge-slot {
    width: 46px !important;
    min-width: 46px !important;

    height: 28px !important;
    min-height: 28px !important;

    max-width: 46px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 46px !important;

    margin-left: 4px !important;

    overflow: visible !important;

    vertical-align: middle !important;

    line-height: 0 !important;
}


.rb-pvt-badge-slot
.rb-public-role-badge {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: auto !important;

    max-width: 46px !important;

    height: auto !important;
    max-height: 24px !important;

    overflow: visible !important;

    transform-origin: center center !important;

    animation:
        rbPvtBadgeFloat
        6s
        ease-in-out
        infinite !important;
}


.rb-pvt-badge-slot img {
    width: 46px !important;

    height: auto !important;

    max-width: 46px !important;
    max-height: 24px !important;

    display: block !important;

    object-fit: contain !important;
}


/* =========================================================
   PVT BADGE SVG
========================================================= */

.rb-pvt-badge-slot svg {
    width: 22px !important;
    height: 22px !important;

    display: block !important;
}


/* =========================================================
   BLUE RB SHADOW FOR PVT BADGES
   Use consistent blue shadows in this area.
========================================================= */

.rb-pvt-badge-slot
.rb-owner-badge,
.rb-pvt-badge-slot
.rb-public-owner-badge,
.rb-pvt-badge-slot
.rb-super-admin-badge,
.rb-pvt-badge-slot
.rb-admin-badge,
.rb-pvt-badge-slot
.rb-vibi-badge {
    filter:
        drop-shadow(
            0 4px 9px
            rgba(37, 99, 235, 0.20)
        ) !important;
}


/* =========================================================
   FLOAT
========================================================= */

@keyframes rbPvtBadgeFloat {

    0%,
    100% {
        transform:
            translateY(0)
            scale(1);
    }

    50% {
        transform:
            translateY(-4px)
            scale(1.025);
    }

}


/* =========================================================
   REAL PHOTO
========================================================= */

.rb-pvt-avatar-trigger img {
    object-fit: cover !important;

    object-position:
        50% 50% !important;
}

/* =========================================================
   PVT GENDER AVATAR FRAME
========================================================= */

.rb-pvt-avatar-trigger.rb-pvt-gender-male {
    border: 3px solid #111111 !important;
    border-radius: 50% !important;
}

.rb-pvt-avatar-trigger.rb-pvt-gender-female {
    border: 3px solid #EC4899 !important;
    border-radius: 8px !important;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rb-pvt-badge-slot
    .rb-public-role-badge {

        animation: none !important;

    }

}


/* =========================================================
   RANDOMBONDS PVT — MOBILE FULL CHAT MODE
========================================================= */

@media (max-width: 700px) {

    body.rb-pvt-mobile-chat-open
    #messagesPage > .page-header {
        display: none !important;
    }


    body.rb-pvt-mobile-chat-open
    #messagesPage {
        padding: 0 !important;
        margin: 0 !important;
    }


    body.rb-pvt-mobile-chat-open
    #messagesPage .messages-layout {
        position: fixed !important;

        top: var(--rb-header-height) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        height: calc(100dvh - var(--rb-header-height)) !important;

        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;

        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;

        overflow: hidden !important;

        z-index: 50 !important;
    }


    body.rb-pvt-mobile-chat-open
    #messagesPage .conversation-list {
        display: none !important;
    }


    body.rb-pvt-mobile-chat-open
    #messagesPage .private-chat-panel {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }


    body.rb-pvt-mobile-chat-open
    #messagesPage .private-chat-content {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
    }

}

/* =========================================================
   RANDOMBONDS — MY BONDS CARD FOUNDATION
========================================================= */

.rb-bonds-page {
    width: 100%;
}


/* =========================================================
   SECTION
========================================================= */

.rb-bonds-section {
    margin-top: 24px;
}


.rb-bonds-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}


.rb-bonds-section-heading h3 {
    margin: 4px 0 0;
}


.rb-bonds-count {
    min-width: 32px;
    height: 32px;

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

    padding: 0 9px;

    border: 1px solid var(--rb-border);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   SEARCH
========================================================= */

.rb-bonds-search-card {
    width: 100%;
    padding: 20px;

    border: 1px solid var(--rb-border);
    border-radius: 18px;

    background: var(--rb-surface, #ffffff);
    box-sizing: border-box;
}


.rb-bonds-search-heading h2 {
    margin: 5px 0 4px;
}


.rb-bonds-search-heading p {
    margin: 0;
    opacity: .72;
}


.rb-bonds-search-box {
    position: relative;

    display: flex;
    align-items: center;

    margin-top: 18px;
}


.rb-bonds-search-icon {
    position: absolute;
    left: 14px;

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

    opacity: .62;
    pointer-events: none;
}


.rb-bonds-search-input {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    padding: 12px 14px 12px 44px;

    border: 1px solid var(--rb-border);
    border-radius: 12px;

    background: var(--rb-background, #ffffff);
    color: var(--rb-text, #171722);

    outline: none;
}


.rb-bonds-search-input:focus {
    border-color: currentColor;
}


/* =========================================================
   ACTIVE BOND LIST
========================================================= */

.rb-active-bonds-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =========================================================
   BOND CARD
========================================================= */

.rb-bond-card {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    padding: 14px;

    border: 1px solid var(--rb-border);
    border-radius: 16px;

    background: var(--rb-surface, #ffffff);

    box-sizing: border-box;
}


.rb-bond-card-avatar {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    overflow: hidden;
}


.rb-bond-card-info {
    min-width: 0;
    flex: 1 1 auto;
}


.rb-bond-card-name {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;

    font-size: 15px;
    font-weight: 700;
}


.rb-bond-card-name span:first-child {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.rb-bond-card-username {
    margin-top: 3px;

    font-size: 13px;
    opacity: .62;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.rb-bond-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 6px;

    font-size: 12px;
    opacity: .72;
}


.rb-bond-card-status-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;
    background: currentColor;
}


/* =========================================================
   CARD ACTIONS
========================================================= */

.rb-bond-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    flex: 0 0 auto;
}


.rb-bond-message-button,
.rb-bond-profile-button,
.rb-bond-unbond-button {
    border: 1px solid var(--rb-border);
    border-radius: 10px;

    padding: 9px 12px;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    background: transparent;
    color: inherit;

    cursor: pointer;
}


.rb-bond-message-button {
    background: var(--rb-text, #171722);
    color: #ffffff;
    border-color: var(--rb-text, #171722);
}


.rb-bond-unbond-button {
    opacity: .72;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.rb-bonds-empty-state {
    padding: 34px 20px;

    text-align: center;

    border: 1px dashed var(--rb-border);
    border-radius: 16px;
}


.rb-bonds-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    opacity: .55;
}


.rb-bonds-empty-state h4 {
    margin: 0;
}


.rb-bonds-empty-state p {
    margin: 7px 0 0;

    font-size: 13px;
    opacity: .65;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .rb-bond-card {
        align-items: flex-start;
    }


    .rb-bond-card-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .rb-bond-message-button,
    .rb-bond-profile-button,
    .rb-bond-unbond-button {
        white-space: nowrap;
    }

}

/* =========================================================
   RANDOMBONDS — PREMIUM BOND REQUEST CARD
========================================================= */

.rb-bond-request-card {
    position: relative;

    display: grid;

    grid-template-columns:
        72px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 16px;

    width: 100%;

    padding: 16px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(67, 117, 170, 0.18);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7fbff 100%
        );

    box-shadow:
        0 10px 28px
        rgba(27, 60, 95, 0.08);

    overflow: hidden;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}


.rb-bond-request-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            #3a85ed,
            #48c6d9
        );
}


.rb-bond-request-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(58, 133, 237, 0.30);

    box-shadow:
        0 16px 34px
        rgba(27, 60, 95, 0.12);
}


/* =========================================================
   AVATAR
========================================================= */

.rb-bond-request-card
.rb-bond-card-avatar {
    position: relative;

    width: 72px;
    height: 72px;

    flex: 0 0 72px;

    overflow: hidden;

    box-sizing: border-box;

    background:
        #e8eef5;
}


.rb-bond-request-card
.rb-bond-card-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: inherit;
}


/* MALE */

.rb-bond-request-card
.rb-bond-card-avatar.rb-avatar-gender-male {
    border:
        4px solid
        #111111;

    border-radius: 50%;
}


/* FEMALE */

.rb-bond-request-card
.rb-bond-card-avatar.rb-avatar-gender-female {
    border:
        4px solid
        #EC4899;

    border-radius: 16px;
}


/* OTHER */

.rb-bond-request-card
.rb-bond-card-avatar.rb-avatar-gender-other {
    border:
        4px solid
        #7c9bc7;

    border-radius: 16px;
}


/* =========================================================
   INFORMATION
========================================================= */

.rb-bond-request-card
.rb-bond-card-info {
    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.rb-bond-request-card
.rb-bond-card-name {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    min-width: 0;

    line-height: 1.15;
}


.rb-bond-request-card
.rb-bond-card-name-text {
    display: inline-block;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 18px;

    font-weight: 850;
}


.rb-bond-request-card
.rb-bond-card-username {
    margin-top: 5px;

    color:
        #727b88;

    font-size: 13px;

    font-weight: 650;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.rb-bond-request-card
.rb-bond-request-label {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    max-width: 100%;

    margin-top: 8px;

    padding:
        5px 9px;

    border-radius:
        8px;

    background:
        rgba(58, 133, 237, 0.08);

    color:
        #3978c8;

    font-size: 11px;

    font-weight: 800;

    line-height: 1.2;
}


/* =========================================================
   BADGE
========================================================= */

.rb-bond-request-card
.rb-bond-card-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    max-width: 70px;

    overflow: hidden;
}


.rb-bond-request-card
.rb-bond-card-badge
.rb-public-role-badge {
    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: auto !important;

    height: auto !important;

    max-width: 62px !important;

    max-height: 30px !important;

    flex: 0 0 auto !important;

    object-fit: contain !important;

    background: transparent !important;

    border: 0 !important;
}


/* OWNER */

.rb-bond-request-card
.rb-bond-card-badge
.rb-owner-badge,
.rb-bond-request-card
.rb-bond-card-badge
.rb-public-owner-badge {
    width: 62px !important;

    max-width: 62px !important;

    height: auto !important;

    max-height: 30px !important;
}


/* SUPER ADMIN */

.rb-bond-request-card
.rb-bond-card-badge
.rb-super-admin-badge {
    width: 62px !important;

    max-width: 62px !important;

    height: auto !important;

    max-height: 30px !important;
}


/* ADMIN */

.rb-bond-request-card
.rb-bond-card-badge
.rb-admin-badge {
    width: 56px !important;

    max-width: 56px !important;

    height: auto !important;

    max-height: 28px !important;
}


/* VIBI */

.rb-bond-request-card
.rb-bond-card-badge
.rb-vibi-badge {
    width: 58px !important;

    max-width: 58px !important;

    height: auto !important;

    max-height: 29px !important;
}


/* MODERATOR / VERIFIED */

.rb-bond-request-card
.rb-bond-card-badge
.rb-moderator-badge,

.rb-bond-request-card
.rb-bond-card-badge
.rb-verified-badge {
    width: 26px !important;

    height: 26px !important;

    max-width: 26px !important;

    max-height: 26px !important;
}


/* =========================================================
   ACTIONS
========================================================= */

.rb-bond-request-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    flex: 0 0 auto;
}


.rb-bond-request-actions button {
    min-width: 82px;

    min-height: 38px;

    padding:
        0 13px;

    border-radius:
        11px;

    border:
        1px solid
        transparent;

    font:
        inherit;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}


/* ACCEPT */

.rb-bond-request-actions
.rb-bond-accept-button {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #2f7fe8,
            #2563c9
        );

    box-shadow:
        0 7px 16px
        rgba(47, 127, 232, 0.20);
}


.rb-bond-request-actions
.rb-bond-accept-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 10px 20px
        rgba(47, 127, 232, 0.26);
}


/* DECLINE */

.rb-bond-request-actions
.rb-bond-decline-button {
    color:
        #374151;

    background:
        #ffffff;

    border-color:
        rgba(55, 65, 81, 0.16);
}


.rb-bond-request-actions
.rb-bond-decline-button:hover {
    transform:
        translateY(-1px);

    background:
        #f4f7fa;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .rb-bond-request-card {
        grid-template-columns:
            62px
            minmax(0, 1fr);

        gap: 13px;

        padding: 14px;
    }


    .rb-bond-request-card
    .rb-bond-card-avatar {
        width: 62px;

        height: 62px;
    }


    .rb-bond-request-card
    .rb-bond-card-name-text {
        font-size: 17px;
    }


    .rb-bond-request-actions {
        grid-column: 1 / -1;

        width: 100%;

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 8px;
    }


    .rb-bond-request-actions button {
        width: 100%;
    }
}

/* =========================================================
   RANDOMBONDS — BOND REQUEST AVATAR
   Avatar opens profile popup, never photo viewer
========================================================= */

.rb-bond-request-card
.rb-bond-card-avatar img {
    pointer-events: none !important;
}

.rb-bond-request-card
.rb-bond-card-avatar {
    cursor: pointer;
}

/* =========================================================
   RANDOMBONDS — ACTIVE BOND AVATAR + BADGE POLISH
========================================================= */

.rb-bond-card-avatar {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;

    overflow: hidden !important;

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

    box-sizing: border-box;
}

/* MALE — BLACK CIRCLE */
.rb-bond-card-avatar.rb-avatar-gender-male {
    border: 3px solid #111111 !important;
    border-radius: 50% !important;
}

/* FEMALE — PINK SQUARE */
.rb-bond-card-avatar.rb-avatar-gender-female {
    border: 3px solid #EC4899 !important;
    border-radius: 10px !important;
}

/* OTHER */
.rb-bond-card-avatar.rb-avatar-gender-other {
    border-radius: 50% !important;
}

/* Avatar image */
.rb-bond-card-avatar img {
    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: inherit !important;
}

/* ---------------------------------------------------------
   ACTIVE BOND BADGE
--------------------------------------------------------- */

.rb-bond-card-name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.rb-bond-card-name img {
    width: 72px !important;
    height: auto !important;

    max-width: 72px !important;
    max-height: 28px !important;

    object-fit: contain !important;

    display: block !important;
    flex: 0 0 auto !important;
}

/* =========================================================
   RANDOMBONDS — PRIVATE CHAT PLUS MENU v2
========================================================= */

#privateComposer {
    position: relative;
}


/* ---------------------------------------------------------
   PLUS BUTTON
--------------------------------------------------------- */

#privateAddButton {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid #d9e1e7;
    border-radius: 14px;
    background: #ffffff;
    color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}


/* custom SVG-style plus */
#privateAddButton::before,
#privateAddButton::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 2.5px;
    border-radius: 4px;
    background: #172630;
}

#privateAddButton::after {
    transform: rotate(90deg);
}

#privateAddButton:hover {
    background: #f5f8fa;
    border-color: #c8d2da;
    box-shadow: 0 5px 16px rgba(15, 30, 45, 0.10);
}

#privateAddButton:active {
    transform: scale(0.94);
}


/* ---------------------------------------------------------
   MENU
--------------------------------------------------------- */

#rbPvtPlusMenu {
    position: absolute;
    left: 8px;
    bottom: calc(100% + 12px);
    width: min(350px, calc(100% - 16px));

    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dfe6eb;
    border-radius: 22px;

    box-shadow:
        0 18px 45px rgba(15, 30, 45, 0.16),
        0 4px 14px rgba(15, 30, 45, 0.06);

    overflow: hidden;
    z-index: 1000;

    animation:
        rbPvtPlusMenuIn
        0.18s
        ease-out;
}


#rbPvtPlusMenu.hidden {
    display: none !important;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.rb-pvt-plus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 15px 13px 18px;

    border-bottom: 1px solid #edf1f4;
}


.rb-pvt-plus-header strong {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.2px;
    color: #16242e;
}


#rbPvtPlusClose {
    position: relative;

    width: 32px;
    height: 32px;
    min-width: 32px;

    padding: 0;
    border: 0;
    border-radius: 11px;

    background: #f2f5f7;
    color: transparent;

    cursor: pointer;
}


/* custom X */
#rbPvtPlusClose::before,
#rbPvtPlusClose::after {
    content: "";
    position: absolute;

    width: 13px;
    height: 2px;

    left: 9.5px;
    top: 15px;

    border-radius: 3px;
    background: #52606b;
}

#rbPvtPlusClose::before {
    transform: rotate(45deg);
}

#rbPvtPlusClose::after {
    transform: rotate(-45deg);
}


/* ---------------------------------------------------------
   OPTIONS
--------------------------------------------------------- */

.rb-pvt-plus-options {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 9px;
}


/* ---------------------------------------------------------
   OPTION
--------------------------------------------------------- */

.rb-pvt-plus-option {
    position: relative;

    width: 100%;
    min-height: 66px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 10px 14px 10px 68px;

    border: 0;
    border-radius: 15px;

    background: transparent;

    text-align: left;
    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.rb-pvt-plus-option:hover {
    background: #f4f7f9;
}


.rb-pvt-plus-option:active {
    transform: scale(0.985);
    background: #edf2f5;
}


/* ---------------------------------------------------------
   CUSTOM ICON HOLDER
--------------------------------------------------------- */

.rb-pvt-plus-option::before {
    content: "";

    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border-radius: 12px;

    background: #eef3f6;
    border: 1px solid #e1e8ec;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 21px 21px;
}


/* ---------------------------------------------------------
   PHOTO SVG
--------------------------------------------------------- */

.rb-pvt-plus-option[data-pvt-action="photo"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3442' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='8.5' cy='9' r='1.5'/%3E%3Cpath d='M21 15l-4.2-4.2L8 19'/%3E%3C/svg%3E");
}


/* ---------------------------------------------------------
   GIF SVG
--------------------------------------------------------- */

.rb-pvt-plus-option[data-pvt-action="gif"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3442' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M8 10h-1a2 2 0 000 4h1v-1.5H7'/%3E%3Cpath d='M11 10v4'/%3E%3Cpath d='M15 10h-3v4'/%3E%3Cpath d='M12 12h2'/%3E%3C/svg%3E");
}


/* ---------------------------------------------------------
   VOICE SVG
--------------------------------------------------------- */

.rb-pvt-plus-option[data-pvt-action="voice"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3442' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='8' height='12' rx='4'/%3E%3Cpath d='M5 11a7 7 0 0014 0'/%3E%3Cpath d='M12 18v3'/%3E%3Cpath d='M9 21h6'/%3E%3C/svg%3E");
}


/* ---------------------------------------------------------
   FONT SVG
--------------------------------------------------------- */

.rb-pvt-plus-option[data-pvt-action="fonts"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3442' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20L10 4h4l5 16'/%3E%3Cpath d='M8 14h8'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   ONLY BOND — BOND RULES SVG
--------------------------------------------------------- */

.rb-pvt-plus-option[data-pvt-action="bond-rules"]::before {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23256BEB'/%3E%3Cstop offset='1' stop-color='%2300B8A9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='8' y='6' width='32' height='36' rx='9' fill='white' stroke='url(%23g)' stroke-width='3'/%3E%3Cpath d='M15 16h18M15 23h12M15 30h8' stroke='url(%23g)' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='34' cy='33' r='5' fill='%23FFB020'/%3E%3Cpath d='M32 33l2 2 4-5' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

}


/* ---------------------------------------------------------
   ONLY BOND — BOND BREAKER SVG
--------------------------------------------------------- */

.rb-pvt-plus-option[data-pvt-action="bond-breaker"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FF7A45'/%3E%3Cstop offset='1' stop-color='%23E43D5A'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M9 18h11l5-5' fill='none' stroke='url(%23b)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M39 30H28l-5 5' fill='none' stroke='url(%23b)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20 13l-4 4 4 4' fill='none' stroke='%23FFB020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 31l4-4-4-4' fill='none' stroke='%23FFB020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='24' cy='24' r='3' fill='%23ffffff' stroke='%23E43D5A' stroke-width='2'/%3E%3C/svg%3E");
}
/* ---------------------------------------------------------
   TEXT
--------------------------------------------------------- */

.rb-pvt-plus-option span {
    display: block;

    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;

    color: #182832;
}


.rb-pvt-plus-option small {
    display: block;

    margin-top: 4px;

    font-size: 12px;
    line-height: 1.25;

    color: #77848d;
}


/* ---------------------------------------------------------
   MENU ANIMATION
--------------------------------------------------------- */

@keyframes rbPvtPlusMenuIn {

    from {
        opacity: 0;
        transform:
            translateY(8px)
            scale(0.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    #rbPvtPlusMenu {
        left: 6px;
        width: calc(100% - 12px);
        border-radius: 20px;
    }

}

/* =========================================================
   ONLY BOND — FOUNDATION PANEL
========================================================= */

.rb-only-bond-overlay {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px;

    box-sizing: border-box;

    background:
        rgba(0, 0, 0, .62);

    backdrop-filter:
        blur(8px);
}


.rb-only-bond-panel {

    width: min(
        560px,
        100%
    );

    max-height: min(
        720px,
        calc(100vh - 36px)
    );

    overflow-y: auto;

    border:
        1px solid var(--rb-border);

    border-radius: 22px;

    background:
        var(--rb-surface, #ffffff);

    color:
        inherit;

    box-shadow:
        0 24px 70px rgba(0,0,0,.28);

    animation:
        rbOnlyBondPanelIn
        .18s ease-out;
}


@keyframes rbOnlyBondPanelIn {

    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


.rb-only-bond-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;

    padding: 22px;

    border-bottom:
        1px solid var(--rb-border);
}


.rb-only-bond-header h2 {

    margin:
        5px 0 0;

}


.rb-only-bond-header p {

    margin:
        6px 0 0;

    font-size: 13px;

    opacity: .65;

}


.rb-only-bond-close {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 38px;

    border:
        1px solid var(--rb-border);

    border-radius: 11px;

    background: transparent;

    color: inherit;

    cursor: pointer;
}


.rb-only-bond-body {

    padding: 20px;

}


.rb-only-bond-feature-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 17px;

    border:
        1px solid var(--rb-border);

    border-radius: 17px;

    background:
        var(--rb-surface, #ffffff);
}


.rb-only-bond-feature-icon {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 48px;

    border:
        1px solid var(--rb-border);

    border-radius: 14px;
}


.rb-only-bond-feature-card h3 {

    margin: 0;

    font-size: 15px;

}


.rb-only-bond-feature-card p {

    margin: 5px 0 0;

    font-size: 12px;

    opacity: .65;

}


.rb-only-bond-feature-card > div:nth-child(2) {

    min-width: 0;

    flex: 1;

}


.rb-only-bond-feature-button {

    border: 0;

    border-radius: 10px;

    padding: 9px 13px;

    font: inherit;

    font-size: 12px;

    font-weight: 800;

    background:
        var(--rb-text, #171722);

    color: #ffffff;

    cursor: pointer;

}


.rb-only-bond-coming-soon {

    margin-top: 14px;

    padding: 16px;

    border:
        1px dashed var(--rb-border);

    border-radius: 16px;

    text-align: center;

}


.rb-only-bond-coming-soon span {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;

    opacity: .65;

}


.rb-only-bond-coming-soon p {

    margin: 7px 0 0;

    font-size: 12px;

    opacity: .55;

}


@media (max-width: 640px) {

    .rb-only-bond-overlay {

        align-items: flex-end;

        padding: 0;

    }


    .rb-only-bond-panel {

        width: 100%;

        max-height: 88vh;

        border-radius:
            22px 22px 0 0;
    }


    .rb-bond-card-actions {

        flex-wrap: wrap;

    }

}

/* =========================================================
   RANDOMBONDS — ONLY BOND — BOND RULES
========================================================= */

.private-chat-panel {
    position: relative;
}


/* ---------------------------------------------------------
   FULL PRIVATE CHAT LAYER
--------------------------------------------------------- */

.rb-pvt-bond-rules-modal {
    position: absolute;

    inset: 0;

    z-index: 2500;

    display: flex;

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

    overflow: hidden;
}


/* ---------------------------------------------------------
   BACKDROP
--------------------------------------------------------- */

.rb-pvt-bond-rules-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(10, 24, 34, 0.28);

    backdrop-filter:
        blur(3px);
}


/* ---------------------------------------------------------
   BOTTOM SHEET
--------------------------------------------------------- */

.rb-pvt-bond-rules-sheet {
    position: relative;

    width: min(
        100%,
        620px
    );

    max-height: 92%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border:
        1px solid #dfe6eb;

    border-radius:
        24px 24px 0 0;

    box-shadow:
        0 -18px 45px
        rgba(15, 30, 45, 0.18);

    overflow: hidden;

    animation:
        rbPvtBondRulesIn
        0.2s
        ease-out;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.rb-pvt-bond-rules-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding:
        18px
        18px
        15px;

    border-bottom:
        1px solid #edf1f4;
}


.rb-pvt-bond-rules-header strong {
    display: block;

    font-size: 18px;

    font-weight: 800;

    color: #182832;
}


.rb-pvt-bond-rules-header small {
    display: block;

    margin-top: 4px;

    font-size: 12px;

    color: #7a8790;
}


/* ---------------------------------------------------------
   CLOSE
--------------------------------------------------------- */

.rb-pvt-bond-rules-close {
    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 12px;

    background: #f2f5f7;

    color: #52606b;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;
}


/* ---------------------------------------------------------
   BODY
--------------------------------------------------------- */

.rb-pvt-bond-rules-body {
    padding: 18px;

    overflow-y: auto;
}


/* ---------------------------------------------------------
   INTRO
--------------------------------------------------------- */

.rb-pvt-bond-rules-intro {
    padding:
        15px
        16px;

    margin-bottom: 18px;

    border:
        1px solid #e3ebef;

    border-radius: 16px;

    background: #f7fafb;
}


.rb-pvt-bond-rules-intro strong {
    display: block;

    font-size: 14px;

    font-weight: 800;

    color: #182832;
}


.rb-pvt-bond-rules-intro p {
    margin:
        5px
        0
        0;

    font-size: 12px;

    line-height: 1.45;

    color: #72808a;
}


/* ---------------------------------------------------------
   FIELDS
--------------------------------------------------------- */

.rb-pvt-bond-rules-field {
    display: block;

    margin-bottom: 16px;
}


.rb-pvt-bond-rules-field > span {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 750;

    color: #53626c;
}


.rb-pvt-bond-rules-field input,
.rb-pvt-bond-rules-field select {
    width: 100%;

    height: 46px;

    padding:
        0
        13px;

    border:
        1px solid #d9e2e7;

    border-radius: 13px;

    background: #ffffff;

    color: #182832;

    font-size: 14px;

    outline: none;
}


.rb-pvt-bond-rules-field input:focus,
.rb-pvt-bond-rules-field select:focus {
    border-color: #2f7df4;

    box-shadow:
        0 0 0 3px
        rgba(47, 125, 244, 0.10);
}


/* ---------------------------------------------------------
   PREVIEW
--------------------------------------------------------- */

.rb-pvt-bond-rules-preview {
    margin-top: 6px;

    padding:
        15px
        16px;

    border:
        1px solid #dce7ed;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #f5faff,
            #f8fcfb
        );
}


.rb-pvt-bond-rules-preview span {
    display: block;

    margin-bottom: 6px;

    font-size: 11px;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    color: #76858e;
}


.rb-pvt-bond-rules-preview strong {
    display: block;

    font-size: 13px;

    line-height: 1.45;

    color: #1e3441;
}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.rb-pvt-bond-rules-footer {
    display: flex;

    gap: 10px;

    padding: 14px 18px;

    border-top:
        1px solid #edf1f4;

    background: #ffffff;
}


.rb-pvt-bond-rules-footer button {
    flex: 1;

    min-height: 46px;

    border-radius: 13px;

    font-size: 13px;

    font-weight: 750;

    cursor: pointer;
}


.rb-pvt-bond-rules-cancel {
    border:
        1px solid #d9e2e7;

    background: #f6f8f9;

    color: #53626c;
}


.rb-pvt-bond-rules-create {
    border: 0;

    background: #256bea;

    color: #ffffff;
}


/* ---------------------------------------------------------
   ANIMATION
--------------------------------------------------------- */

@keyframes rbPvtBondRulesIn {

    from {

        opacity: 0;

        transform:
            translateY(24px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}

/* =========================================================
   RANDOMBONDS — BOND RULE CARDS
   ONLY BOND / BOND RULES
========================================================= */

.rb-pvt-bond-rules-existing {
    margin-top: 18px;
    padding: 0 2px 4px;
}


.rb-pvt-bond-rules-existing-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}


.rb-pvt-bond-rules-existing-head strong {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #18242c;
}


.rb-pvt-bond-rules-existing-head small {
    font-size: 13px;
    line-height: 1.4;
    color: #71808a;
}


/* ---------------------------------------------------------
   RULE LIST
--------------------------------------------------------- */

.rb-pvt-bond-rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ---------------------------------------------------------
   RULE CARD
--------------------------------------------------------- */

.rb-pvt-bond-rule-card {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 16px;

    border: 1px solid #dbe4e9;
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f6fafc 100%
        );

    box-shadow:
        0 8px 24px rgba(
            31,
            52,
            66,
            0.08
        );

    overflow: hidden;
}


/* ---------------------------------------------------------
   COLOURED TOP ACCENT
--------------------------------------------------------- */

.rb-pvt-bond-rule-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #2878e8,
            #20a8a0
        );
}


/* ---------------------------------------------------------
   RULE NAME
--------------------------------------------------------- */

.rb-pvt-bond-rule-name {
    display: block;

    margin-top: 3px;

    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;

    color: #17242c;
}


/* ---------------------------------------------------------
   RULE DETAILS
--------------------------------------------------------- */

.rb-pvt-bond-rule-detail {
    font-size: 14px;
    line-height: 1.4;

    color: #52636d;
}


/* ---------------------------------------------------------
   ENABLED / DISABLED STATUS
--------------------------------------------------------- */

.rb-pvt-bond-rule-status {
    align-self: flex-start;

    display: inline-flex;
    align-items: center;

    margin-top: 5px;
    padding: 5px 10px;

    border-radius: 999px;

    font-size: 12px;
    line-height: 1;
    font-weight: 800;

    color: #18784c;
    background: #e8f7ef;
}


/* ---------------------------------------------------------
   EMPTY / LOADING STATES
--------------------------------------------------------- */

.rb-pvt-bond-rules-empty,
.rb-pvt-bond-rules-loading {
    padding: 15px;

    border: 1px dashed #ccd9df;
    border-radius: 15px;

    text-align: center;

    font-size: 14px;
    line-height: 1.4;

    color: #71808a;
    background: #f8fbfc;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .rb-pvt-bond-rule-card {
        padding: 15px;
        border-radius: 17px;
    }

    .rb-pvt-bond-rule-name {
        font-size: 16px;
    }

    .rb-pvt-bond-rule-detail {
        font-size: 13px;
    }

}

/* =========================================
   ONLY BOND — RULE CARD ACTIONS
========================================= */

.rb-pvt-bond-rule-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5edf1;
}

.rb-pvt-bond-rule-action {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.rb-pvt-bond-rule-toggle {
    color: #205db8;
    background: #edf5ff;
    border-color: #d3e5ff;
}

.rb-pvt-bond-rule-delete {
    color: #b92e36;
    background: #fff0f0;
    border-color: #ffd6d8;
}

.rb-pvt-bond-rule-action:active {
    transform: scale(0.97);
}

.rb-pvt-bond-rule-action:disabled {
    opacity: 0.55;
    cursor: wait;
}

.rb-pvt-bond-rule-status.is-disabled {
    color: #596873;
    background: #edf1f4;
}

@media (max-width: 380px) {
    .rb-pvt-bond-rule-actions {
        gap: 7px;
    }

    .rb-pvt-bond-rule-action {
        padding: 9px 6px;
        font-size: 11px;
    }
}


/* =====================================================
   RANDOMBONDS — BOND BREAKER DISPLAY FIX
===================================================== */

body.rb-bond-breaker-open {
    overflow: hidden !important;
}

#rbBondBreakerModal,
#rbBondBreakerModal * {
    box-sizing: border-box;
}

#rbBondBreakerModal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    isolation: isolate;
    font-family: inherit;
    color: #18232d;
}

#rbBondBreakerModal .rb-bb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 19, 27, 0.74);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

#rbBondBreakerModal .rb-bb-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    color: #18232d;
    border: 1px solid #e0e7ed;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    animation: rbBbEnter 0.22s ease-out;
}

@keyframes rbBbEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#rbBondBreakerModal .rb-bb-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e8edf1;
}

#rbBondBreakerModal .rb-bb-title {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

#rbBondBreakerModal .rb-bb-subtitle {
    margin-top: 5px;
    color: #687783;
    font-size: 12px;
    line-height: 1.5;
}

#rbBondBreakerModal .rb-bb-close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid #e0e7ed;
    border-radius: 12px;
    background: #f5f8fa;
    color: #253440;
    font-size: 25px;
    cursor: pointer;
}

#rbBondBreakerModal .rb-bb-main {
    padding: 20px 17px 22px;
}

#rbBondBreakerModal .rb-bb-welcome {
    padding: 3px 2px 19px;
    text-align: center;
}

#rbBondBreakerModal .rb-bb-welcome-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 17px;
    background: #eaf2ff;
    color: #2463eb;
}

#rbBondBreakerModal .rb-bb-welcome h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

#rbBondBreakerModal .rb-bb-welcome p {
    max-width: 310px;
    margin: 0 auto;
    color: #6b7782;
    font-size: 13px;
    line-height: 1.6;
}

#rbBondBreakerModal .rb-bb-section-heading {
    margin-bottom: 13px;
}

#rbBondBreakerModal .rb-bb-section-title {
    font-size: 16px;
    font-weight: 800;
}

#rbBondBreakerModal .rb-bb-section-description {
    margin-top: 4px;
    color: #77838d;
    font-size: 12px;
}

#rbBondBreakerModal .rb-bb-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#rbBondBreakerModal .rb-bb-category {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 98px;
    padding: 13px 11px;
    text-align: left;
    border: 1px solid #e0e7ed;
    border-radius: 15px;
    background: #ffffff;
    color: #18232d;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s,
        transform 0.15s;
}

#rbBondBreakerModal .rb-bb-category:hover {
    border-color: #7fa6ff;
    background: #f5f8ff;
}

#rbBondBreakerModal .rb-bb-category:active {
    transform: scale(0.98);
}

#rbBondBreakerModal .rb-bb-category-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #eaf2ff;
    color: #2463eb;
    font-size: 21px;
    font-weight: 800;
}

#rbBondBreakerModal .rb-bb-category-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

#rbBondBreakerModal .rb-bb-category-text strong {
    font-size: 13px;
    line-height: 1.35;
}

#rbBondBreakerModal .rb-bb-category-text small {
    color: #74818c;
    font-size: 11px;
    line-height: 1.4;
}

#rbBondBreakerModal .rb-bb-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #8b969e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

#rbBondBreakerModal .rb-bb-divider::before,
#rbBondBreakerModal .rb-bb-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5eaee;
}

#rbBondBreakerModal .rb-bb-own-question {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    text-align: left;
    border: 1px dashed #aabfd5;
    border-radius: 15px;
    background: #f8fbfd;
    color: #18232d;
    cursor: pointer;
}

#rbBondBreakerModal .rb-bb-own-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e2f7ef;
    color: #12845c;
    font-size: 26px;
}

#rbBondBreakerModal .rb-bb-own-question strong,
#rbBondBreakerModal .rb-bb-own-question small {
    display: block;
}

#rbBondBreakerModal .rb-bb-own-question strong {
    font-size: 14px;
}

#rbBondBreakerModal .rb-bb-own-question small {
    margin-top: 4px;
    color: #74818c;
    font-size: 11px;
}

#rbBondBreakerModal .rb-bb-back {
    margin-bottom: 15px;
    padding: 8px 11px;
    border: 1px solid #e0e7ed;
    border-radius: 10px;
    background: #ffffff;
    color: #334653;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

#rbBondBreakerModal .rb-bb-question-card,
#rbBondBreakerModal .rb-bb-own-form,
#rbBondBreakerModal .rb-bb-created-round {
    padding: 20px 15px;
    border: 1px solid #e0e7ed;
    border-radius: 17px;
    background: #f9fbfd;
}

#rbBondBreakerModal .rb-bb-question-category {
    color: #2463eb;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#rbBondBreakerModal .rb-bb-question-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin: 16px 0;
    border-radius: 13px;
    background: #eaf2ff;
    color: #2463eb;
    font-size: 25px;
    font-weight: 800;
}

#rbBondBreakerModal .rb-bb-question-text {
    margin: 0;
    color: #18232d;
    font-size: 19px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#rbBondBreakerModal .rb-bb-question-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

#rbBondBreakerModal .rb-bb-primary-btn,
#rbBondBreakerModal .rb-bb-secondary-btn {
    min-height: 43px;
    padding: 11px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

#rbBondBreakerModal .rb-bb-primary-btn {
    border: 1px solid #2463eb;
    background: #2463eb;
    color: #ffffff;
}

#rbBondBreakerModal .rb-bb-secondary-btn {
    border: 1px solid #dce4eb;
    background: #ffffff;
    color: #344553;
}

#rbBondBreakerModal .rb-bb-own-form {
    background: #ffffff;
}

#rbBondBreakerModal .rb-bb-form-title {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 800;
}

#rbBondBreakerModal .rb-bb-form-description {
    margin-bottom: 15px;
    color: #74818c;
    font-size: 12px;
    line-height: 1.5;
}

#rbBondBreakerModal .rb-bb-question-input {
    display: block;
    width: 100%;
    min-height: 115px;
    resize: vertical;
    padding: 13px;
    border: 1px solid #dce4eb;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #18232d;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}

#rbBondBreakerModal .rb-bb-question-input:focus {
    border-color: #2463eb;
    box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.12);
}

#rbBondBreakerModal .rb-bb-character-count {
    margin: 7px 0 15px;
    text-align: right;
    color: #74818c;
    font-size: 11px;
}

#rbBondBreakerModal .rb-bb-own-form .rb-bb-primary-btn {
    width: 100%;
}

#rbBondBreakerModal .rb-bb-live-badge {
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #e2f7ef;
    color: #12845c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

#rbBondBreakerModal .rb-bb-waiting {
    margin-top: 22px;
    padding: 17px 10px;
    text-align: center;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #e7edf2;
}

#rbBondBreakerModal .rb-bb-waiting strong,
#rbBondBreakerModal .rb-bb-waiting small {
    display: block;
}

#rbBondBreakerModal .rb-bb-waiting strong {
    margin: 10px 0 5px;
    font-size: 13px;
}

#rbBondBreakerModal .rb-bb-waiting small {
    color: #74818c;
    font-size: 11px;
}

#rbBondBreakerModal .rb-bb-waiting-icon {
    display: flex;
    justify-content: center;
    gap: 5px;
}

#rbBondBreakerModal .rb-bb-waiting-icon span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2463eb;
    animation: rbBbPulse 1s infinite alternate;
}

#rbBondBreakerModal .rb-bb-waiting-icon span:nth-child(2) {
    animation-delay: 0.2s;
}

#rbBondBreakerModal .rb-bb-waiting-icon span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes rbBbPulse {
    from {
        opacity: 0.35;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-4px);
    }
}

#rbBondBreakerModal button:focus-visible {
    outline: 3px solid rgba(36, 99, 235, 0.35);
    outline-offset: 2px;
}

@media (max-width: 380px) {
    #rbBondBreakerModal {
        padding: 7px;
    }

    #rbBondBreakerModal .rb-bb-panel {
        border-radius: 17px;
    }

    #rbBondBreakerModal .rb-bb-main {
        padding: 15px 12px 18px;
    }

    #rbBondBreakerModal .rb-bb-category {
        gap: 7px;
        padding: 10px 8px;
    }

    #rbBondBreakerModal .rb-bb-category-icon {
        flex-basis: 29px;
        width: 29px;
        height: 29px;
    }

    #rbBondBreakerModal .rb-bb-category-text strong {
        font-size: 12px;
    }
}

/* =====================================================
   RANDOMBONDS — BOND BREAKER ANSWER UI
===================================================== */

#rbBondBreakerModal .rb-bb-answer-form {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #e3e9ee;
    border-radius: 15px;
    background: #ffffff;
}

#rbBondBreakerModal .rb-bb-answer-label {
    margin-bottom: 9px;
    color: #687783;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

#rbBondBreakerModal .rb-bb-answer-form
.rb-bb-primary-btn {
    width: 100%;
}

#rbBondBreakerModal .rb-bb-your-answer {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #dceee7;
    border-radius: 14px;
    background: #f4fbf8;
}

#rbBondBreakerModal .rb-bb-answer-text {
    margin-top: 7px;
    color: #18232d;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#rbBondBreakerModal .rb-bb-asked-by {
    display: inline-flex;
    margin: 10px 0 12px;
    padding: 7px 11px;
    border-radius: 9px;
    background: #eaf2ff;
    color: #2463eb;
    font-size: 12px;
    font-weight: 750;
}

/* =====================================================
   RANDOMBONDS — SIDEBAR DIVIDER ABOVE PROFILE
===================================================== */

#appSidebar > .sidebar-divider {
    display: block !important;

    width: 100% !important;
    height: 1px !important;

    flex: 0 0 1px !important;

    margin: 17px 0 !important;
    padding: 0 !important;

    background: #D9E7E8 !important;
    opacity: 1 !important;
}

/* =====================================================
   REPORT CENTER — STATUS CONTROLS
===================================================== */

.rb-report-status-controls {
    margin-top: 14px;
    padding: 13px;
    border-radius: 13px;
    background: #F7F9FC;
    border: 1px solid rgba(24, 34, 53, 0.07);
}

.rb-report-status-controls-title {
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 800;
    color: #5D6675;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rb-report-status-controls-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rb-report-status-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(10, 75, 166, 0.16);
    background: #FFFFFF;
    color: #0A4BA6;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        opacity 160ms ease;
}

.rb-report-status-action:hover {
    background: rgba(10, 75, 166, 0.06);
    border-color: rgba(10, 75, 166, 0.28);
}

.rb-report-status-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rb-report-status-action.rb-report-status-dismiss {
    color: #B42318;
    border-color: rgba(180, 35, 24, 0.16);
}

.rb-report-status-action.rb-report-status-dismiss:hover {
    background: rgba(180, 35, 24, 0.05);
    border-color: rgba(180, 35, 24, 0.26);
}

.rb-report-status-action:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* =========================================================
   RANDOMBONDS — OWNER BANNED ACCOUNTS
   Dark / red security treatment with restrained accents.
========================================================= */

.rb-banned-page-header {
    align-items: flex-start;
}

.rb-banned-eyebrow {
    color: #B42318;
}

.rb-banned-refresh-button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 15px;
    border: 1px solid rgba(180, 35, 24, 0.22);
    border-radius: 12px;
    background: #FFFFFF;
    color: #8E1B14;
    font-size: 13px;
    font-weight: 800;
    transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.rb-banned-refresh-button:hover {
    background: #FFF4F2;
    border-color: rgba(180, 35, 24, 0.4);
}

.rb-banned-refresh-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.rb-banned-status {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #E1E6EB;
    border-radius: 12px;
    background: #FFFFFF;
    color: #485665;
    font-size: 13px;
    line-height: 1.5;
}

.rb-banned-status[data-state="loading"] {
    border-color: #D8DEE6;
    background: #F8FAFC;
}

.rb-banned-status[data-state="success"] {
    border-color: rgba(22, 101, 52, 0.18);
    background: #F3FBF5;
    color: #166534;
}

.rb-banned-status[data-state="error"] {
    border-color: rgba(180, 35, 24, 0.22);
    background: #FFF5F4;
    color: #8E1B14;
}

.rb-banned-list {
    display: grid;
    gap: 12px;
}

.rb-banned-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border: 1px solid #E2E6EB;
    border-left: 4px solid #B42318;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.045);
}

.rb-banned-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    min-width: 0;
}

.rb-banned-detail {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rb-banned-detail-label {
    color: #697586;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.09em;
}

.rb-banned-detail-value {
    color: #111827;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.rb-banned-account-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.rb-banned-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    min-width: 142px;
}

.rb-banned-active-label {
    align-self: flex-end;
    color: #B42318;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.rb-banned-unban-button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #B42318;
    border-radius: 11px;
    background: #B42318;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 850;
    transition: background 160ms ease, opacity 160ms ease;
}

.rb-banned-unban-button:hover {
    background: #8E1B14;
}

.rb-banned-unban-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.rb-banned-empty {
    padding: 28px 18px;
    border: 1px dashed #CAD1DA;
    border-radius: 15px;
    background: #FFFFFF;
    color: #697586;
    text-align: center;
    font-size: 14px;
}

#bannedAccountsPage[aria-busy="true"] .rb-banned-list {
    opacity: 0.78;
}

@media (max-width: 680px) {
    .rb-banned-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .rb-banned-refresh-button {
        width: 100%;
    }

    .rb-banned-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 15px;
    }

    .rb-banned-card-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .rb-banned-card-actions {
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .rb-banned-active-label {
        align-self: center;
    }

    .rb-banned-unban-button {
        min-width: 130px;
    }
}


/* =========================================================
   RANDOMBONDS — PROFILE POPUP STAFF ACTIONS
========================================================= */

.rb-profile-moderation-section {
    margin-top: 14px;
    padding-top: 15px;
    border-top: 1px solid rgba(25, 48, 74, 0.12);
}

.rb-profile-moderation-section[hidden],
.rb-profile-moderation-section.hidden {
    display: none !important;
}

.rb-profile-moderation-heading {
    margin: 0 0 10px;
    color: #637487;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.rb-user-profile-moderation-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.rb-user-profile-moderation-actions .rb-profile-action.danger {
    color: #b42318;
    background: #fff6f5;
    border-color: rgba(180, 35, 24, 0.16);
}

.rb-public-message-action[data-rb-message-action="kick"] {
    color: #9a5410;
}

.rb-public-message-action[data-rb-message-action="ban"] {
    color: #b42318;
}



/* =========================================================
   RANDOMBONDS — QUICK PROFILE MODERATION ACTIONS
   Blue / slate / coral only; SVG icons, no emoji glyphs.
========================================================= */
.rb-public-chat-quick-action .rb-quick-icon,
.rb-quick-moderation-button .rb-quick-icon,
.rb-profile-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
}

.rb-public-chat-quick-action .rb-quick-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    stroke: currentColor;
}

.rb-public-chat-quick-action span:last-child {
    line-height: 1.2;
}

.rb-quick-moderation-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(37, 99, 235, 0.14);
}

.rb-quick-moderation-panel.hidden,
.rb-quick-moderation-panel[hidden] {
    display: none !important;
}

.rb-quick-moderation-button {
    min-width: 0;
    min-height: 58px;
    padding: 8px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 13px;
    background: #F3F7FC;
    color: #1D4ED8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
    touch-action: manipulation;
}

.rb-quick-moderation-button svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: currentColor;
}

.rb-quick-moderation-button.is-kick {
    color: #A85A10;
    background: #FFF8ED;
    border-color: rgba(168, 90, 16, 0.18);
}

.rb-quick-moderation-button.is-ban {
    color: #B42318;
    background: #FFF5F4;
    border-color: rgba(180, 35, 24, 0.18);
}

.rb-quick-moderation-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.rb-public-message-action[data-rb-message-action="mute"] .rb-public-action-icon,
.rb-public-message-action[data-rb-message-action="kick"] .rb-public-action-icon,
.rb-public-message-action[data-rb-message-action="ban"] .rb-public-action-icon {
    color: currentColor;
}

.rb-public-message-action[data-rb-message-action="kick"] {
    color: #A85A10;
}

.rb-public-message-action[data-rb-message-action="ban"] {
    color: #B42318;
}

.rb-profile-moderation-section .rb-profile-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.rb-profile-action-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.rb-mute-dialog-unmute {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.rb-mute-dialog-unmute svg {
    width: 20px;
    height: 20px;
    display: block;
}

@media (max-width: 390px) {
    .rb-quick-moderation-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .rb-quick-moderation-button {
        font-size: 10px;
        padding-inline: 3px;
    }
}

.rb-quick-moderation-loading {
    grid-column: 1 / -1;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 11px;
    background: #F3F7FC;
    color: #53666C;
    font-size: 12px;
    font-weight: 750;
}



/* =========================================================
   RANDOMBONDS — PREMIUM PUBLIC MODERATION MENU
   Strong contrast • Blue accents • No emoji
========================================================= */

.rb-public-message-action-dropdown {
    min-width: 270px !important;
    padding: 10px !important;
    gap: 5px !important;

    border: 1px solid #D7E5F5 !important;
    border-radius: 23px !important;

    background: rgba(255, 255, 255, 0.98) !important;

    box-shadow:
        0 22px 55px rgba(14, 45, 79, 0.17),
        0 5px 15px rgba(14, 45, 79, 0.07) !important;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.rb-public-message-action {
    min-height: 56px !important;
    height: auto !important;
    padding: 7px 10px !important;
    gap: 13px !important;

    border-radius: 15px !important;

    color: #182C40 !important;
    font-size: 14px !important;
    font-weight: 750 !important;

    background: transparent !important;

    transition:
        background 160ms ease,
        transform 160ms ease !important;
}

/* Icon tile */

.rb-public-action-icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid #D8E7F8 !important;
    border-radius: 12px !important;

    background:
        linear-gradient(145deg, #FFFFFF, #EAF3FF) !important;

    box-shadow:
        inset 0 1px 0 #FFFFFF,
        0 2px 5px rgba(10, 75, 166, 0.06) !important;

    line-height: 0 !important;
}

.rb-public-action-icon svg {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    overflow: visible !important;
}

/* Ignore — blue and coral */

.rb-public-message-action[data-rb-message-action="ignore"]
.rb-public-action-icon {
    background: linear-gradient(145deg, #FFFFFF, #E9F3FF) !important;
    border-color: #C9DFF8 !important;
}

/* Warning — warm amber */

.rb-public-message-action[data-rb-message-action="warn"]
.rb-public-action-icon {
    background: linear-gradient(145deg, #FFFFFF, #FFF0CD) !important;
    border-color: #F1D8A4 !important;
}

/* Mute — RandomBonds blue */

.rb-public-message-action[data-rb-message-action="mute"]
.rb-public-action-icon,
.rb-public-message-action[data-rb-message-action="unmute"]
.rb-public-action-icon {
    background: linear-gradient(145deg, #FFFFFF, #DDEEFF) !important;
    border-color: #B9D7FA !important;
}

/* Kick — amber */

.rb-public-message-action[data-rb-message-action="kick"] {
    color: #8D4C17 !important;
}

.rb-public-message-action[data-rb-message-action="kick"]
.rb-public-action-icon {
    background: linear-gradient(145deg, #FFFFFF, #FFF0D8) !important;
    border-color: #EBCB98 !important;
}

/* Ban — strong red */

.rb-public-message-action[data-rb-message-action="ban"] {
    color: #A12620 !important;
}

.rb-public-message-action[data-rb-message-action="ban"]
.rb-public-action-icon {
    background: linear-gradient(145deg, #FFFFFF, #FDE6E3) !important;
    border-color: #F0C4C0 !important;
}

/* Delete — slate and blue */

.rb-public-message-action[data-rb-message-action="delete"]
.rb-public-action-icon {
    background: linear-gradient(145deg, #FFFFFF, #E8F0FA) !important;
    border-color: #D2E0F1 !important;
}

/* Touch and hover */

.rb-public-message-action:hover {
    background: #F1F6FD !important;
    transform: translateX(1px) !important;
}

.rb-public-message-action:active {
    transform: scale(0.99) !important;
}

/* Small screens */

@media (max-width: 390px) {
    .rb-public-message-action-dropdown {
        min-width: 255px !important;
        max-width: calc(100vw - 24px) !important;
    }

    .rb-public-message-action {
        min-height: 53px !important;
        font-size: 13px !important;
    }
}

/* =========================================================
   RANDOMBONDS — PROFILE STAFF ACTIONS
   Aligned icon tiles • Consistent sizing • Blue accents
========================================================= */

.rb-profile-moderation-section
.rb-user-profile-moderation-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 11px !important;
}

/* Shared button layout */

.rb-profile-moderation-section
.rb-user-profile-moderation-actions
.rb-profile-action {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 13px !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 66px !important;
    padding: 11px 14px !important;

    border: 1px solid #DFE7F1 !important;
    border-left: 4px solid #2770D6 !important;
    border-radius: 18px !important;

    background: linear-gradient(
        110deg,
        #FFFFFF,
        #F5F9FF
    ) !important;

    color: #182C40 !important;
    text-align: left !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;

    box-shadow:
        0 3px 10px rgba(16, 48, 82, 0.04),
        inset 0 1px 0 #FFFFFF !important;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease !important;
}

/* Properly sized icon tiles */

.rb-profile-moderation-section
.rb-profile-action-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;

    border: 1px solid #C9DFF8 !important;
    border-radius: 13px !important;

    background: linear-gradient(
        145deg,
        #FFFFFF,
        #E5F1FF
    ) !important;

    box-shadow:
        inset 0 1px 0 #FFFFFF,
        0 3px 7px rgba(10, 75, 166, 0.05) !important;

    line-height: 0 !important;
}

.rb-profile-moderation-section
.rb-profile-action-icon svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    max-width: none !important;
    flex: 0 0 23px !important;
    overflow: visible !important;
}

/* MUTE — RandomBonds blue */

.rb-profile-moderation-section
.rb-profile-action[data-profile-action="mute"] {
    border-color: #D5E4F5 !important;
    border-left-color: #0A4BA6 !important;

    color: #174A87 !important;

    background: linear-gradient(
        110deg,
        #FFFFFF,
        #F0F6FF
    ) !important;
}

/* KICK — warm amber, not red */

.rb-profile-moderation-section
.rb-profile-action[data-profile-action="kick"] {
    border-color: #F0DDBD !important;
    border-left-color: #B9681F !important;

    color: #8D4C17 !important;

    background: linear-gradient(
        110deg,
        #FFFFFF,
        #FFF7E9
    ) !important;
}

.rb-profile-moderation-section
.rb-profile-action[data-profile-action="kick"]
.rb-profile-action-icon {
    border-color: #ECD2A9 !important;

    background: linear-gradient(
        145deg,
        #FFFFFF,
        #FFEBCB
    ) !important;
}

/* BAN — clear red warning */

.rb-profile-moderation-section
.rb-profile-action[data-profile-action="ban"] {
    border-color: #F0D4D2 !important;
    border-left-color: #B42318 !important;

    color: #A12620 !important;

    background: linear-gradient(
        110deg,
        #FFFFFF,
        #FFF2F0
    ) !important;
}

.rb-profile-moderation-section
.rb-profile-action[data-profile-action="ban"]
.rb-profile-action-icon {
    border-color: #F0CBC7 !important;

    background: linear-gradient(
        145deg,
        #FFFFFF,
        #FDE6E3
    ) !important;
}

/* Touch feedback */

.rb-profile-moderation-section
.rb-profile-action:hover {
    transform: translateY(-1px) !important;

    box-shadow:
        0 8px 18px rgba(16, 48, 82, 0.075) !important;
}

.rb-profile-moderation-section
.rb-profile-action:active {
    transform: scale(0.99) !important;
}

.rb-profile-moderation-section
.rb-profile-action:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25) !important;
    outline-offset: 2px !important;
}

@media (max-width: 390px) {
    .rb-profile-moderation-section
    .rb-user-profile-moderation-actions
    .rb-profile-action {
        min-height: 62px !important;
        padding: 9px 11px !important;
        gap: 11px !important;
        font-size: 13px !important;
    }

    .rb-profile-moderation-section
    .rb-profile-action-icon {
        flex-basis: 37px !important;
        width: 37px !important;
        height: 37px !important;
    }
}



/* =========================================================
   RANDOMBONDS — MOBILE COMFORT PASS
   Compact typography, balanced spacing and phone-safe controls
========================================================= */

@media (max-width: 680px) {
    :root {
        --rb-header-height: 56px;
        --rb-radius-md: 14px;
        --rb-radius-lg: 18px;
        --rb-radius-xl: 22px;
    }

    html {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 15px;
        line-height: 1.45;
        overflow-x: hidden;
    }

    #app,
    .app,
    .main-app,
    .app-layout,
    .screen {
        min-width: 0;
        max-width: 100%;
    }

    .app-header {
        height: var(--rb-header-height) !important;
        padding-left: max(10px, env(safe-area-inset-left)) !important;
        padding-right: max(10px, env(safe-area-inset-right)) !important;
    }

    .app-layout {
        padding-top: var(--rb-header-height) !important;
    }

    .header-left {
        gap: 8px;
        min-width: 0;
    }

    .header-actions {
        gap: 2px;
    }

    .app-brand {
        font-size: 14px;
    }

    .icon-button,
    .header-profile-button {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

    .icon-button svg {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .header-avatar {
        width: 31px;
        height: 31px;
    }

    .page-container {
        min-height: calc(100dvh - var(--rb-header-height));
        padding: 16px 12px 24px !important;
        overflow-x: hidden;
    }

    .page {
        min-width: 0;
    }

    .page-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    #app h1:not(.rb-intro-title) {
        font-size: clamp(23px, 5.8vw, 27px) !important;
        line-height: 1.14 !important;
        letter-spacing: -0.6px !important;
        overflow-wrap: anywhere;
    }

    #app h2 {
        font-size: clamp(18px, 4.8vw, 22px) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.3px;
    }

    #app h3 {
        font-size: clamp(16px, 4.2vw, 19px) !important;
        line-height: 1.25;
    }

    #app .page-header p,
    #app .home-hero p,
    #app .auth-heading p,
    #app .setup-card > p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

/* RANDOMBONDS — MOBILE AUTH SCREEN ALIGNMENT */
#app .auth-screen {
    align-items: center;
    justify-content: center;
    min-height: 100dvh;

    padding:
        clamp(24px, 5vh, 72px)
        max(12px, env(safe-area-inset-right))
        clamp(24px, 5vh, 72px)
        max(12px, env(safe-area-inset-left)) !important;
}

/* Preserve profile setup's existing layout */
#app .profile-setup-screen {
    align-items: flex-start;
    justify-content: center;

    padding:
        16px
        max(12px, env(safe-area-inset-right))
        max(18px, env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left)) !important;
}

/* Narrower, more balanced login and authentication cards */
#app .auth-card {
    width: min(100%, 390px) !important;
    max-width: 100%;
    padding: 26px 24px !important;
    border-radius: 22px !important;
}

/* Keep profile setup sizing unchanged */
#app .setup-card {
    width: min(100%, 430px) !important;
    padding: 22px 18px !important;
    border-radius: 22px !important;
}


    #app .auth-brand {
        gap: 10px;
        margin-bottom: 22px;
    }

    #app .auth-brand strong {
        font-size: 16px;
    }

    #app .auth-heading {
        margin-bottom: 18px;
    }

    #app .auth-heading h1 {
        font-size: clamp(24px, 6vw, 27px) !important;
        line-height: 1.13 !important;
        letter-spacing: -0.65px !important;
    }

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

    #app .form-group label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    #app .form-group input,
    #app .form-group textarea,
    #app .form-group select {
        min-width: 0;
        max-width: 100%;
        padding: 10px 12px !important;
        border-radius: 11px;
        font-size: 15px !important;
    }

    #app .form-group input {
        min-height: 44px;
    }

    #app .primary-button,
    #app .secondary-button,
    #app .guest-button {
        min-height: 46px !important;
        padding: 10px 14px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
    }

    #app .auth-switch {
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 18px;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
    }

    #app .text-button {
        font-size: 13px;
    }

    #app .home-hero {
        margin-bottom: 16px;
        padding: 20px 16px !important;
        border-radius: 20px;
    }

    #app .feature-card {
        min-height: 102px;
        padding: 14px !important;
        border-radius: 16px;
    }

    #app .rb-discover-search-card {
        padding: 17px 14px !important;
        border-radius: 20px !important;
    }

    #app .rb-discover-section {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    #app .rb-discover-member-card {
        padding: 12px 10px !important;
        border-radius: 17px;
    }

    #app .rb-members-presence-card {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    #rbGuestSetup {
        padding: 12px !important;
    }

    #rbGuestSetup .rb-guest-card {
        width: min(100%, 430px) !important;
        max-height: calc(100dvh - 24px);
        padding: 20px 16px !important;
        border-radius: 20px !important;
    }

    #rbGuestSetup .rb-guest-title {
        font-size: 24px !important;
        line-height: 1.16;
    }

    #rbGuestSetup .rb-guest-subtitle {
        margin-bottom: 18px;
        font-size: 14px !important;
    }

    #rbGuestSetup .rb-guest-input {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 15px;
    }

    #rbGuestSetup .rb-gender-button {
        min-height: 48px;
        border-radius: 13px;
        font-size: 14px !important;
    }

    #app .public-chat-screen > .page-header {
        padding: 10px max(96px, env(safe-area-inset-right))
            10px max(12px, env(safe-area-inset-left)) !important;
    }

    #app .public-chat-screen > .page-header h1 {
        font-size: 23px !important;
        line-height: 1.18 !important;
    }

    #app .public-chat-screen > .page-header p {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    #app .public-chat-header-actions {
        top: 10px;
        right: max(10px, env(safe-area-inset-right));
        gap: 6px;
    }

    #app .public-chat-header-button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
        font-size: 16px;
    }

    #app .public-messages {
        padding: 10px max(10px, env(safe-area-inset-right))
            10px max(10px, env(safe-area-inset-left));
    }

    #app .public-message {
        gap: 8px;
        margin-bottom: 10px;
    }

    #app .public-avatar {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    #app .public-message-content {
        max-width: calc(100% - 40px) !important;
    }

    #app .public-message-meta {
        flex-wrap: wrap !important;
        gap: 5px;
        margin-bottom: 3px;
    }

    #app .public-message-username,
    #app .public-username-clickable {
        font-size: 14px !important;
    }

    #app .public-message-bubble,
    #app .public-message-text {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    #app .public-message-bubble {
        padding: 8px 10px !important;
    }

    #app .public-composer {
        padding-top: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    #app .public-typing-area {
        gap: 6px;
    }

    #app .public-add-button,
    #app .public-send-button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    #app .public-add-button {
        font-size: 20px;
    }

    #app .public-send-button {
        font-size: 16px;
    }

    #app .public-message-input {
        height: 38px;
        padding: 0 11px;
        font-size: 15px;
    }

    #app .public-character-count {
        top: -19px;
        font-size: 10px;
    }

    #announcementsContent .rb-announcement-form,
    #announcementsContent .rb-announcement-card {
        padding: 14px !important;
        border-radius: 17px;
    }

    #app .rb-post-composer-modal {
        width: calc(100vw - 20px) !important;
        max-width: 520px;
        max-height: calc(100dvh - 20px) !important;
        overflow-y: auto;
        padding: 16px !important;
        border-radius: 19px !important;
    }

    #app .rb-profile-editor-modal,
    #app .rb-photo-studio-modal {
        width: calc(100vw - 20px);
        max-width: 520px;
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
    }
}

@media (max-width: 380px) {
    #app .page-container {
        padding: 14px 10px 20px !important;
    }

    #app .auth-card,
    #app .setup-card {
        padding: 18px 14px !important;
    }

    #app .public-chat-screen > .page-header {
        padding-right: max(90px, env(safe-area-inset-right)) !important;
    }

    #app .public-chat-header-actions {
        gap: 4px;
    }

    #app .public-chat-header-button {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

@media (min-width: 681px) and (max-width: 1000px) {
    .page-container {
        padding: 20px !important;
    }

    #app h1:not(.rb-intro-title) {
        font-size: clamp(27px, 3.4vw, 32px) !important;
        line-height: 1.16 !important;
    }

    #app .home-hero {
        padding: 26px !important;
    }

    #app .auth-card,
    #app .setup-card {
        padding: 28px !important;
    }
}


/* RANDOMBONDS — LOGIN-ONLY COPYRIGHT FOOTER */
#loginScreen {
    flex-direction: column;
    gap: 12px;
}

#loginScreen .auth-card {
    margin: auto 0 0;
}

#loginScreen .rb-site-footer {
    display: block;
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* RANDOMBONDS — COMPACT COPYRIGHT FOOTER */

.rb-site-footer {
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px 18px;
    margin-top: 12px;

    background: transparent;
    color: var(--rb-text-muted, #7b8794);

    text-align: center;
}

.rb-site-footer__line {
    width: 100%;
    max-width: 1400px;
    height: 1px;

    margin: 0 auto 12px;

    background: var(--rb-border, #d9e2ec);
}

.rb-site-footer p {
    margin: 0;

    font-size: 12px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .rb-site-footer {
        padding: 12px 14px 16px;
        margin-top: 8px;
    }

    .rb-site-footer__line {
        margin-bottom: 10px;
    }

    .rb-site-footer p {
        font-size: 11px;
    }
}


/* =========================================
   RANDOMBONDS — VIBI OWNER NOTIFICATION
========================================= */

#rbOwnerBroadcastToast {
    position: fixed;
    z-index: 12020;
    top: calc(var(--rb-header-height, 68px) + 10px + env(safe-area-inset-top, 0px));
    left: 50%;
    width: min(440px, calc(100vw - 24px));
    display: grid;
    gap: 8px;
    padding: 13px 14px 12px;
    border: 1px solid #C8DCF8;
    border-left: 4px solid #2563EB;
    border-radius: 17px;
    background: linear-gradient(135deg, #FFFFFF, #F1F7FF);
    color: #102027;
    box-shadow: 0 16px 42px rgba(10, 75, 166, .20);
    transform: translateX(-50%);
    animation: rbOwnerToastIn 420ms
        cubic-bezier(.2, .85, .25, 1) both;
}

#rbOwnerBroadcastToast.is-leaving {
    animation: rbOwnerToastOut 230ms ease-in both;
}

.rb-owner-toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rb-owner-toast-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border: 2px solid #C8DCF8;
    border-radius: 50%;
    background: #FFFFFF;
}

.rb-owner-toast-identity {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rb-owner-toast-name {
    font-size: 14px;
    font-weight: 850;
    color: #102027;
}

.rb-owner-toast-label {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    color: #0A4BA6;
}

.rb-owner-toast-close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #D8E5F5;
    border-radius: 9px;
    background: #FFFFFF;
    color: #0A4BA6;
}

.rb-owner-toast-close svg {
    width: 15px;
    height: 15px;
}

.rb-owner-toast-title {
    margin: 1px 0 0 50px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rb-owner-toast-message {
    margin-left: 50px;
    color: #52666F;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.rb-owner-toast-hint {
    margin-left: 50px;
    color: #0A4BA6;
    font-size: 10px;
    font-weight: 700;
}

/* Subtle blue glow and scale-in for the bell card */

.rb-notif-row.has-owner-broadcast-burst {
    position: relative;
    isolation: isolate;
    background: linear-gradient(
        110deg,
        #F8FBFF,
        #EAF3FF 54%,
        #FFFFFF
    );
    animation: rbOwnerBroadcastCard 1800ms
        cubic-bezier(.2, .8, .25, 1) both;
}

.rb-notif-row.has-owner-broadcast-burst::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: -1px;
    border: 1px solid rgba(37, 99, 235, .46);
    border-radius: 14px;
    pointer-events: none;
    animation: rbOwnerBroadcastRing 1700ms ease-out both;
}

.rb-notif-row.has-owner-broadcast-burst > * {
    position: relative;
    z-index: 2;
}

/* Toast entrance and exit */

@keyframes rbOwnerToastIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -15px) scale(.985);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, 2px) scale(1.005);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes rbOwnerToastOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -8px) scale(.99);
    }
}

/* Bell-card entrance */

@keyframes rbOwnerBroadcastCard {
    0% {
        transform: translateY(5px) scale(.99);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
    32% {
        transform: translateY(0) scale(1.008);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .16);
    }
    72% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 0 9px rgba(37, 99, 235, 0);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: none;
    }
}

@keyframes rbOwnerBroadcastRing {
    0% {
        opacity: 0;
        transform: scale(.99);
    }
    28% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.025);
    }
}

/* Mobile sizing */

@media (max-width: 520px) {
    #rbOwnerBroadcastToast {
        top: calc(var(--rb-header-height, 68px) + 8px + env(safe-area-inset-top, 0px));
        padding: 11px 12px;
        border-radius: 15px;
    }

    .rb-owner-toast-title,
    .rb-owner-toast-message,
    .rb-owner-toast-hint {
        margin-left: 0;
    }
}

/* Respect reduced-motion settings */

@media (prefers-reduced-motion: reduce) {
    #rbOwnerBroadcastToast,
    #rbOwnerBroadcastToast.is-leaving,
    .rb-notif-row.has-owner-broadcast-burst,
    .rb-notif-row.has-owner-broadcast-burst::before {
        animation: none !important;
    }
}


/* =========================================================
   RANDOMBONDS SETTINGS — PREMIUM BLUE WORKSPACE
========================================================= */

.rb-settings-workspace {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    width: 100%;
    margin-top: 18px;
}

.rb-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--rb-border);
    border-radius: 20px;
    background: var(--rb-surface);
    box-shadow: 0 8px 28px rgba(15, 45, 85, 0.05);
}

.rb-settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 66px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--rb-text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.rb-settings-nav-item:hover {
    background: var(--rb-surface-soft);
    border-color: var(--rb-border);
}

.rb-settings-nav-item:active {
    transform: scale(0.99);
}

.rb-settings-nav-item.is-active {
    background: rgba(37, 99, 235, 0.09);
    border-color: rgba(37, 99, 235, 0.24);
}

.rb-settings-nav-item > svg {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: none;
    stroke: #2563EB;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rb-settings-nav-item > span {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rb-settings-nav-item strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.rb-settings-nav-item small {
    color: var(--rb-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.rb-settings-panel-stack {
    min-width: 0;
}

.rb-settings-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--rb-border);
    border-radius: 22px;
    background: var(--rb-surface);
    box-shadow: 0 8px 28px rgba(15, 45, 85, 0.05);
    animation: rbSettingsPanelIn 220ms ease both;
}

.rb-settings-panel[hidden] {
    display: none !important;
}

.rb-settings-panel-heading {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rb-border);
}

.rb-settings-panel-heading .eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #2563EB;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.rb-settings-panel-heading h2 {
    margin: 0;
    color: var(--rb-text);
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.25;
}

.rb-settings-panel-heading p {
    margin: 9px 0 0;
    color: var(--rb-text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.rb-settings-panel .settings-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.rb-settings-nav-item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

@keyframes rbSettingsPanelIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET AND MOBILE */

@media (max-width: 850px) {
    .rb-settings-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .rb-settings-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 9px;
        border-radius: 17px;
    }

    .rb-settings-nav-item {
        min-height: 62px;
        padding: 10px;
        gap: 9px;
    }

    .rb-settings-nav-item > svg {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .rb-settings-nav-item strong {
        font-size: 12px;
    }

    .rb-settings-nav-item small {
        font-size: 10px;
    }

    .rb-settings-panel {
        padding: 19px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .rb-settings-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-settings-nav-item {
        min-height: 58px;
    }

    .rb-settings-panel {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb-settings-panel {
        animation: none;
    }

    .rb-settings-nav-item {
        transition: none;
    }
}


/* =========================================================
   RANDOMBONDS — CHAT & APPEARANCE
   Premium responsive preferences UI
========================================================= */

#rbSettingsAppearanceContent.rb-chat-appearance-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 4px 0 12px;
}

/* PREFERENCE CARDS */

.rb-chat-appearance-settings .rb-ca-card {
    position: relative;
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--rb-border, #D9E7E8);
    border-radius: 20px;
    background: var(--rb-surface, #FFFFFF);
    box-shadow: var(--rb-shadow-sm, 0 3px 14px rgba(16,32,39,.05));
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.rb-chat-appearance-settings .rb-ca-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(
        90deg,
        var(--rb-primary, #0A4BA6),
        var(--rb-info, #25A9D6)
    );
    opacity: .85;
}

/* SECTION HEADINGS */

.rb-chat-appearance-settings .rb-ca-card-heading {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--rb-border, #D9E7E8);
}

.rb-chat-appearance-settings .rb-ca-card-heading h3 {
    margin: 0;
    color: var(--rb-text, #102027);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.25px;
}

.rb-chat-appearance-settings .rb-ca-card-heading p {
    margin: 0;
    color: var(--rb-text-soft, #53666C);
    font-size: 13px;
    line-height: 1.6;
}

/* LABELS AND SELECT MENUS */

.rb-chat-appearance-settings .rb-ca-field {
    display: grid;
    gap: 9px;
    width: 100%;
    min-width: 0;
    color: var(--rb-text, #102027);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.rb-chat-appearance-settings .rb-ca-field > span {
    display: block;
}

.rb-chat-appearance-settings .rb-ca-field select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 42px 11px 14px;
    border: 1px solid var(--rb-border, #D9E7E8);
    border-radius: 12px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--rb-surface-soft, #F7F9FB);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2353666C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    color: var(--rb-text, #102027);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.rb-chat-appearance-settings .rb-ca-field select:focus {
    border-color: var(--rb-primary, #0A4BA6);
    outline: none;
    box-shadow: 0 0 0 4px rgba(10,75,166,.10);
}

/* SETTING TOGGLES */

.rb-chat-appearance-settings .rb-ca-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--rb-border, #D9E7E8);
    border-radius: 14px;
    background: var(--rb-surface-soft, #F7F9FB);
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease;
}

.rb-chat-appearance-settings .rb-ca-toggle:focus-within {
    border-color: var(--rb-primary, #0A4BA6);
}

.rb-chat-appearance-settings .rb-ca-toggle > span {
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    min-width: 0;
}

.rb-chat-appearance-settings .rb-ca-toggle strong {
    color: var(--rb-text, #102027);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.rb-chat-appearance-settings .rb-ca-toggle small {
    color: var(--rb-text-soft, #53666C);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.55;
}

/* CUSTOM SWITCH */

.rb-chat-appearance-settings .rb-ca-toggle input[type="checkbox"] {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 26px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #B9C8CE;
    border-radius: 999px;
    background: #DCE4E8;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.rb-chat-appearance-settings .rb-ca-toggle input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(16,32,39,.20);
    transition: transform 180ms ease;
}

.rb-chat-appearance-settings .rb-ca-toggle input[type="checkbox"]:checked {
    border-color: var(--rb-primary, #0A4BA6);
    background: var(--rb-primary, #0A4BA6);
}

.rb-chat-appearance-settings .rb-ca-toggle input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}

.rb-chat-appearance-settings .rb-ca-toggle input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(10,75,166,.22);
    outline-offset: 3px;
}

/* RESET BUTTON */

.rb-chat-appearance-settings .rb-ca-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--rb-border, #D9E7E8);
    border-radius: 11px;
    background: var(--rb-surface, #FFFFFF);
    color: var(--rb-primary, #0A4BA6);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.rb-chat-appearance-settings .rb-ca-reset:hover {
    border-color: var(--rb-primary, #0A4BA6);
    background: #EDF4FF;
}

.rb-chat-appearance-settings .rb-ca-reset:focus-visible {
    outline: 3px solid rgba(10,75,166,.22);
    outline-offset: 3px;
}

/* SAVE STATUS */

.rb-chat-appearance-settings .rb-ca-save-status {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--rb-border, #D9E7E8);
    border-radius: 12px;
    background: var(--rb-surface, #FFFFFF);
    color: var(--rb-text-soft, #53666C);
    font-size: 12px;
    line-height: 1.5;
}

/* MOBILE */

@media (max-width: 480px) {
    #rbSettingsAppearanceContent.rb-chat-appearance-settings {
        gap: 13px;
    }

    .rb-chat-appearance-settings .rb-ca-card {
        gap: 15px;
        padding: 17px 14px;
        border-radius: 17px;
    }

    .rb-chat-appearance-settings .rb-ca-card::before {
        left: 14px;
        right: 14px;
    }

    .rb-chat-appearance-settings .rb-ca-card-heading h3 {
        font-size: 16px;
    }

    .rb-chat-appearance-settings .rb-ca-toggle {
        gap: 10px;
        padding: 12px 10px;
    }

    .rb-chat-appearance-settings .rb-ca-toggle strong {
        font-size: 12px;
    }

    .rb-chat-appearance-settings .rb-ca-toggle small {
        font-size: 11px;
    }
}

/* RESPECT REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .rb-chat-appearance-settings *,
    .rb-chat-appearance-settings *::before,
    .rb-chat-appearance-settings *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}



/* =========================================================
   RANDOMBONDS — CHAT APPEARANCE PREFERENCE APPLICATION
========================================================= */

/* TEXT SIZE — target the actual rendered message text */
#app .public-messages.rb-ca-font-small .public-message-text,
#app .public-messages.rb-ca-font-small .public-message-bubble {
    font-size: 13px !important;
}

#app .public-messages.rb-ca-font-medium .public-message-text,
#app .public-messages.rb-ca-font-medium .public-message-bubble {
    font-size: 15px !important;
}

#app .public-messages.rb-ca-font-large .public-message-text,
#app .public-messages.rb-ca-font-large .public-message-bubble {
    font-size: 20px !important;
}

/* MESSAGE SPACING */
#app .public-messages.rb-ca-density-compact .public-message {
    margin-bottom: 5px !important;
}

#app .public-messages.rb-ca-density-comfortable .public-message {
    margin-bottom: 13px !important;
}

#app .public-messages.rb-ca-density-spacious .public-message {
    margin-bottom: 22px !important;
}

/* LINE SPACING — target message text, not just its parent */
#app .public-messages.rb-ca-line-compact .public-message-text,
#app .public-messages.rb-ca-line-compact .public-message-bubble {
    line-height: 1.35 !important;
}

#app .public-messages.rb-ca-line-comfortable .public-message-text,
#app .public-messages.rb-ca-line-comfortable .public-message-bubble {
    line-height: 1.6 !important;
}

#app .public-messages.rb-ca-line-relaxed .public-message-text,
#app .public-messages.rb-ca-line-relaxed .public-message-bubble {
    line-height: 1.9 !important;
}


/* =========================================================
   RANDOMBONDS — REDUCE PUBLIC CHAT ANIMATIONS
========================================================= */

#app .public-messages.rb-ca-reduce-motion *,
#app .public-messages.rb-ca-reduce-motion *::before,
#app .public-messages.rb-ca-reduce-motion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* Prevent animated message entrances */
#app .public-messages.rb-ca-reduce-motion .public-message {
    animation: none !important;
    transition: none !important;
}

/* Prevent animated reply highlights inside public messages */
#app .public-messages.rb-ca-reduce-motion .public-message-highlight,
#app .public-messages.rb-ca-reduce-motion .rb-message-highlight {
    animation: none !important;
    transition: none !important;
}
/* =========================================================
   RANDOMBONDS — SHOW / HIDE PUBLIC MESSAGE TIMESTAMPS
========================================================= */

#app .public-messages.rb-ca-hide-timestamps .public-message-time {
    display: none !important;
}
/* =========================================================
   RANDOMBONDS — CHAT APPEARANCE BACKGROUNDS
   Applies only to the public conversation area.
========================================================= */

#app .public-messages.rb-ca-bg-default {
    background: var(--rb-surface);
}

#app .public-messages.rb-ca-bg-soft {
    background: #f5f7f8;
}

#app .public-messages.rb-ca-bg-cool {
    background: #edf3f7;
}

#app .public-messages.rb-ca-bg-plain {
    background: #ffffff;
}

/* =========================================================
   RANDOMBONDS — CHAT APPEARANCE: BUBBLE SHAPE
   Public chat only
========================================================= */

/* Rounded — smooth corners on every side */
#app .public-messages.rb-ca-bubble-rounded .public-message-bubble {
    border-radius: 20px !important;
}

/* Soft — gently asymmetric message bubble */
#app .public-messages.rb-ca-bubble-soft .public-message-bubble {
    border-radius: 5px 15px 15px 15px !important;
}

/* Sharp — clean corners with minimal rounding */
#app .public-messages.rb-ca-bubble-sharp .public-message-bubble {
    border-radius: 4px !important;
}
/* =========================================================
   RANDOMBONDS — HELP & ABOUT
========================================================= */

#rbSettingsHelpContent.rb-help-about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
}

#rbSettingsHelpContent .rb-help-about-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border-radius: 18px;
    box-shadow: var(--rb-shadow-sm);
}

.rb-help-about-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.rb-help-about-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rb-primary-light);
}

.rb-help-about-icon svg {
    width: 24px;
    height: 24px;
}

.rb-help-about-card-copy {
    flex: 1;
    min-width: 0;
}

.rb-help-about-card h2 {
    margin: 0;
    color: var(--rb-text);
    font-size: 16px;
    line-height: 1.4;
}

.rb-help-about-card p {
    margin-top: 7px;
    color: var(--rb-text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.rb-help-instagram-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--rb-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 180ms ease,
        border-color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.rb-help-instagram-link:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.11);
}

.rb-help-instagram-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}

.rb-help-instagram-link svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

@media (prefers-reduced-motion: reduce) {
    .rb-help-instagram-link {
        transition: none;
    }
}

/* =========================================================
   RANDOMBONDS — LEGAL PAGE LAYOUT
========================================================= */

/* Do not let the app shell add an extra screen of blank space. */
.main-app.rb-legal-mode {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Keep the fixed top bar, but hide the regular app layout. */
.main-app.rb-legal-mode > .app-layout {
    display: none !important;
}

/* Legal documents should end with their actual content. */
#termsPage,
#privacyPage {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0;
    padding-bottom: 24px;
}

#termsPage .settings-content,
#privacyPage .settings-content {
    margin-bottom: 0;
}

/* Back button at the top of each legal document. */
.rb-legal-topbar {
    display: flex;
    justify-content: flex-start;
    margin: 0 0 18px;
    padding: 0;
}

.rb-legal-topbar .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 12px 18px;
}
/* RANDOMBONDS — LEGAL PAGE HEADER OFFSET */

#termsPage,
#privacyPage {
    padding-top:
        calc(var(--rb-header-height) + 16px)
        !important;
}

#termsPage > .rb-legal-topbar,
#privacyPage > .rb-legal-topbar {
    position: relative;
    z-index: 101;

    display: flex !important;
    visibility: visible !important;

    margin-bottom: 18px;
}

#termsPage .rb-legal-topbar button,
#privacyPage .rb-legal-topbar button {
    display: inline-flex !important;
    visibility: visible !important;

    align-items: center;
    justify-content: center;
    gap: 10px;

    width: auto !important;
    min-height: 48px;
    padding: 12px 18px;
}
/* =========================================================
   RANDOMBONDS — COMMUNITY GUIDELINES
========================================================= */

#communityGuidelinesPage {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0;
    padding-top: calc(var(--rb-header-height) + 16px) !important;
    padding-bottom: 24px;
}

#communityGuidelinesPage .settings-content {
    margin-bottom: 0;
}

#communityGuidelinesPage > .rb-legal-topbar {
    position: relative;
    z-index: 101;

    display: flex !important;
    visibility: visible !important;

    margin: 0 0 18px;
    padding: 0;
}

#communityGuidelinesPage .rb-legal-topbar button {
    display: inline-flex !important;
    visibility: visible !important;

    align-items: center;
    justify-content: center;
    gap: 10px;

    width: auto !important;
    min-width: 0;
    min-height: 48px;
    padding: 12px 18px;
}

/* Help & About — legal links */
.rb-help-legal-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.rb-help-legal-links button {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
    font-weight: 650;
}


/* RANDOMBONDS — RESTRICTED YOUTUBE PREVIEW */

.rb-youtube-restricted-media {
    position: relative;
    display: block;
    width: 100%;
    min-height: 190px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #D7E4F4;
    border-radius: 18px;
    background: #102027;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
}

.rb-youtube-restricted-media img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    opacity: 1;
}

.rb-youtube-restricted-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #FFFFFF;
    pointer-events: none;
}

.rb-youtube-restricted-play svg {
    display: block;
}

[data-rb-youtube-restricted="true"] {
    cursor: pointer;
}




/* =========================================================
   RANDOMBONDS BUG FIXES — NAV COUNTS, SEARCH, BLUE PALETTE
========================================================= */

/* Only the login screen may display the copyright footer. */
.rb-site-footer { display: none !important; }
#loginScreen .rb-site-footer { display: block !important; }

.rb-nav-unread-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    margin-left: auto;
    padding: 0 5px;
    border: 2px solid var(--rb-surface, #fff);
    border-radius: 999px;
    background: #DC3545;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.rb-nav-unread-badge[hidden],
.rb-nav-unread-badge.hidden { display: none !important; }

/* Replace violet-tinted surfaces with the RB blue/cyan system. */
.home-hero {
    background: linear-gradient(135deg, rgba(37,99,235,.11), rgba(34,211,238,.10)) !important;
    border-color: rgba(37,99,235,.15) !important;
}
.rb-profile-editor-hero {
    background: linear-gradient(135deg, rgba(58,133,237,.12), rgba(34,211,238,.10)) !important;
}
.rb-profile-editor-banner {
    background: linear-gradient(135deg, #E8F2FF, #DDF7FA) !important;
}

.rb-profile-editor-avatar.rb-editor-female,
.rb-user-profile-avatar-wrap.rb-profile-female .rb-user-profile-avatar {
    border-color: #EC4899 !important;
}


.header-avatar {
    background: linear-gradient(135deg, var(--rb-primary), var(--rb-info)) !important;
}

/* Header search panel. */
.rb-global-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) 14px 18px;
    overflow-y: auto;
    background: rgba(8, 20, 35, .58);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.rb-global-search-dialog {
    width: min(720px, 100%);
    max-height: min(760px, calc(100dvh - 36px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rb-border, #D9E7E8);
    border-radius: 22px;
    background: var(--rb-surface, #fff);
    color: var(--rb-text, #102027);
    box-shadow: 0 26px 80px rgba(0,0,0,.25);
}
.rb-global-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--rb-border, #D9E7E8);
}
.rb-global-search-title { margin: 0; font-size: 18px; font-weight: 800; }
.rb-global-search-close {
    width: 40px; height: 40px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--rb-border, #D9E7E8); border-radius: 12px;
    background: #fff; color: var(--rb-text, #102027); cursor: pointer;
}
.rb-global-search-field-wrap { padding: 14px 18px 10px; }
.rb-global-search-field {
    width: 100%; min-height: 52px; padding: 12px 15px;
    border: 1px solid var(--rb-border, #D9E7E8); border-radius: 14px;
    background: #F7FAFD; color: var(--rb-text, #102027); font-size: 16px;
}
.rb-global-search-field:focus { border-color: var(--rb-primary-light, #2770D6); box-shadow: 0 0 0 3px rgba(39,112,214,.13); }
.rb-global-search-help { padding: 0 18px 10px; color: var(--rb-text-muted, #82939A); font-size: 12px; }
.rb-global-search-results { min-height: 100px; overflow: auto; padding: 0 12px 14px; }
.rb-global-search-section-title { margin: 12px 6px 7px; color: var(--rb-primary, #0A4BA6); font-size: 11px; font-weight: 850; letter-spacing: .10em; text-transform: uppercase; }
.rb-global-search-result {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 11px 10px; border-radius: 13px; text-align: left;
    background: transparent; color: inherit; cursor: pointer;
}
.rb-global-search-result:hover, .rb-global-search-result:focus-visible { background: #EFF6FF; }
.rb-global-search-avatar {
    width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border: 1px solid var(--rb-border, #D9E7E8); border-radius: 50%;
    background: #EAF3FF; color: var(--rb-primary, #0A4BA6); font-weight: 800;
}
.rb-global-search-result-copy { min-width: 0; flex: 1; }
.rb-global-search-result-name { display: block; overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.rb-global-search-result-meta { display: block; margin-top: 3px; overflow: hidden; color: var(--rb-text-soft, #53666C); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rb-global-search-empty { padding: 24px 12px; color: var(--rb-text-soft, #53666C); font-size: 14px; text-align: center; }
.rb-discover-load-more-posts {
    display: flex; align-items: center; justify-content: center;
    width: min(260px, 100%); min-height: 42px; margin: 14px auto 0;
    padding: 10px 16px; border: 1px solid rgba(10,75,166,.18);
    border-radius: 12px; background: #EFF6FF; color: var(--rb-primary, #0A4BA6);
    font-size: 13px; font-weight: 800; cursor: pointer;
}
.rb-discover-load-more-posts[hidden], .rb-discover-load-more-posts.hidden { display: none !important; }

@media (max-width: 520px) {
    .rb-global-search-backdrop { padding: max(8px, env(safe-area-inset-top)) 8px 8px; }
    .rb-global-search-dialog { max-height: calc(100dvh - 16px); border-radius: 18px; }
    .rb-global-search-header { padding: 12px; }
    .rb-global-search-field-wrap { padding: 12px 12px 8px; }
    .rb-global-search-results { padding-inline: 8px; }
}
