* {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;

}

.rz-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    min-height: 80px;
    background: rgba(11, 11, 11, .95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #1a1a1a;
    margin-top: 10px;
}

.rz-nav__logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 3px;
    color: #fff;
    text-decoration: none;
}

.rz-nav__logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rz-nav__logo-mark img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.rz-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}

.rz-nav__link {
    font-size: 13px;
    font-weight: 500;
    color: #777;
    text-decoration: none;
    letter-spacing: .5px;
    transition: color .2s;
}

.rz-nav__link:hover,
.rz-nav__link--active {
    color: #fff;
}

.rz-nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.rz-nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.rz-nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* User / guest auth dropdown */
.rz-user-dropdown,
.rz-auth-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.rz-auth-dropdown__toggle {
    border: 1px solid rgba(255, 204, 0, 0.35) !important;
    background: linear-gradient(135deg, #ffcc00 0%, #ffb020 45%, #e6b800 100%) !important;
    color: #000 !important;
}

.rz-auth-dropdown__toggle:hover {
    filter: brightness(1.05);
}

.rz-user-dropdown__toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 48px;
    min-width: auto;
    max-width: min(100%, 280px);
    padding: 8px 12px !important;
    border-radius: 6px;
    background: none !important;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rz-user-dropdown__toggle:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: #d0d0d0;
}

.rz-dropdown-icon {
    transition: transform 0.2s ease;
    width: 16px;
    height: 16px;
}

.rz-user-dropdown__toggle[aria-expanded="true"] .rz-dropdown-icon {
    transform: rotate(180deg);
}

.rz-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.rz-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.rz-dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none !important;
    background: none !important;
    text-align: left !important;
    cursor: pointer;
    font-size: 14px !important;
    line-height: 1.5 !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.rz-dropdown-item:hover {
    background-color: #f9f9f9;
    color: #000;
}

.rz-dropdown-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.rz-dropdown-item--logout {
    color: #d32f2f;
}

.rz-dropdown-item--logout:hover {
    background-color: #ffebee;
}

