body {
    font-family: 'Open Sans', sans-serif;
    min-height: 100%!important;
}
/* Fix for fixed header - desktop only when main navbar is present */
body .flex-fill {
    padding-top: 0 !important;
}

@media (min-width: 769px) {
    body:has(.modern-navbar) .flex-fill {
        padding-top: 72px !important;
    }
}
/* Top Navbar Menu */
.navbar{
    padding:1rem;
}
.navbar-brand img{
    max-width: 180px;
    max-height: 60px;
}
.error-container{
    min-width: 350px;
}
.button-search {
    color: #DDD;
    background: none;
    position: absolute;
    right: 0;
    cursor: pointer;
    outline: none;
    border: none;
}
.home-user-avatar{
    width: 32px;
    height: 32px;
    margin-left:0.5rem;
}
/* Login Register pages  */
.login,
.image {
    min-height: 100vh
}
.bg-image {
    background-size: cover;
    background-position: center center
}
.brand-logo{
    width: 200px;
}
.rounded-lg{
    border-radius: 0.4rem!important;
}
.hidden{
    display: none!important;
}
/* Dropzone preview boxes + other general fixes */
.audio-preview-item {
    padding-right: 36px;
}
.video-preview-item{
    border-radius: 20px;
}
.video-preview-item .video-preview {
    border-radius: 20px;
    overflow: hidden;
    width: 240px;
    height: 240px;
    position: relative;
    display: block;
    z-index: 10;
    background: linear-gradient(to bottom, #eee, #ddd);
}
.dropzone-previews.dropzone {
    background: none!important;
}
.sticky {
    position: sticky;
    top: 1.5rem;
}
.sticky-sm{
    position: sticky;
    top:1rem;
}
.min-h-75{
    min-height: 75%;
}
.sticky-profile-widgets {
    position: sticky;
    top: 1rem;
}
.sticky-widgets {
    position: sticky!important;
    padding-top: .5rem!important;
}
.pointer-cursor{
    cursor:pointer;
}
.avatar-placeholder i{
    font-size: 2.8rem;
}
.avatar-placeholder i:hover{
}
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.side-menu .icon-wrapper{
    width: 2.6rem;
}
.side-menu .nav{
    flex-wrap:nowrap;
}
.side-menu .nav-item i{
    font-size: 2.0rem!important;
}
.side-menu .user-avatar, .sidebar .user-avatar{
    width: 50px;
    height: 50px;
}
/* Toasts */
.toast-container {
    position: fixed;
    z-index: 11050;
    margin: 12px !important;
    pointer-events: none;
}

.toast-container .toast {
    pointer-events: auto;
}

.top-right {
    top: 0;
    right: 0;
}

.top-left {
    top: 0;
    left: 0;
}

.top-center {
    transform: translateX(-50%);
    top: 0;
    left: 50%;
}

.bottom-right {
    right: 0;
    bottom: 0;
}

.bottom-left {
    left: 0;
    bottom: 0;
}

.bottom-center {
    transform: translateX(-50%);
    bottom: 0;
    left: 50%;
}

.toast-container > .toast {
    min-width: 200px;
    max-width: 300px;
}

.toast-container > .toast.st-toast {
    --st-toast-bg: rgba(18, 16, 24, 0.94);
    --st-toast-border: rgba(255, 255, 255, 0.12);
    --st-toast-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --st-toast-divider: rgba(255, 255, 255, 0.08);
    --st-toast-title: #f8fafc;
    --st-toast-subtitle: #94a3b8;
    --st-toast-body: #cbd5e1;
    --st-toast-close-bg: rgba(255, 255, 255, 0.06);
    --st-toast-close-color: #e2e8f0;
    --st-toast-close-hover-bg: rgba(255, 255, 255, 0.12);
    --st-toast-close-hover-color: #ffffff;
    --st-toast-icon-success-bg: rgba(34, 197, 94, 0.16);
    --st-toast-icon-success-border: rgba(34, 197, 94, 0.32);
    --st-toast-icon-error-bg: rgba(244, 63, 94, 0.16);
    --st-toast-icon-error-border: rgba(244, 63, 94, 0.32);
    --st-toast-icon-warning-bg: rgba(245, 158, 11, 0.16);
    --st-toast-icon-warning-border: rgba(245, 158, 11, 0.32);
    --st-toast-icon-info-bg: rgba(56, 189, 248, 0.16);
    --st-toast-icon-info-border: rgba(56, 189, 248, 0.32);
    min-width: 300px;
    max-width: 380px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--st-toast-border);
    background: var(--st-toast-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--st-toast-shadow);
    padding: 0;
}

body.theme-light .toast-container > .toast.st-toast,
html:not(.dark) .toast-container > .toast.st-toast,
body:has(.modern-navbar.light-theme) .toast-container > .toast.st-toast,
body:has(.mobile-app-bar--light) .toast-container > .toast.st-toast,
body:has(.settings-page--light) .toast-container > .toast.st-toast {
    --st-toast-bg: rgba(255, 255, 255, 0.97);
    --st-toast-border: rgba(131, 8, 102, 0.14);
    --st-toast-shadow: 0 14px 36px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --st-toast-divider: rgba(15, 23, 42, 0.08);
    --st-toast-title: #0f172a;
    --st-toast-subtitle: #64748b;
    --st-toast-body: #475569;
    --st-toast-close-bg: rgba(15, 23, 42, 0.06);
    --st-toast-close-color: #64748b;
    --st-toast-close-hover-bg: rgba(15, 23, 42, 0.1);
    --st-toast-close-hover-color: #0f172a;
    --st-toast-icon-success-bg: rgba(34, 197, 94, 0.12);
    --st-toast-icon-success-border: rgba(22, 163, 74, 0.28);
    --st-toast-icon-error-bg: rgba(244, 63, 94, 0.1);
    --st-toast-icon-error-border: rgba(225, 29, 72, 0.24);
    --st-toast-icon-warning-bg: rgba(245, 158, 11, 0.12);
    --st-toast-icon-warning-border: rgba(217, 119, 6, 0.26);
    --st-toast-icon-info-bg: rgba(56, 189, 248, 0.12);
    --st-toast-icon-info-border: rgba(2, 132, 199, 0.24);
}

body:has(.modern-navbar.dark-theme) .toast-container > .toast.st-toast,
body:has(.mobile-app-bar--dark) .toast-container > .toast.st-toast,
body:has(.settings-page--dark) .toast-container > .toast.st-toast {
    --st-toast-bg: rgba(18, 16, 24, 0.94);
    --st-toast-border: rgba(255, 255, 255, 0.12);
    --st-toast-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --st-toast-divider: rgba(255, 255, 255, 0.08);
    --st-toast-title: #f8fafc;
    --st-toast-subtitle: #94a3b8;
    --st-toast-body: #cbd5e1;
    --st-toast-close-bg: rgba(255, 255, 255, 0.06);
    --st-toast-close-color: #e2e8f0;
    --st-toast-close-hover-bg: rgba(255, 255, 255, 0.12);
    --st-toast-close-hover-color: #ffffff;
}

.st-toast__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    background: transparent !important;
    border-bottom: 1px solid var(--st-toast-divider) !important;
    color: var(--st-toast-title) !important;
}