.home-user-avatar {
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.posts-wrapper .post-media-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.posts-wrapper .post-media-image__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main_nav {
    background: #FFFDF5;

}

.nospace {
    white-space: nowrap;
}

.header-sub-title {
    font-size: 20px;
}

body {
    padding-bottom: 0px !important;
}

/* Public/marketing pages (home, contact, help…) — Ravizi black, not legacy cream/purple */
body:not(.user-app) {
    background-color: #0b0b0b !important;
    color: #ffffff;
}

.home-header {
    background: #FFFDF5;
    color: #000000;

}

.custom_button {
    box-shadow: none;
    font-style: normal;
    font-size: 25px !important;
    border-radius: 36px;
    /* line-height: 34px; */
    font-weight: 700;
    padding: 19px 60px !important;
    color: #FFFFFF;
    display: inline-block;
    background: linear-gradient(180deg, #F20B53 0%, #880157 100%);
}

.custom_button:hover {
    color: black;
}


.login_button,
.register_button {

    /* Auto layout */
    padding: 10px 40px !important;

    text-align: center;
    border-radius: 36px;
    margin: auto 10px;
    color: #000;
    border: 2px solid linear-gradient(180deg, #F20B53 0%, #880157 100%);
    border: solid 2px transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(101deg, #F20B53, #880157);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 2px 1000px 1px #FFFDF5 inset;
}

.navbar-toggler {
    padding: 10px 10px !important;
    font-size: 3em !important;

}

.register_button,
.navbar-toggler {
    box-shadow: none;
    color: #fff !important;
}

.dark-mode {
    display: none !important;
}

.light-mode {
    display: block;
}

.bg-custom {
    background: #FFFDF5;
    padding: 32px;
}

footer {
    background: #0b0b0b !important;

}

.footer a,
.footer span {
    color: #FFF5F9 !important;
    font-weight: 500;
    font-size: 20px;
    line-height: 33px;
    /* identical to box height */

    text-align: center;

    color: #FFF5F9;
}

.footer .ion-icon-inner {
    color: #FFA9D0
}

.sub_text {
    font-size: 20px;
    white-space: nowrap
}

@media screen and (max-width:900px) {
    .rz-nav {
        padding: 0 20px;
        min-height: 72px;
    }

    .rz-nav__links {
        display: none;
        flex: none;
    }

    .rz-nav__links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f0f0f;
        border-bottom: 1px solid #1a1a1a;
        padding: 20px 32px;
        gap: 18px;
        z-index: 199;
    }

    .rz-nav__burger {
        display: flex;
        order: 3;
    }

    .rz-nav__actions {
        order: 2;
        display: flex !important;
        margin-left: 0;
    }

    .rz-user-dropdown__toggle {
        min-width: auto;
        max-width: 100%;
        gap: 4px;
        padding: 6px 8px !important;
    }

    .rz-user-dropdown__toggle span {
        display: none;
    }

    .home-user-avatar {
        width: 36px;
        height: 36px;
        margin: 0;
    }

    .main_nav .ml-auto {
        margin-left: inherit!important;
    }

    .navbar-toggler {
        color: #EC0A53 !important;
    }

    .navbar-nav.ml-auto {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
    }

    .navbar-nav.ml-auto .nav-item {
        margin-top: 20px;

    }

    .home-header {
        padding-top: 100px;
    }

    .header-title {
        font-size: 32px;
        line-height: 42px;
    }

    .header-sub-title {
        line-height: 22px;
        white-space: normal;

    }

    .mt-4.d-flex.justify-items-between.align-items-center {
        margin-bottom: 50px;

    }

    .header-sub-title.nospace {
        white-space: normal;
    }

    .footer .links {
        display: flex;
        justify-content: center;
    }

    .footer a,
    .footer {
        font-size: 14px !important;
    }
}

@media screen and (max-width:768px) {
    .rz-nav {
        gap: 12px;
    }

    .rz-nav__actions {
        display: flex !important;
        margin-left: auto;
    }

    .rz-nav__actions--guest {
        display: none !important;
    }

    .rz-dropdown-menu {
        min-width: 220px;
    }

    .rz-user-dropdown__toggle {
        min-width: auto;
        max-width: calc(100vw - 60px);
        padding: 8px 8px !important;
        gap: 2px;
    }

    .rz-user-dropdown__toggle span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-user-avatar {
        width: 32px;
        height: 32px;
    }
}

@media screen and (max-width:720px) {
    .rz-nav__actions {
        display: flex !important;
    }

    .rz-user-dropdown__toggle span {
        display: none;
    }
}

@media screen and (max-width:600px) {
    .rz-nav__actions {
        display: flex !important;
    }

    .rz-user-dropdown__toggle span {
        display: none;
    }

    .home-user-avatar {
        width: 32px;
        height: 32px;
    }
}

@media screen and (max-width:640px) {
    .rz-user-dropdown__toggle span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rz-nav__actions {
        display: flex !important;
    }
}

@media screen and (max-width:360px) {
    .rz-nav__actions {
        display: flex !important;
    }

    .rz-user-dropdown__toggle {
        padding: 6px 4px !important;
        gap: 2px;
    }

    .rz-user-dropdown__toggle span {
        display: none;
    }

    .home-user-avatar {
        width: 28px;
        height: 28px;
    }

    .rz-dropdown-icon {
        width: 14px;
        height: 14px;
    }
}


@media (prefers-color-scheme: dark) {

    .bg-custom,
    body:not(.user-app) .bg-custom {
        background: #0b0b0b;
    }

    body:not(.user-app) {
        background-color: #0b0b0b !important;
        color: #fff;
    }

    .light-mode {
        display: none !important;
    }

    .dark-mode {
        display: block !important;
    }

    .main_nav {
        background: #0b0b0b;
    }

    a.nav-link {
        color: #fff !important;
        font-style: normal;
        font-weight: 500;
        font-size: 20px !important;
        line-height: 27px;
    }

    .home-header {
        background: #0b0b0b;
        color: #fff;
    }
}