.st-toast__icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.st-toast__icon--success {
    background-color: var(--st-toast-icon-success-bg);
    border: 1px solid var(--st-toast-icon-success-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.st-toast__icon--error {
    background-color: var(--st-toast-icon-error-bg);
    border: 1px solid var(--st-toast-icon-error-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fb7185' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.st-toast__icon--warning {
    background-color: var(--st-toast-icon-warning-bg);
    border: 1px solid var(--st-toast-icon-warning-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3C/svg%3E");
}

.st-toast__icon--info {
    background-color: var(--st-toast-icon-info-bg);
    border: 1px solid var(--st-toast-icon-info-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}

body.theme-light .st-toast__icon--success,
html:not(.dark) .st-toast__icon--success,
body:has(.modern-navbar.light-theme) .st-toast__icon--success,
body:has(.mobile-app-bar--light) .st-toast__icon--success,
body:has(.settings-page--light) .st-toast__icon--success {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

body.theme-light .st-toast__icon--error,
html:not(.dark) .st-toast__icon--error,
body:has(.modern-navbar.light-theme) .st-toast__icon--error,
body:has(.mobile-app-bar--light) .st-toast__icon--error,
body:has(.settings-page--light) .st-toast__icon--error {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

body.theme-light .st-toast__icon--warning,
html:not(.dark) .st-toast__icon--warning,
body:has(.modern-navbar.light-theme) .st-toast__icon--warning,
body:has(.mobile-app-bar--light) .st-toast__icon--warning,
body:has(.settings-page--light) .st-toast__icon--warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3C/svg%3E");
}

body.theme-light .st-toast__icon--info,
html:not(.dark) .st-toast__icon--info,
body:has(.modern-navbar.light-theme) .st-toast__icon--info,
body:has(.mobile-app-bar--light) .st-toast__icon--info,
body:has(.settings-page--light) .st-toast__icon--info {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230289c7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}

.st-toast__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--st-toast-title) !important;
    line-height: 1.3;
}

.st-toast__subtitle {
    font-size: 0.75rem;
    color: var(--st-toast-subtitle) !important;
}

.st-toast__body {
    padding: 12px 14px 14px !important;
    color: var(--st-toast-body) !important;
    font-size: 0.875rem;
    line-height: 1.5;
    background: transparent !important;
}

.st-toast__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    border: none;
    border-radius: 8px;
    background: var(--st-toast-close-bg);
    color: var(--st-toast-close-color) !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.st-toast__close:hover {
    background: var(--st-toast-close-hover-bg);
    color: var(--st-toast-close-hover-color) !important;
}

.st-toast--success {
    border-color: rgba(34, 197, 94, 0.22);
}

body:has(.modern-navbar.light-theme) .st-toast--success,
body:has(.mobile-app-bar--light) .st-toast--success,
body:has(.settings-page--light) .st-toast--success {
    border-color: rgba(22, 163, 74, 0.2);
}

.st-toast--success::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

.st-toast--error {
    border-color: rgba(244, 63, 94, 0.22);
}

body:has(.modern-navbar.light-theme) .st-toast--error,
body:has(.mobile-app-bar--light) .st-toast--error,
body:has(.settings-page--light) .st-toast--error {
    border-color: rgba(225, 29, 72, 0.18);
}

.st-toast--error::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f43f5e, transparent);
}

.st-toast--warning {
    border-color: rgba(245, 158, 11, 0.22);
}

body:has(.modern-navbar.light-theme) .st-toast--warning,
body:has(.mobile-app-bar--light) .st-toast--warning,
body:has(.settings-page--light) .st-toast--warning {
    border-color: rgba(217, 119, 6, 0.2);
}

.st-toast--warning::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.st-toast--info {
    border-color: rgba(56, 189, 248, 0.22);
}

body:has(.modern-navbar.light-theme) .st-toast--info,
body:has(.mobile-app-bar--light) .st-toast--info,
body:has(.settings-page--light) .st-toast--info {
    border-color: rgba(2, 132, 199, 0.18);
}

.st-toast--info::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.toast .toast-indicator {
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .toast-container.top-right,
    .toast-container.top-left,
    .toast-container.top-center {
        top: 68px;
    }
}
/* Feed component */
.half-bg {
    background-color: rgba(0,0,0,.45);
}
.suggestion-box{
    background-color: #FFF!important;
}
.suggestion-box .avatar{
    width: 96px;
    height: 96px;
    border: 2px solid #fefefe;
}
.post-box .avatar{
    width:48px;
    height: 48px;
}
.post-box .post-content-data p{
    margin-bottom: 0px;
}
.post-details .dropdown .dropdown-toggle:after,.post-details .dropdown .dropdown-toggle:before{
    display: none;
}
.post-box .post-count-details{
    font-size: 15px;
}
.dropdown .dropdown-toggle:after, .dropdown .dropdown-toggle:before{
    display: none;
}
.post-box .post-comments .form-control.is-invalid, .was-validated .form-control:invalid {
    background-image: none!important;
}
.suggestions-header i{
    cursor: pointer;
}
.dropdown:not(.dropdown-hover) .dropdown-menu {
    margin-top: 0px!important;
}
.pswp_video{
    position: relative!important;
}
.pswp_audio{
    position: relative!important;
    width:75%!important;
    height:100px!important;
}
.pswp--zoom-allowed .pswp__img {
    cursor: default !important
}
/* Menu */
.open-menu{
    text-decoration: none!important;
}
.dropleft .dropdown-menu {
    top: 0!important;
    right: 0%!important;
    left: auto!important;
    margin-top: 0!important;
    margin-right: 0!important;
}
.dropright .dropdown-menu {
    top: 0!important;
    right: auto!important;
    left: 0%!important;
    margin-top: 0!important;
    margin-left: 0!important;
}
/* Icons wrapper for backend SVGs includes */
.ion-icon-wrapper{
    display: inline-block;
    width: 1em;
    height: 1em;
    contain: strict;
    fill: currentcolor;
    box-sizing: content-box !important;
}
.input-group-prepend .ion-icon-wrapper{
    width: 20px!important;
    height: 20px!important;
}
.ion-icon-inner, .ion-icon-inner svg{
    display: block;
    height: 100%;
    width: 100%;
}
.icon-large{
    font-size: 32px;
}
.icon-xlarge{
    font-size: 50px;
}
.icon-medium{
    font-size: 24px;
}
.icon-small{
    font-size: 18px;
}
.icon-xsmall{
    font-size: 11px;
}
.social-media-icon{
    width: 1.4rem;
    height: 1.4rem
}
/* Global nav override */
.page-item, .page-link{
    margin-left:4px;
    width:34px;
    height:34px;
    border-radius: 50%!important;
    text-align: center;
}
.btn-rounded-icon{
    width: 45px!important;
    height: 45px!important;
    padding:0;
    transition: 0.3s;
    border: none!important;
    border-radius: 50%;
    font-size: 20px;
    margin:0;
}
#login-dialog .card-wrapper{
    height: 100%;
}
/* User cards */
.suggestion-header-bg {
    background-color: #50505047;
    background-position: center center!important;
    background-size: cover!important;
    height:140px!important;
}
.creator-body{
    margin-top:-50px;
}
.creator-body .avatar{
    width: 100px;
    height: 100px;
}
.suggestion-card-btn{
    width: 30px;
    height: 30px;
}
/*  */
.installer-bg{
    background-color: #f8f9fa;
}
/* */
.checkout-dialog .rounded-circle.user-avatar{
    width:50px;
    height:50px;
}
/*  */
footer .copyRightInfo .d-flex.flex-row.nav{
    margin-left:-1rem;
}
footer .copyRightInfo .nav-link:nth-child(1){
    padding-left:0px!important;
}
footer .text-lg{
    font-size: 1.1rem!important;
}
footer .ion-icon-wrapper{
    font-size: 1.25rem!important;
}
footer .brand-logo{
    max-width: 180px;
    /*max-height: 60px;*/
}
/* Profile / Posts widget */
.recent-media .card-body img{
    width:80px!important;
    height:80px!important;
}
.dropdown:not(.nav-item) .dropdown-menu:before {
    content: none!important;
}
.grayscale {
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(95%); /* Chrome 19+ & Safari 6+ */
}
.grayscale:hover {
    filter: none;
    -webkit-filter: grayscale(0%);
}
.contact-illustration{
    width: 450px;
}
.posts-loading-indicator .spinner-border{
    width:2rem;
    height: 2rem;
}
.page-content-wrapper p{
    margin:0px;
}
.page-content-wrapper h4{
    margin-bottom:1rem!important;
}
.min-vh-65{
    min-height: 65vh;
}
.page-link{
    display: flex;
    justify-content: center;
    align-items: center;
}
.w-16{
    width: 16px;
    height: 16px;
}
.w-24{
    width:24px;
    height:24px;
}
.w-32{
    width:32px;
    height:32px;
}
.w-40{
    width:40px;
    height:40px;
}
.text-bold-600{
    font-weight: 600;
}
.blob {
    background: black;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
    margin: 8px;
    height: 6px;
    width: 6px;
    transform: scale(1);
    animation: pulse-black 2s infinite;
}
@keyframes pulse-black {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}
.blob.red {
    background: rgba(234, 6, 5, 1);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 1);
    animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(234, 6, 5, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(234, 6, 5, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(234, 6, 5, 0);
    }
}
.text-orange{
    color:#FD7E14;
}
/* Streams CSS */
.stream-cover, .stream-cover-public{
    max-height: 40px;
    max-width: 150px;
    height:40px;
    width: 80px
}
.stream-chat-no-message{
    height: 300px;
}
.grecaptcha-badge{
    z-index: 100;
}
.captcha-field .text-danger{
    font-size: .875em;
}
.blurred{
    -webkit-filter: blur(10px);
    -moz-filter: blur(10px);
    -o-filter: blur(10px);
    -ms-filter: blur(10px);
    filter: blur(10px);
}
/* Laravel-Bootstrap mobile navigation hack for larger pagination numbers */
@media screen and ( max-width: 400px ){
    li.page-item {
        display: none;
    }
    .page-item:first-child,
    .page-item:nth-child( 2 ),
    .page-item:nth-last-child( 2 ),
    .page-item:last-child,
    .page-item.active,
    .page-item.disabled {
        display: block;
    }
}
.max-width-150{
    max-width: 150px;
}
.n-mt-2{
    margin-top:-2rem;
}
.widgets-footer-link{
    font-size: 15px;
}
.widgets-footer .widgets-footer-link:not(:last-child):after {
    content: "\2022";
    margin-left: 15px;
    font-size: 12px;
    display: inline-flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    color: #8a96a3;
}
.swiper-pagination-wrapper{
    height: 18px;
}
.feed-widgets .swiper-pagination{
    position: relative;
}
.sticky-info-bar {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1030; /* Ensure it is above other content */
}
.global-announcement-banner .content p{
    margin-bottom: 0px!important;
}
.global-announcement-banner .content{
    color: #fff;
}
/*.no-long-press {*/
/*    user-select: none;*/
/*    -webkit-user-select: none; !* Safari *!*/
/*}*/
.no-long-press {
    /* Disable text selection */
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10+ */
    /* Disable image saving and callout menu on iOS */
    -webkit-touch-callout: none; /* Disable callout menu */
    -webkit-user-drag: none;     /* Disable image dragging */
    /* Allow touch actions like swipe and scroll */
    touch-action: manipulation; /* Prevent double-tap zoom, allow pan and pinch-zoom */
}
/* ============================================
   Enhanced Forms & Buttons - Primary Color #830866
   ============================================ */
/* Primary Color Variables */
:root {
    --primary-color: #830866;
    --primary-dark: #6a0652;
    --primary-light: #a10a7f;
    --primary-gradient: #cb0c9f;
}
/* Enhanced Buttons */
.btn {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.btn:active:not(:disabled) {
    transform: translateY(0);
}
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(131, 8, 102, 0.25);
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
/* Primary Button */
.btn-primary {
    background: var(--primary-gradient) !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}
.btn-primary:hover:not(:disabled) {
    background: #b00a8f !important;
    background-color: #b00a8f !important;
    border-color: #b00a8f !important;
}
/* Secondary Button */
.btn-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
    border-color: #6c757d !important;
}
.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}
/* Success Button */
.btn-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
}
.btn-success:hover:not(:disabled) {
    background-color: #218838 !important;
    border-color: #218838 !important;
}
/* Danger Button */
.btn-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border-color: #dc3545 !important;
}
.btn-danger:hover:not(:disabled) {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}
/* Outline Buttons */
.btn-outline-primary {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover:not(:disabled) {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
.btn-outline-secondary {
    background-color: transparent !important;
    color: #6c757d !important;
    border-color: #6c757d !important;
}
.btn-outline-secondary:hover:not(:disabled) {
    background-color: #6c757d !important;
    color: #ffffff !important;
}
/* Button Sizes */
.btn-sm {
    padding: 6px 16px !important;
    font-size: 13px !important;
}
.btn-lg {
    padding: 10px 24px !important;
    font-size: 15px !important;
}
/* Enhanced Form Controls */
.form-control,
.form-select,
textarea.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
select {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    border: 1.5px solid #dee2e6 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    transition: all 0.2s ease !important;
    width: 100%;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus,
input:focus,
select:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(131, 8, 102, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
    color: #212529 !important;
}
.form-control:hover:not(:disabled):not(:focus),
.form-select:hover:not(:disabled):not(:focus) {
    border-color: #adb5bd !important;
}
.form-control::placeholder {
    color: #6c757d !important;
    opacity: 1;
}
.form-control:disabled,
.form-select:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.7;
}
/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
/* Select Dropdown */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 38px !important;
    appearance: none;
}
/* Form Labels */
.form-label,
label.form-label,
.form-group label,
label {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #495057 !important;
    margin-bottom: 6px !important;
    display: block;
}
/* Form Text & Help */
.form-text,
.help-block,
.help-text,
small.form-text {
    font-size: 12px !important;
    color: #6c757d !important;
    margin-top: 4px !important;
    display: block;
}
/* Invalid Feedback */
.invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}
.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 10px);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 1.4 1.4 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
}
.form-control.is-valid,
.form-select.is-valid,
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745 !important;
    padding-right: calc(1.5em + 10px);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
}
/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}
/* File Input */
input[type="file"] {
    font-size: 14px !important;
    padding: 8px !important;
    border: 1.5px solid #dee2e6 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    cursor: pointer;
}
input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(131, 8, 102, 0.15) !important;
}
/* Checkbox & Radio */
.form-check-input {
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #dee2e6 !important;
    cursor: pointer;
    margin-top: 3px;
}
.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(131, 8, 102, 0.15);
}
.form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 6px;
    cursor: pointer;
    font-size: 14px;
}
input[type="radio"].form-check-input {
    border-radius: 50% !important;
}
/* Card Header Enhancement */
.card-header {
    background: var(--primary-gradient) !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 18px !important;
    font-weight: 600 !important;
}
/* Alert Enhancement */
.alert {
    border-radius: 8px !important;
    border: none !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}
/* Progress Bar */
.progress {
    height: 8px !important;
    border-radius: 6px !important;
    background-color: #e9ecef !important;
}
.progress-bar {
    background: var(--primary-gradient) !important;
    background-color: var(--primary-color) !important;
    border-radius: 6px !important;
}
/* Button Group Alignment */
.btn-group,
.d-flex.gap-2,
.d-flex.gap-3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-group .btn {
    margin: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 7px 18px !important;
        font-size: 13px !important;
    }
    .form-control,
    .form-select {
        padding: 9px 12px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}
/* ============================================
   Modern Header — Fanvue-style layout (#830866)
   ============================================ */
.modern-navbar {
    --nav-glass-blur: 16px;
    --nav-brand-glow: rgba(131, 8, 102, 0.35);
    --nav-neon: #cb0c9f;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(var(--nav-glass-blur));
    -webkit-backdrop-filter: blur(var(--nav-glass-blur));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
    height: 72px;
    border-bottom: 1px solid transparent;
}

.modern-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
    z-index: 2;
}

.modern-navbar::after {
    display: none;
}

.modern-navbar.light-theme {
    background: rgba(255, 255, 255, 0.55);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.modern-navbar.dark-theme {
    background: rgba(8, 8, 12, 0.45);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.modern-navbar.dark-theme::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
/* Container */
.modern-navbar .container-fluid {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
}
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* Desktop-only navbar cluster (nav, search, actions) */
.navbar-desktop-only {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
}
/* Logo */
.navbar-brand-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand-section .brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.brand-link:hover .brand-logo {
    transform: scale(1.03);
}
/* Navigation — Fanvue text links */
.navbar-navigation {
    flex-shrink: 0;
}
.nav-links--text {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-text-link {
    position: relative;
    padding: 6px 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.25s ease;
    border: none;
    background: transparent;
}

.nav-text-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #830866, #cb0c9f);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.modern-navbar.light-theme .nav-text-link {
    color: #1e293b;
}

.modern-navbar.dark-theme .nav-text-link {
    color: rgba(248, 250, 252, 0.92);
}

.nav-text-link:hover {
    text-decoration: none;
}

.modern-navbar.light-theme .nav-text-link:hover {
    color: #830866;
}

.modern-navbar.dark-theme .nav-text-link:hover {
    color: #f472b6;
}

.nav-text-link:hover::after,
.nav-text-link.active::after {
    transform: scaleX(1);
}

.nav-text-link.active {
    font-weight: 600;
}

.modern-navbar.light-theme .nav-text-link.active {
    color: #830866;
}

.modern-navbar.dark-theme .nav-text-link.active {
    color: #f472b6;
}
/* Search Section — compact pill */
.search-section {
    flex: 1;
    max-width: 280px;
    min-width: 180px;
}
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.modern-navbar .search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 44px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.modern-navbar.light-theme .search-input {
    background: rgba(15, 23, 42, 0.04) !important;
    color: #1e293b !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.modern-navbar.dark-theme .search-input {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.modern-navbar.light-theme .search-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.modern-navbar.dark-theme .search-input::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.modern-navbar .search-input:focus {
    outline: none !important;
    border-color: rgba(203, 12, 159, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(131, 8, 102, 0.15) !important;
}

.modern-navbar.light-theme .search-input:focus {
    background: rgba(15, 23, 42, 0.06) !important;
    color: #1e293b !important;
}

.modern-navbar.dark-theme .search-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

.search-container:focus-within .search-icon {
    color: #cb0c9f;
}

.modern-navbar.dark-theme .search-container:focus-within .search-icon {
    color: #f472b6;
}

.search-icon-wrapper {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    box-shadow: none;
}
.search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: color 0.2s ease;
}
.modern-navbar.dark-theme .search-icon {
    color: #64748b;
}
/* Right Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
}
.modern-navbar .container-fluid,
.modern-navbar .navbar-content,
.modern-navbar .navbar-actions,
.modern-navbar .quick-actions,
.modern-navbar .dropdown {
    overflow: visible;
}
/* Auth Links — Fanvue pill buttons */
.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.auth-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.register-link {
    background: linear-gradient(135deg, #830866 0%, #a10a7f 50%, #cb0c9f 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--nav-brand-glow);
}

.register-link .auth-link__icon {
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
}

.register-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(203, 12, 159, 0.45);
    color: #fff;
    text-decoration: none;
}

.register-link:hover .auth-link__icon {
    transform: translateX(2px);
}

.modern-navbar.light-theme .login-link {
    color: #1e293b;
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.35);
}

.modern-navbar.dark-theme .login-link {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
}

.login-link:hover {
    text-decoration: none;
    border-color: rgba(203, 12, 159, 0.45);
    background: rgba(131, 8, 102, 0.1);
}

.modern-navbar.light-theme .login-link .auth-link__icon--outline {
    border: 1.5px solid rgba(15, 23, 42, 0.25);
    color: #1e293b;
}

.modern-navbar.dark-theme .login-link .auth-link__icon--outline {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #f8fafc;
}

.login-link:hover .auth-link__icon {
    transform: translateX(2px);
}
/* Quick Actions — icon circles */
.quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.22s ease;
    position: relative;
    border: 1px solid transparent;
}

.modern-navbar.light-theme .quick-action {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(15, 23, 42, 0.08);
}

.modern-navbar.dark-theme .quick-action {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.modern-navbar .quick-action:hover {
    background: rgba(131, 8, 102, 0.14);
    border-color: rgba(203, 12, 159, 0.3);
    text-decoration: none;
}
.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wallet-balance {
    font-weight: 600;
    color: #10b981;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
/* Notification Badges */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid;
}
.light-theme .notification-badge {
    border-color: white;
}
.dark-theme .notification-badge {
    border-color: #0f0f0f;
}
.message-badge {
    background: #8b5cf6;
}
/* Dropdowns */
.dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 500;
}
.light-theme .dropdown-toggle {
    color: #374151;
}
.dark-theme .dropdown-toggle {
    color: #e5e7eb;
}
.dropdown-toggle:hover {
    background: rgba(131, 8, 102, 0.1);
    border-color: rgba(131, 8, 102, 0.2);
}

.modern-navbar .dropdown-toggle {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modern-navbar.light-theme .dropdown-toggle {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modern-navbar.dark-theme .dropdown-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.modern-navbar .dropdown-toggle:not(.tokens-toggle):hover {
    background: rgba(131, 8, 102, 0.16);
    border-color: rgba(203, 12, 159, 0.34);
    box-shadow: 0 0 20px rgba(131, 8, 102, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tokens-toggle {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.12) 100%);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.modern-navbar.dark-theme .tokens-toggle {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.14) 100%);
    color: #fbbf24;
}

.modern-navbar .tokens-toggle:hover,
.tokens-toggle:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.42) 0%, rgba(245, 158, 11, 0.32) 100%);
    border-color: rgba(245, 158, 11, 0.55) !important;
    color: #b45309;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modern-navbar.dark-theme .tokens-toggle:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.32) 0%, rgba(245, 158, 11, 0.24) 100%);
    border-color: rgba(251, 191, 36, 0.5) !important;
    color: #fcd34d;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.tokens-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-arrow {
    transition: transform 0.3s ease;
}

.user-toggle .dropdown-arrow {
    color: #9ca3af;
}

.modern-navbar.dark-theme .user-toggle .dropdown-arrow {
    color: #d1d5db;
}

.modern-navbar .user-toggle:hover .dropdown-arrow {
    color: #f9fafb;
}

.modern-navbar.light-theme .user-toggle:hover .dropdown-arrow {
    color: #4b5563;
}

.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}
/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    min-width: 280px;
    max-width: min(320px, calc(100vw - 24px));
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    transform: translateX(var(--dropdown-shift-x, 0)) translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    pointer-events: none;
}
.light-theme .dropdown-menu {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dark-theme .dropdown-menu {
    background: rgba(22, 22, 30, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(131, 8, 102, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(var(--dropdown-shift-x, 0)) translateY(0);
    pointer-events: auto;
}

.dropdown-menu.is-fixed {
    position: fixed;
    top: auto;
    right: auto;
    left: auto;
}
/* Tokens Dropdown */
.dropdown-header {
    padding: 16px;
    margin: -8px -8px 8px -8px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}
.dropdown-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.main-title {
    font-weight: 600;
    font-size: 14px;
    color: #f59e0b;
}
.sub-title {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 4px 0;
    border: 1px solid transparent;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.light-theme .dropdown-item {
    color: #334155;
    font-weight: 500;
    font-size: 0.875rem;
}
.dark-theme .dropdown-item {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.875rem;
}
.light-theme .dropdown-item:hover,
.light-theme .dropdown-item:focus,
.light-theme .dropdown-item.active {
    background: rgba(131, 8, 102, 0.07);
    border-color: rgba(131, 8, 102, 0.16);
    color: #830866;
}
.dark-theme .dropdown-item:hover,
.dark-theme .dropdown-item:focus,
.dark-theme .dropdown-item.active {
    background: rgba(131, 8, 102, 0.18);
    border-color: rgba(161, 10, 127, 0.28);
    color: #f9a8d4;
}
.dropdown-item:hover .item-icon,
.dropdown-item:focus .item-icon,
.dropdown-item.active .item-icon {
    background: rgba(131, 8, 102, 0.16);
    color: #830866;
}
.dark-theme .dropdown-item:hover .item-icon,
.dark-theme .dropdown-item:focus .item-icon,
.dark-theme .dropdown-item.active .item-icon {
    background: rgba(161, 10, 127, 0.28);
    color: #f9a8d4;
}
.item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(131, 8, 102, 0.08);
    color: #830866;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.light-theme .item-icon {
    background: rgba(131, 8, 102, 0.07);
    color: #830866;
}
.dark-theme .item-icon {
    background: rgba(131, 8, 102, 0.2);
    color: #e879f9;
}
.dropdown-item:hover .item-icon,
.dropdown-item:focus .item-icon {
    transform: scale(1.04);
}
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.item-title {
    font-weight: 500;
    font-size: 14px;
}
.item-description {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.item-arrow {
    color: #9ca3af;
}
/* Dropdown Dividers */
.dropdown-divider {
    height: 1px;
    margin: 8px 0;
}
.light-theme .dropdown-divider {
    background: rgba(0, 0, 0, 0.1);
}
.dark-theme .dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}
/* User Dropdown */
.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 4px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modern-navbar.light-theme .user-toggle {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modern-navbar.dark-theme .user-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.user-toggle:hover,
.modern-navbar .user-toggle:hover {
    background: rgba(131, 8, 102, 0.16);
    border-color: rgba(203, 12, 159, 0.34);
    box-shadow: 0 0 20px rgba(131, 8, 102, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(203, 12, 159, 0.35);
    box-shadow: 0 0 12px rgba(131, 8, 102, 0.2);
}
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.user-name {
    font-size: 14px;
    font-weight: 500;
}
.light-theme .user-name {
    color: #374151;
}
.dark-theme .user-name {
    color: #e5e7eb;
}
/* User Profile Header */
.user-menu {
    min-width: 268px;
    max-width: min(300px, calc(100vw - 24px));
    padding: 6px;
}

.user-dropdown .user-menu {
    left: auto;
    right: 0;
}

.light-theme .user-menu {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dark-theme .user-menu {
    background: rgba(22, 22, 30, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(131, 8, 102, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: -2px -2px 6px -2px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, rgba(131, 8, 102, 0.08) 0%, rgba(161, 10, 127, 0.04) 100%);
    border-bottom: 1px solid rgba(131, 8, 102, 0.1);
    position: relative;
    z-index: 0;
    pointer-events: auto;
}

.light-theme .user-profile-header {
    background: linear-gradient(135deg, rgba(131, 8, 102, 0.06) 0%, rgba(161, 10, 127, 0.02) 100%);
    border-bottom-color: rgba(131, 8, 102, 0.08);
}

.dark-theme .user-profile-header {
    background: linear-gradient(135deg, rgba(131, 8, 102, 0.16) 0%, rgba(161, 10, 127, 0.08) 100%);
    border-bottom-color: rgba(161, 10, 127, 0.2);
}
.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(131, 8, 102, 0.5);
}
.user-profile-info {
    flex: 1;
}
.user-profile-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}
.light-theme .user-profile-name {
    color: #0f172a;
}
.dark-theme .user-profile-name {
    color: #f3f4f6;
}
.user-profile-handle {
    font-size: 13px;
    margin-top: 2px;
    line-height: 1.3;
}
.light-theme .user-profile-handle {
    color: #64748b;
}
.dark-theme .user-profile-handle {
    color: #9ca3af;
}

/* Featured creator dashboard link */
.dropdown-item--creator {
    margin-top: 2px;
}
.light-theme .dropdown-item--creator {
    background: rgba(131, 8, 102, 0.04);
    border-color: rgba(131, 8, 102, 0.08);
}
.dark-theme .dropdown-item--creator {
    background: rgba(131, 8, 102, 0.12);
    border-color: rgba(161, 10, 127, 0.2);
}
.dropdown-item--creator span {
    font-weight: 600;
    color: #830866;
}
.dark-theme .dropdown-item--creator span {
    color: #f9a8d4;
}
.dropdown-item--creator .item-icon {
    background: rgba(131, 8, 102, 0.14);
    color: #830866;
}
.dark-theme .dropdown-item--creator .item-icon {
    background: rgba(161, 10, 127, 0.28);
    color: #f9a8d4;
}
.light-theme .dropdown-item--creator:hover,
.light-theme .dropdown-item--creator:focus {
    background: rgba(131, 8, 102, 0.1);
    border-color: rgba(131, 8, 102, 0.22);
}
.dark-theme .dropdown-item--creator:hover,
.dark-theme .dropdown-item--creator:focus {
    background: rgba(131, 8, 102, 0.22);
    border-color: rgba(161, 10, 127, 0.35);
}

/* Logout Item */
.logout-item {
    color: #ef4444;
}
.logout-item .item-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.logout-item span {
    color: #ef4444;
    font-weight: 500;
}
.logout-item:hover,
.logout-item:focus {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}
.logout-item:hover .item-icon,
.logout-item:focus .item-icon {
    background: rgba(239, 68, 68, 0.16);
    color: #dc2626;
    transform: scale(1.04);
}
.logout-item:hover span,
.logout-item:focus span {
    color: #dc2626;
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    padding: 8px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 20px;
}
/* Header Responsive */
@media (max-width: 1200px) {
    .nav-links--text {
        gap: 22px;
    }
    .search-section {
        max-width: 220px;
    }
    .navbar-end {
        gap: 18px;
    }
}
@media (max-width: 992px) {
    .navbar-navigation {
        display: none;
    }
    .search-section {
        max-width: 200px;
    }
}
@media (max-width: 768px) {
    .modern-navbar {
        height: 64px;
    }
    .modern-navbar .container-fluid {
        padding: 0 16px;
    }
    .navbar-content {
        height: 64px;
        gap: 12px;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (max-width: 576px) {
    .auth-links {
        gap: 8px;
    }
    .auth-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    .modern-navbar .dropdown-menu:not(.is-fixed) {
        left: auto;
        right: 0;
        max-width: calc(100vw - 24px);
    }
}

/* ============================================
   Global Responsive Fixes
   Ensures proper sizing across all devices
   ============================================ */

/* Base responsive rules */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

/* Container fixes */
.container, .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Image responsive fixes */
img {
    max-width: 100%;
    height: auto;
}

/* Table responsive fixes */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form elements responsive */
input, textarea, select, button {
    max-width: 100%;
}

/* Card responsive fixes */
.card {
    max-width: 100%;
    overflow: hidden;
}

/* Fix for content overflow */
.flex-fill {
    overflow-x: hidden;
}

/* Mobile-first responsive breakpoints */
@media screen and (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    /* Hide certain elements on tablet */
    .d-lg-only {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    h1, .h1 {
        font-size: 1.5rem;
    }
    
    h2, .h2 {
        font-size: 1.25rem;
    }
    
    h3, .h3 {
        font-size: 1.1rem;
    }
    
    /* Stack columns on mobile */
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Fix padding on mobile */
    .py-4, .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .px-4, .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Ensure buttons fit */
    .btn {
        white-space: normal;
        word-wrap: break-word;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card fixes for mobile */
    .card-body {
        padding: 1rem;
    }
    
    /* Table fixes for mobile */
    .table td, .table th {
        padding: 0.5rem;
        font-size: 13px;
    }
    
    /* Modal fixes for mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    /* Dropdown fixes for mobile */
    .dropdown-menu {
        max-width: calc(100vw - 2rem);
    }
}

@media screen and (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    h1, .h1 {
        font-size: 1.35rem;
    }
    
    h2, .h2 {
        font-size: 1.15rem;
    }
    
    /* Smaller padding on small screens */
    .p-3, .p-4, .p-5 {
        padding: 0.75rem !important;
    }
    
    .m-3, .m-4, .m-5 {
        margin: 0.75rem !important;
    }
    
    /* Button group stacking */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    
    /* Form group spacing */
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    /* Alert smaller padding */
    .alert {
        padding: 0.75rem;
        font-size: 13px;
    }
}

@media screen and (max-width: 400px) {
    body {
        font-size: 12px;
    }
    
    h1, .h1 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 13px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, button, a.nav-link, .dropdown-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects that look bad on touch */
    .btn:hover, .card:hover {
        transform: none;
    }
}

/* Landscape mobile fixes */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* High DPI / Retina display fixes */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .no-print, .sidebar, .navbar, .footer, .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Site footer removed from all public layouts */
body > footer.site-footer-compact,
body > footer.footer-modern {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
    visibility: hidden !important;
}