html,
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    background-color: #eaeaea;
}

.banner {
    background: url(/img/banner.png), #a0dcee fixed top center no-repeat;
    /*background-color: #A40606;background-image: linear-gradient(315deg, #D98324 0%, #A40606 74%);*/
    background-size: cover;
    width: 100%;
    height: 250px;
    margin-bottom: 0 !important;
}

.faded {
    background: rgba(0, 0, 0, 0.25) !important;
}

.featuredImage {
    height: 125px;
    width: 610px;
    position: absolute;
    right: 0;
    background-image: url("../img/tipsAndTricks.png");
    box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.featuredTitle {
    background: rgba(0, 0, 0, 0.46);
    color: white;
    padding: 6px 15px 6px 15px;
    position: absolute;
    bottom: 5px;
    left: 1px;
}

.featuredTitle a,
.featuredTitle a:hover {
    color: white !important;
}

.navbar {
    box-shadow: 0 5px white, 0 1px 14px black !important;
    background-color: #5d5d5d !important;
}

.navbar-nav {
    margin: auto;
    text-align: center;
}
.navbar-dark .navbar-nav .nav-link {
    color: white !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.card {
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.12);
    padding: 4px;
    margin-bottom: 20px;
}

.card-header {
    background-image: url("../img/bargradient.png");
    background-size: contain;
    min-height: 40px;
    width: 100%;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px rgba(0, 0, 0, 0.35);
    padding: 10px 13px;
    border-radius: 3px !important;
    margin-bottom: 5px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.27), 0 2px 0 rgba(0, 0, 0, 0.14);
}

.card-body,
.list-group-item {
    font-size: 12px !important;
    color: rgb(119, 119, 119) !important;
    padding: 5px;
}

.header-red {
    background-color: #ad6262;
}

.header-blue {
    background-color: #4c7ebc;
}

.header-green {
    background-color: #4caf50;
}

.header-pink {
    background-color: #f08dd0;
}

.header-gray {
    background-color: #868686;
}

.header-orange {
    background-color: #ff7f50;
}

.header-coral {
    background-color: #fb9975;
}

.header-yellow {
    background-color: #bbaf10;
}

.header-grey {
    background-color: #a5a5a5;
}

.header-purple {
    background-color: #887ab8;
}

.contentTitle {
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

.Icon {
    float: left;
    font-size: 21px;
    margin: -3px 10px 0px 2px;
    text-shadow: 1px 1px 0px white;
    color: #d4d4d4;
}

.Link {
    float: right;
    background: white;
    font-size: 12px;
    padding: 3px 15px 3px 15px;
    border-radius: 3px;
    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.2);
}

.Text {
    font-size: 19px;
    font-family: "Ubuntu Condensed", sans-serif;
    text-shadow: 1px 1px white;
    color: #9a9a9a;
    text-transform: uppercase;
}

.advertImage {
    height: 150px;
    width: 100%;
    right: 0;
    background: url("../img/advert.png") no-repeat center center;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-bottom: 20px;
    background-size: cover;
}

.eventBox {
    background-color: rgb(244, 244, 244);
    display: inline-block;
    width: calc(100% / 7 - 3px);
    height: 93px;
    text-align: center;
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.22);
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.eventBox .title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 3px 7px 3px 7px;
    font-size: 15px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.37);
    text-align: center;
    text-shadow: 0 1px rgba(255, 255, 255, 0.3);
}

.eventBox .amount {
    text-align: center;
    padding-top: 19px;
    font-size: 13px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.37);
}

.newsImage {
    width: 100%;
    height: 100px;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #489bb3;
    box-shadow: inset 0px -23px 30px -13px rgba(0, 0, 0, 0.59);
    background-size: cover;
}

.newsBadge {
    float: right;
    padding: 5px;
    background: #ffffffe6;
    border-radius: 0px 0px 0px 3px;
    position: relative;
    box-shadow: 0px 1px 0px rgb(0 0 0 / 12%);
    width: 50px;
}

.card-title {
    font-weight: bold;
    color: #2e7a90;
    font-size: 13px;
    padding-bottom: 5px;
}

p {
    margin-bottom: 0 !important;
}

a {
    text-decoration: none;
    font-weight: bold;
    color: #0c93bf;
}

.commentButton {
    background: none;
    border: none;
    outline: none;
    opacity: 0.7;
}

.icon-fw {
    display: inline-block;
    text-align: center;
    width: 1.25em;
}

hr {
    margin: 5px !important;
}

.badgeBox {
    -moz-border-radius: 4px;
    -moz-box-shadow: 0 2px rgba(0, 0, 0, 0.18);
    -webkit-border-radius: 4px;
    -webkit-box-shadow: 0 2px rgba(0, 0, 0, 0.18);
    background: #f1f1f1;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    box-shadow: 0 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: inline-block;
    height: 60px;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 4px;
    position: relative;
    text-align: center;
    -webkit-transition: background 0.8s;
    transition: background 0.8s ease;
    width: 60px;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 0;
    border-radius: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 0 1px rgba(0, 0, 0, 0.24);
    background-image: url("../img/bargradient.png");
    background-size: 100% 100%;
}

.spotlightInfo {
    padding: 5px;
    background: #fff;
    text-align: center;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
}

.smallAvatar {
    height: 80px;
    width: 80px;
    border-radius: 3px;
    border: 2px solid white;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
    background-size: cover;
    background-image: url(/img/avatars/default.gif);
}

.staffCard {
    background: #F5F5F5;
}

.habboBox {
    -moz-border-radius: 4px;
    -moz-box-shadow: 0 2px rgba(0, 0, 0, 0.18);
    -webkit-border-radius: 4px;
    -webkit-box-shadow: 0 2px rgb(0 0 0 / 18%);
    background: #f1f1f1;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    box-shadow: 0 2px rgb(0 0 0 / 5%);
    cursor: pointer;
    display: inline-block;
    height: 63px;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 4px;
    position: relative;
    text-align: center;
    -webkit-transition: background 0.8s;
    transition: background 0.8s ease;
    width: 63px;
    overflow: hidden;
}

.habboBox:hover {
    background: #b959da;
}

.habboBox .habbo {
    margin-top: -10px;
    position: absolute;
    left: 0px;
    z-index: 2;
}

.staffHabbo {
    position: absolute;
    right: 5px;
    bottom: 4px;
    height: 80px;
    overflow: hidden;
    opacity: 0.3;
}

.staffBanner {
    height: 100px;
    width: calc(100% + 10px);
    margin-left: -5px;
    margin-top: -4px;
    background: url(/img/themes/easter/rightBanner.png?4);
    background-size: 100%;
    background-position: center center;
    border-bottom: 3px solid white;
    box-shadow: 0px 1px 1px rgb(0 0 0 / 25%)
}

.staffAvatar {
    background: #000;
    border: 3px solid white;
    border-radius: 50%;
    height: 125px;
    width: 125px;
    position: relative;
    top: -62.5px;
    margin: auto;
    margin-bottom:-50px;
    box-shadow: 1px 1px 1px rgb(0 0 0 / 25%);
}

.onlineStatus {
    height: 26px;
    padding: 5px 7px 5px 5px;
    background: rgba(0,0,0,0.75);
    width: auto;
    position: absolute;
    left: 5px;
    font-size: 0.8em;
    color: #FFF;
    border-bottom-right-radius: 4px;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    height: 35px;
    font-size: 12px;
    line-height: 1.42857143;
    color: #808080;
    border-radius: 3px;
    border: 0;
    -webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.23),
        inset 0 0 0 2px #fff, 0 2px 0 rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.23), inset 0 0 0 2px #fff,
        0 2px 0 rgba(0, 0, 0, 0.1);
    -webkit-transition: border-color ease-in-out 0.15s,
        -webkit-box-shadow ease-in-out 0.15s;
    -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.input-group-text {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    color: #a9a9a9;
    text-align: center;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    -moz-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.btn-success {
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.btn-warning {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
    color: #fff;
    background-color: #ec971f;
    border-color: #d58512;
}

.btn-info {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}

.ajs-message {
    box-shadow: #0000002e 1px 1px 6px 0px;
    color: white;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ajs-message.ajs-error {
    background-color: #c62828;
}

.statBox {
    width: 100%;
    height: 100px;
    text-align: center;
    padding: 17px;
    box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.21);
}

.statBoxHeader {
    color: #fff;
    font-family: "Ubuntu", sans-serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0px 2px 0px rgba(0, 0, 0, 0.22);
    margin: 0;
}

.statBoxContent {
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.22);
    margin: 0;
}

.bg-warning {
    background-color: #ddd855 !important;
}

.bg-success {
    background-color: #64ce75 !important;
}

.bg-danger {
    background-color: #d65c5c !important;
}

.bg-info {
    background-color: #8548bd !important;
}

.warning {
    background-color: #fcf8e3 !important;
}

.handbook h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    font-style: normal !important;
    color: rgb(40, 109, 135) !important;
    margin-top: 0;
}

.handbook big {
    color: rgb(22, 82, 105);
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px solid rgba(45, 99, 120, 0.24);
}

.handbook p {
    margin: 0 0 10px !important;
}

table {
    font-size: 12px !important;
}

td {
    vertical-align: middle !important;
}

#uploadFile .custom-file-control:lang(en)::after {
    content: "Select file...";
}

#uploadFile .custom-file-control:lang(en)::before {
    content: "Click me";
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.27),
        0 3px 0 0px rgba(0, 0, 0, 0.07);
    border: 0 !important;
}

.alert-warning {
    color: #fff;
    background-color: rgb(237, 112, 35);
}

.alert-danger {
    color: #fff;
    background-color: rgb(224, 92, 97);
}

.alert-remembrance {
    color: #fff;
    background-color: rgb(224, 92, 97);
    background-image: url("../img/poppy.png");
    background-repeat: no-repeat;
    background-position: bottom right;
}

.alert-success {
    color: #fff;
    background-color: #5cb85c;
}

.forumContent {
    overflow: auto;
    background-color: rgb(247, 247, 247);
    height: 88px;
    margin-bottom: 9px;
    box-shadow: inset 0 -2px rgba(210, 210, 210, 0.22);
    border-radius: 3px;
}

.forumIcon {
    width: 70px;
    height: 70px;
    float: left;
    margin: 9px 10px 8px 9px;
    border-radius: 35px;
}

.forumTitle {
    padding-left: 9px;
    margin-top: 20px;
    font-size: 17px;
    font-weight: bold;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-shadow: 1px 1px white;
}

.forumDesc {
    padding-top: 3px;
    padding-left: 9px;
}

.postbit {
    background: #f7f7f7;
    border-radius: 2px;
    border-top: none !important;
    box-shadow: inset 0 1px 2px rgba(197, 197, 197, 0.19);
    float: left;
    padding: 8px;
    position: relative;
    text-align: center;
    width: 100%;
}

.postbit-stat {
    width: 200px;
    padding: 8px 12px;
    height: 35px;
    margin: 9px auto 9px auto;
    font-size: 12px;
    line-height: 1.5;
    color: #9e9e9e;
    border-radius: 3px;
    border: 0;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.09);
    background: url("../img/statOverlay.svg");
    text-align: left;
}

.userbar {
    font-family: Tahoma;
    width: 200px;
    position: relative;
    text-align: center;
    border-radius: 2px;
    background-image: url("../img/bargradient.png");
    background-size: 100% 100%;
    padding: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-shadow: rgba(93, 79, 79, 0.51) 0px 1px;
    margin: 2px auto 2px auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.27), 0 2px 0 rgba(0, 0, 0, 0.14);
}

.headerBtn {
    background: rgba(0, 0, 0, 0.18);
    height: 40px;
    margin: -10px -15px 0 0;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.81);
    float: right !important;
    position: absolute;
    right: 20px;
}

.headerBtn:hover {
    color: rgba(255, 255, 255, 0.81) !important;
}

.profile-avatar {
    background-position: top;
    border: 1px solid #fff;
    border-radius: 100%;
    display: inline-block;
    margin: 24px 0 4px;
    margin-bottom: 0.5rem;
    background-image: url(/img/avatars/default.gif);
    height: 115px;
    width: 115px;
    position: absolute;
    margin-top: -85px;
    margin-left: 0px;
}

.profileHeading {
    height: 150px !important;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.12) !important;
    background-color: royalBlue;
}

.headerUsername {
    font-size: 20px;
    margin-left: 130px;
}

.infoBar {
    background: #fff;
    height: 50px;
    margin-bottom: 25px;
    padding: 10px 10px;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.12);
}

.profile-header {
    background-size: cover;
    text-align: center;
    height: 200px;
    position: relative;
    width: 100%;
}

.profile-stat {
    width: 100%;
    padding: 8px 12px;
    height: 35px;
    margin-bottom: 9px;
    font-size: 12px;
    line-height: 1.5;
    color: #9e9e9e;
    border-radius: 3px;
    border: 0;
    box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.09);
    background: url("../img/statOverlay.svg");
}

.loading-overlay {
    background-color: rgba(255, 255, 255, 0.5);
    display: none;
    height: 100%;
    left: 0;
    left: 0;
    position: fixed;
    top: 62px;
    top: 0;
    width: 100%;
    z-index: 2;
}

.loading-overlay-bar {
    border: 2px solid #2369ca;
    height: 2px;
    top: 62px;
    width: 0;
}

footer {
    background-color: #1a1a1a !important;
    width: 100%;
    position: absolute;
    color: white;
}

.mainFooter {
    padding: 30px 0 30px;
    box-shadow: inset 0 -1px #0a0a0a, inset 0 -4px #151515, 0 1px rgb(0 0 0 / 10%);
    -moz-box-shadow: inset 0 -1px #0a0a0a, inset 0 -4px #151515, 0 1px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 0 -1px #0a0a0a, inset 0 -4px #151515, 0 1px rgb(0 0 0 / 10%);
}

.spotlight-box {
    height: 80px;
    width: 100%;
    background-color: rgba(0, 0, 0, .1);
    border: transparent 2px solid;
    border-radius: 6px;
    text-shadow: 0 1px 1px rgb(0 0 0 / 30%);
    text-overflow: ellipsis;
}

.spotlight-info {
    padding: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
}

.spotlight-avatar {
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    width: 64px;
    height: 64px;
    float: left;
    margin: 7px 0 7px 7px;
    image-rendering: auto;
}

.mainFooter h3 {
    font-weight: bold;
}

.mainFooter .list-group-item {
    background: none !important;
    border: none !important;
}

.mainFooter .list-group-item a {
    color: #fff !important;
}

.copyright {
    background: #151515;
    height: 60px;
    line-height: 60px;
}

.quote {
    border: 1px solid #e2e2e2;
    border-radius: 0.2rem;
    width: 100%;
    float: left;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.notification {
    cursor: pointer;
    background-color: rgb(242, 242, 242);
    padding: 10px;
    border-radius: 3px;
    border: 1px solid rgb(232, 232, 232);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.12);
    color: rgb(102, 101, 101);
    font-weight: normal;
    margin-bottom: 8px;
}

.notification .title {
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid rgb(226, 226, 226);
    padding-bottom: 3px;
}

.notification .message {
    padding-top: 6px;
}

.notification .time {
    padding-top: 3px;
    font-size: 11px;
    font-style: italic;
}

.logo {
    background: url(/img/logo.png);
    width: 293px;
    height: 107px;
    position: absolute;
    margin-top: -50px;
}

.radioStats {
    box-shadow: 0px 3px 0px rgba(0, 0, 0, 0.12);
    position: absolute;
    bottom: 35px;
    top: 0;
    left: 0;
    right: 0;
    padding: 4px;
}

.radioButtons {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    padding: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35px;
    padding-top: 6px;
}

.radioButtons .btn {
    color: white;
    border: 0;
    padding: 4px 0px 4px 0px;
    margin-right: 2px;
    outline: none;
    border-radius: 3px;
}

.quickStats {
    width: 64px;
    display: block !important;
    height: calc(100% + 4px);
    float: right;
}

.djHabbo {
    width: 64px;
    display: block !important;
    float: right;
    height: 100%;
    overflow: hidden;
    background: rgba(165, 165, 165, 0.2);
}

.djHabbo .overlay {
    background: url(/img/radioOverlay.png);
    background-size: cover;
    height: calc(100% - 4px);
    width: 64px;
    position: absolute;
    display: block;
}

.statHolder {
    width: calc(100% - 69px);
    display: block;
    float: left;
    height: 100%;
}

.playButton {
    height: 29px !important;
    width: 29px !important;
    margin-right: 4px;
    float: left;
}

.radioSlider {
    width: calc(100% - 100px);
    height: 29px;
    float: left;
    color: #98878e;
    display: block;
    margin-right: 4px;
}

.ui-slider{
    background: rgba(0,0,0,.2);
    border:1px solid rgba(0,0,0,.2) !important;
    cursor:pointer;
    height:26px;
    position:relative;
    background-image: url(../img/bargradient.png);
    background-size: 100% 100%;
    width: 100%;
}

.ui-slider-handle{background-color:#000;bottom:1%;height:2px;visibility:hidden;width:50px}

.ui-slider-range{
    background-color:#59676e;
    background-image: url(../img/bargradient.png);
    background-size: 100% 100%;
}

.radio-stat {
    width: 100%;
    padding: 3px 8px;
    height: 25px;
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    border: 0;
    background-color: rgba(165, 165, 165, 0.2);
    overflow: hidden;
}

.songIcon {
    float: left;
    background-color: #ededed;
}
.radioSong {
    width: 100%;
    margin: 0;
    text-align: center;
    /* Starting position */
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    /* Apply animation to this element */
    -moz-animation: example1 15s linear infinite;
    -webkit-animation: example1 15s linear infinite;
    animation: example1 15s linear infinite;
    white-space: nowrap;
}
/* Move it (define the animation) */
@-moz-keyframes example1 {
    0% {
        -moz-transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%);
    }
}
@-webkit-keyframes example1 {
    0% {
        -webkit-transform: translateX(100%);
    }
    100% {
        -webkit-transform: translateX(-100%);
    }
}
@keyframes example1 {
    0% {
        -moz-transform: translateX(100%); /* Firefox bug fix */
        -webkit-transform: translateX(100%); /* Firefox bug fix */
        transform: translateX(100%);
    }
    100% {
        -moz-transform: translateX(-100%); /* Firefox bug fix */
        -webkit-transform: translateX(-100%); /* Firefox bug fix */
        transform: translateX(-100%);
    }
}

img {
    max-width: 100% !important;
}

.wysibb {
    font-size: 13px !important;
}

.newsHeader {
    width: 100%;
    height: 90px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #fff;
    -webkit-box-shadow: 0 4px 0px 0px rgba(0, 0, 0, 0.06),
        inset 0 0 0px 2px rgba(255, 255, 255, 0.43);
    -moz-box-shadow: 0 4px 0px 0px rgba(0, 0, 0, 0.06),
        inset 0 0 0px 2px rgba(255, 255, 255, 0.43);
    box-shadow: 0 4px 0px 0px rgba(0, 0, 0, 0.06),
        inset 0 0 0px 2px rgba(255, 255, 255, 0.43);
    border: 0;
    margin-bottom: 20px;
    position: relative;
    background-position: top left;
}

.newsHeaderHeading {
    font-family: "Ubuntu", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.91);
    text-shadow: 0 2px rgba(0, 0, 0, 0.32);
    margin: 0px;
    padding: 20px 0 0 0;
}

.newsHeaderContent {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 2px rgba(0, 0, 0, 0.3);
    margin: 5px 0 0 0;
}

.notice {
    width: 100%;
    display: inline;
    float: left;
    font-family: Verdana;
    font-size: 13px;
    background: rgba(237, 237, 237, 1);
    border: 1px solid rgb(224, 224, 224);
    box-shadow: 0px 2px 0px 0px rgb(234, 234, 234);
    padding: 9px;
    color: rgb(134, 134, 134);
    margin: 12px 0px 12px;
    border-radius: 2px;
    font-weight: 600;
    text-shadow: rgb(255, 255, 255) 0px 1px;
    clear: both;
}

.guide-content img {
    margin-bottom: 13px;
}

.spoilerheader {
    font-weight: bold;
    cursor: pointer;
    padding: 6px;
    background: rgb(247, 247, 247);
    border-radius: 4px;
    border: 1px solid rgb(225, 225, 225);
    margin-bottom: 4px;
}

.spoilercontent {
    padding: 6px;
    background: rgb(247, 247, 247);
    border-radius: 4px;
    border: 1px solid rgb(225, 225, 225);
    display: none;
}

.stepHeader {
    width: 100%;
    display: inline;
    float: left;
    font-family: Verdana;
    font-size: 14px;
    background: rgba(237, 237, 237, 1);
    border: 1px solid rgb(224, 224, 224);
    box-shadow: 0px 2px 0px 0px rgb(234, 234, 234);
    padding: 9px;
    color: rgb(134, 134, 134);
    margin: 0px 0px 6px;
    border-radius: 2px;
    font-weight: 600;
    text-shadow: rgb(255, 255, 255) 0px 1px;
    clear: both;
}

.completed {
    font-size: 30px;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    color: #fff;
    background: rgba(200, 200, 200, 0.2);
    opacity: 0.9;
    height: 100%;
    width: 100%;
}

.staffBadge {
    position: absolute;
    left: -10px;
    height: 45px;
    opacity: 0.35;
    z-index: 1;
    top: -10px;
}

/* Falling Leaves */

/* leaf animations */

#leaves {position:absolute;top:-50px;width:98vw;text-align: right;}

#leaves i {
    display: inline-block;
    width: 200px;
    height: 150px;
    background: linear-gradient(to bottom right, #309900, #005600);
    transform: skew(20deg);
    border-radius: 5% 40% 70%;
    box-shadow: inset 0px 0px 1px #222;
    border: 1px solid #333;
    z-index: 1;
    -webkit-animation: falling 5s 0s infinite;
}

#leaves i:nth-of-type(2n) { -webkit-animation: falling2 5s 0s infinite; }
#leaves i:nth-of-type(3n) { -webkit-animation: falling3 5s 0s infinite; }

#leaves i:before {
  position: absolute;
  content: '';
  top: 117px;
  right: 9px;
  height: 27px;
  width: 32px;
  transform: rotate(49deg);
  border-radius: 0% 15% 15% 0%;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  border-left: 0px solid #222;
  border-right: 1px solid #222;
  background: linear-gradient(to right, rgba(0,100,0,1), #005600);
  z-index: 1;
}

#leaves i:after {
  content: '';
  height: 125px;
  width: 10px;
  background: linear-gradient(to right, rgba(0,0,0,.15), rgba(0,0,0,0));
  display: block;
  transform: rotate(125deg);
  position: absolute;
  left: 85px;
  border-radius:50%;
}


#leaves i:nth-of-type(n)    { height:23px; width:30px; }
#leaves i:nth-of-type(n):before { width:7px; height:5px; top:17px; right:1px; }
#leaves i:nth-of-type(n):after { width:2px; height:17px; left: 12px; top:0px; }

#leaves i:nth-of-type(2n+1)    { height:11px; width:16px; }
#leaves i:nth-of-type(2n+1):before { width:4px; height:3px; top:7px; right:0px; }
#leaves i:nth-of-type(2n+1):after { width:2px; height:6px; left: 5px; top:1px; }

#leaves i:nth-of-type(3n+2)  { height:17px; width:23px; }
#leaves i:nth-of-type(3n+2):before  { height:4px; width:4px; top:12px; right:1px; }
#leaves i:nth-of-type(3n+2):after  { height:10px; width:2px; top:1px; left:8px; }

#leaves i:nth-of-type(n)   { -webkit-animation-delay: 1.9s;}
#leaves i:nth-of-type(2n)  { -webkit-animation-delay: 3.9s;}
#leaves i:nth-of-type(3n)  { -webkit-animation-delay: 2.3s;}
#leaves i:nth-of-type(4n)  { -webkit-animation-delay: 4.4s;}
#leaves i:nth-of-type(5n)  { -webkit-animation-delay: 5s;  }
#leaves i:nth-of-type(6n)  { -webkit-animation-delay: 3.5s;}
#leaves i:nth-of-type(7n)  { -webkit-animation-delay: 2.8s;}
#leaves i:nth-of-type(8n)  { -webkit-animation-delay: 1.5s;}
#leaves i:nth-of-type(9n)  { -webkit-animation-delay: 3.3s;}
#leaves i:nth-of-type(10n) { -webkit-animation-delay: 2.5s;}
#leaves i:nth-of-type(11n) { -webkit-animation-delay: 1.2s;}
#leaves i:nth-of-type(12n) { -webkit-animation-delay: 4.1s;}
#leaves i:nth-of-type(13n) { -webkit-animation-delay: 1s;  }
#leaves i:nth-of-type(14n) { -webkit-animation-delay: 4.7s;}
#leaves i:nth-of-type(15n) { -webkit-animation-delay: 3s;  }

#leaves i:nth-of-type(n)    { background: linear-gradient(to bottom right, #A40606, #D98324); }
#leaves i:nth-of-type(2n+2)  { background: linear-gradient(to bottom right, #A40606, #D98324); }
#leaves i:nth-of-type(4n+1)  {background: linear-gradient(to bottom right, #A40606, #D98324);}

#leaves i:nth-of-type(n)    { opacity: .7;}
#leaves i:nth-of-type(3n+1)  { opacity: .5;}
#leaves i:nth-of-type(3n+2)  { opacity: .3;}

#leaves i:nth-of-type(n)    {transform: rotate(180deg);}


#leaves i:nth-of-type(n) { -webkit-animation-timing-function:ease-in-out;}

@-webkit-keyframes falling {

    0% {
        -webkit-transform:
            translate3d(300,0,0)
            rotate(0deg);
    }

    100% {
        -webkit-transform:
            translate3d(-350px,700px,0)
            rotate(90deg);
        opacity: 0;
    }
}

@-webkit-keyframes falling3 {
     0% {
        -webkit-transform:
            translate3d(0,0,0)
            rotate(-20deg);
    }

    100% {
        -webkit-transform:
            translate3d(-230px,640px,0)
            rotate(-70deg);
        opacity: 0;
    }
}

@-webkit-keyframes falling2 {
     0% {
        -webkit-transform:
            translate3d(0,0,0)
            rotate(90deg);
    }

    100% {
        -webkit-transform:
            translate3d(-400px,680px,0)
            rotate(0deg);
        opacity: 0;
    }
}

.alt-selected {
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    margin-top: 1px;
    margin-right: -10px;
    background-color: #2b81d6;
    z-index: 1;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 0.2rem;
    -webkit-transform: rotate(30deg);
    -moz-transform: rotate(30deg);
    -o-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate( 30deg);
}

.newsImage {
    height: 130px;
    padding: 15px;
    color: white !important;
}

.newsImage > .newsTitle {
    color: #fff !important;
    font-size: 110%;
}

.habboBadge {
    width: 60px;
    height: 60px;
    padding: 10px;
    background: #f2f2f2;
    position: relative;
    display: inline-block;
    margin-right: 3px;
    margin-bottom: 3px;
    overflow-y: hidden;
    border-radius: 5px;
}

.habboBadge .habbo {
    margin-top: -10px;
}

.habboBadge:hover {
    background: #b959da;
}

.title {
    color: #999999 !important;
    margin-bottom: 10px;
}

.title h3 {
    font-weight: bold;
}

.title > .buttons {
    float: right;
}

.title > .buttons .btn {
    background: linear-gradient(to bottom, #ffffff, #f7f8f6, #f3f3f2);
    border: 2px solid #dddddd;
    color: #000 !important;
    font-size: 15px;
    padding: 10px 15px;
    margin-top: 2px;
}

.thumbnail {
    height: 118px;
    width: 118px;
    background: #dddddd;
    float: left;
    margin-right: 10px;
}

.thumbnail:before {
    height: 110px;
    width: 110px;
    background: #000;
    position: absolute;
}

.articleInfo {
    background: #f2f2f2;
    padding: 5px;
    border-radius: 5px;
    float: left;
    margin-top: 5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staffBadge {
    position: absolute;
    left: -10px;
    height: 45px;
    opacity: 0.35;
    z-index: 1;
    top: -10px;
}

.threadButton {
    background: #eeeeee;
    height: 40px;
    width: 40px;
    padding: 11px;
    text-align: center;
    box-shadow: 0px 2px 0px rgb(0 0 0 / 12%);
    border-radius: 10px;
    display: inline-block;
}

.commentHolder {
    width: 100%;
    display: block;
}

.commentHolder>.avatarHolder {
    display: block;
    float: left;
    width: 100px;
}

.commentHolder>.contentHolder {
    width: calc(100% - 90px);
    margin-left: 90px;
    min-height: 80px;
    background: #f1f1f1;
    border-radius: 5px 5px 0px 0px;
    color: #777777 !important;
    display: block;
}

.commentHolder>.buttonsHolder {
    width: calc(100% - 90px);
    margin-left: 90px;
    background: #e3e3e3;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0px 0px 5px 5px;
}

/* wysibb */
@font-face {
    font-family: 'WysiBBiconFont';
    src: url('../fonts/wysibbiconfont-wb.eot');
    }

@font-face {
    font-family: 'WysiBBiconFont';
    src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABJ8ABEAAAAAGmAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABgAAAABoAAAAcZibEWkdERUYAAAGcAAAAHQAAACAASwAET1MvMgAAAbwAAABGAAAAVmNj7eZjbWFwAAACBAAAAE0AAAFaADXUDGN2dCAAAAJUAAAAAgAAAAIAAAAAZnBnbQAAAlgAAAGxAAACZVO0L6dnYXNwAAAEDAAAAAgAAAAIAAAAEGdseWYAAAQUAAAL7AAAELBUmhy9aGVhZAAAEAAAAAAvAAAANgEcbE1oaGVhAAAQMAAAACAAAAAkDtEAaGhtdHgAABBQAAAATwAAAHjV7x9TbG9jYQAAEKAAAAA+AAAAPj+yO3JtYXhwAAAQ4AAAACAAAAAgATwBHG5hbWUAABEAAAAAvwAAAYodoTk9cG9zdAAAEcAAAACEAAABNtL4DyxwcmVwAAASRAAAAC4AAAAusPIrFHdlYmYAABJ0AAAABgAAAAbgW1DOeNpjYGBgZACCM7aLzoPpLxM2QumbAFW5CKYAAHjaY2BkYGDgA2IJBhBgYmAEQlkgZgHzGAAFiQBQAAAAeNpjYGS/zTiBgZWBhVWfdToDA6MchGa+xpDMJMDAwMTAyswABwIIJkNAmmsKgwMD7wcGtnP/zjEAScaoBqABIDkAv14LkQAAeNpjYGBgZoBgGQZGBhAIAfIYwXwWBgsgzcXAwcAEhAwMvA8kPjD8/w9WxfuAAcL+/02BRUAWqhcKGNkY4AKMTFDzURQwDHsAAJNvCw4AAAAAAAAAeNpdUbtOW0EQ3Q0PA4HE2CA52hSzmZDGe6EFCcTVjWJkO4XlCGk3cpGLcQEfQIFEDdqvGaChpEibBiEXSHxCPiESM2uIojQ7O7NzzpkzS8qRqnfpa89T5ySQwt0GzTb9Tki1swD3pOvrjYy0gwdabGb0ynX7/gsGm9GUO2oA5T1vKQ8ZTTuBWrSn/tH8Cob7/B/zOxi0NNP01DoJ6SEE5ptxS4PvGc26yw/6gtXhYjAwpJim4i4/plL+tzTnasuwtZHRvIMzEfnJNEBTa20Emv7UIdXzcRRLkMumsTaYmLL+JBPBhcl0VVO1zPjawV2ys+hggyrNgQfYw1Z5DB4ODyYU0rckyiwNEfZiq8QIEZMcCjnl3Mn+pED5SBLGvElKO+OGtQbGkdfAoDZPs/88m01tbx3C+FkcwXe/GUs6+MiG2hgRYjtiKYAJREJGVfmGGs+9LAbkUvvPQJSA5fGPf50ItO7YRDyXtXUOMVYIen7b3PLLirtWuc6LQndvqmqo0inN+17OvscDnh4Lw0FjwZvP+/5Kgfo8LK40aA4EQ3o3ev+iteqIq7wXPrIn07+xWgAAAAABAAH//wAPeNq9V39sG9d9f9873lE8/TgeeSR1lkj57iSeFEk+6yiSVik7DBzFLZNFdk2jUZsImzkkCuq0sIE6g6khPxZ5gFPM66BglVEYqQ00GVYP7+hu+SMuJgORBqg4N0VbIW5WF2mwzFvQFuiP2I3E530f5bpeWnTbPxP0eO993yPf9+fn8z0C5K6/MUIA3iU1+aAkkiGSIXTIpVJATY92ubQnR+MB0HtcfxiGyc6x/uy9UCiBVyhCITsMFq5yQ+AlVZBxFQYZ91TQ7SGA6xEpIqmV2YIBGTVjzRmSIhlQgwdUFWd65ZjDfuw8W9XliMGeYbQmKY46Mi0OlT11RFEUSz2+uX5ct1RCBDh2KyS/gfqJ5OPkWdJAtYepGNDdLk0HdJ/b6BrwcrkcDQd02AP6CZfuXad60ND3KsMXy3pHZLixV+fTvWJkmIY8qkd9C4bpRNCYsLh8QkC56zWsCb6yBiPDfgWGfUvXYjQzQfx9aS3W6CnunZiY2DkmmQlTy49zu9Ogc7NlfMb1VEYs5LxiwRGztmPthvGcmbtzIhENy2HZsZyskxW1cZTBMemTH/6DDkXQVbU8K0lKSR8tOdPKyGQNJLUwpijwgK8rpSlVkvR6/XrjyFLZgcKMmrkmXXEUZUQpOxeemrlFZsq6IUnSaHVBODQloVy11LJxg30w9+7sLDils1W85LkqxrmBcX4B/Xgvhp0aLvqIbvdoxKXDOTqJcS67/n0YZz+Chl8kYq7Qn5qgkxrdg2aD3AdoXRHDr6EHkuEkDznax8108twkZ1LIm3lTy3mpDKSSuaLnZF3I2iY6ABqSYivS2JGpCwZ7AyZR4cF0WVFBvaFDV7kEMMneGF0pOQ8qipRGk5NJSdn4jiLZ4svoG6WW1tlfXV7RM9Z0WlWs6bJhHB+7DMcy6sOGis740t8YxgWeK6u3nghvSG2knWwnB0ijl+fK9oD2uDQa0JhLEwFmAFDTpR3rDbkt5nke7Q1ob9SPYkp0BzTt8eQgfk+vFvMlcWLCj0VxJgs8+BEhFYFiBJyIMAn5XN7euRvMtDAMiVwaTFiFF9mJFTgJJ9dYHRbW2Al2QvzO5iacmT27yR4P7WFf4PsLrL62degEnNz4nDGYnp8+ePhCfa4yTVo2kLnwhnwv2mCRhwjtcGlfQDMu1QIad1FHoLZLO7n6ca4+bvZFfQ3V7+EB9fu5+n0dqHQbQfW1DM7aIx9RX7utfx6fdyz4wwb8XvUZhaju2PWKVFZrr942gYTIU0QKr0l/gjUbJh0kQQYITfAYAE26tGudxgLa4fkprmo0cUfBoqmZKRyoYxHIeMFLJnTZeir82M3zS3L219eKMA/VTWiwE0+fP3r0vCQ9en7jZwWxn8Xfbb4nPH/u6aenq8fxfpEcIyvhldDLeLNBXPIYoaJLR3K0LaDbPK5CKqCqS60cL4IsJsROl8I6bQ9oe9TPoCvvCfwxxIBMuxb7x3A02b3NxmIgfrINdYV70K1qCmdkiGsdi8ZyJoKiaWWx7gs5cwdg0qNfExKKUYQ1sAfwSCwq4Eb22OITcKhSzzR/ZRcKttCeqVfY389BQmyyutBuF4pW81cog+rc4uIc+3plXnyeHWbvLM6XBj9wJuuLza9dvXr09pz9uLXF84bUCQl/WXqcpEiaaKQRx9wHzBu/rwXe8UIRleiXvGQqJnZB2DK32zvAEaQCZPudujJoHK4JN4XE8WPds7PG0eM2yzeHK3O1dEUMz8JyjS1Vxb98daE2LUmzx5nJsvUZSaoeAf3cFBQrmyUed5mM3HoF4/5oK+7tRCVx1KZMKMF6y1EIaKdHQ5gHOU4ymkfbEIVyNBLQBMag26Vk3Q+1YU6LgS8rnucbLdVTmqnB7RG/az4C97F/3ho3pMc/PLM1ZrhE2AVT7HWsUpxvfPGjki1dK+zD8JocR6SYJNPkIPkU+Qy5RGjURdaj+116IKCCd7H7wP62VmkdiHIkqbr0EPLj9nWN7gou9h+q4mYxoIeidITLnIA+4tJyjs4E9OGATnn0QZd+HNP+UZea6xeJNvSJ/pSHX6X7Aror6us8yQbQ4o6gIY99DOu5oXe0eGsb0tBjuLvLRPbp7tmN7EN17WKq96E/wlT0O/Zh/kXun8CkPLAfiSqCiVgYRwJOIiiH+QcHaBTkxx2bP73dYIt5LrCt/Din8VTrqMxr39Nt0JO5Vrramm3pCPO2BXf5umJcNxzDGOy+bhgrxhMG/q8Y5bMrCL/fc3TDMKxTK4bB3lIVUFWlcs0wDh82hG2/DctCzU4/7Ri6U8/YtdIYHPYckL89MzemWrphPTtiGLXDwmU9jc0BvFRjVzaGfjdqErl062C4jjELY24ZxMSeZbFV22rA0wdRBZF9MMcbg36PtrvYFPD+hdc2Jlkk6vdgbW8Bpo0zjJYT9TtxJgW8x/F7IujVaAxd3ad9Iyyo3Qr3tWNrsW/IYleqnTNip+bHE9zvsW7kyVBbJ/AzaQzTRYl0RHDBIQGz6q4h6nlTz+uh7f0xjmoIav23n5fghvAm3GRtzZ3sBWgIf4ro9nDzK774L+w9doT9e7pan5mpw+bM/MGD86EePNUGN/k3Nj73m7PsYWEbSBKcXl0R+uar1fmZmdYn55IzZEF+PPR51MEkZMCEvMbRyJITmp5E1v0dwRnQwbYMdtCwbeN1ePHO0rKM1xfgF3H4O8Oyu9mnDIvl/9uStHD3NBkLvyKNY9Vb5GPkS4Rj7a4cD0/Wo9ZvmAyrSWnhcSigHlZ+iVc+7QwanYTnfmc8wj/D2JZ1Rv1uDI+JFN1iOjPqD+G6EDSGCvzokM2PDrlYLJMYv+5OjJ+iIj6bhMejPTvKQzak+c4IhgwZRhtPmV44oaPNKU0vmrxHa6G1luedHQ4JuzvTc7RxFLf6OC+s8SOnM8KTKsTZOxl0ypRuNF/ICH8u9LG/hSdxeDo8qEI3+6GuCk9mIN38C6Mcel8B6YiibiZ1UGsKwDI8d/kye2b5Rk1VxZ+qyhEpspHAHleCOezNrmBvprUYK92KFrZWZi6v7RbNtKilPop/cw14lf9/eOYsvMl2wpunth61FbBXN9Tr19WNVfbDMaiyr8P3ocyW2XBr/gMosRUeK/gWGZM/K33lNlb3E47MCMuI1QjUiMwRrB1sPto4L/IiQfdxUruDCt8KvbzxS/HPmr3CfmHXBx80fw2X2P3iQ0Jf851WH/MS2nRO4r+uoEVUxp8KGm0yD1sbRJCb2l2/o/WzA5iIpmOG46YIL8ElWIRvsmcm2eHSKZAWanjNHy8vw2W4wHMMhB0wKEdCe5DxCH5P2CG+zWKhPZv/iXcKO245ckT+Au5JfDcibm2zOPwEfipMbr4fmhATm+/zHgV9rshXQu/c4ap+ctv2LT+0PMAd0Il+iLq8w+Kqcg/cPeZ+C3F8KCsrMLO6Cp9eW4PZ1dU/eE/rt2/f07rzf3HPxr5Qx2an+DbeE9JWV9m5tTX2tf/hnv+7PeLbmwOhzo1f/D/Y80u0Z+D32AMwx96Tr8jPk1GykwDd0cIIvAWifi9CAEKKGvXjOEsGNBn1wzjLBr67lae5qBQa6DdgfAd0Ace2Ql7LaXoX7OCIt0fICCgU5FB/VoC5RRgEGQDUpatXl1ZWF/96be300deuXXvt6NLP2VvsrZ8vYV987sX6wmnYLzRPLY+OLp9qpupzT8wL+5v02dcGB//pOeE/Tl87WiwevXa6KV5i312amlqC0RYmwo9IRX5E6iUOyZP7yUyrE/YCbgDinh1QO0oFdNUU+m2dDga04NHBKDeEbgtomXcVfYH/AKJbeRCJ3pugruanezkDlTwEuW3poUKLdEAv5rC7Q1aPhrsA2T+VwNez7dj25aMD+f7iOL5+DqEUNHxDE7Cztq0swt54cbzIX9kS2As48KOuyYKDr1xSerCsQ1xIwOjJcpV9FRQ4NXMdvfGvKsDl09VSyTtZny5J0wslR39kqhH6NxXsqerVNfbKfSMZ1TLKmbMVgIPS9Nr5ygiom58BO22kq/ctPjJ9HOYXlpH+BzPO2ExlUiVACLvSRuQrvKYNgLbW8iZ3338BJ32bh3jaY2BkYGAA4hPnzHXi+W2+MshzMIDAmS8TbiHof+c4GNjOAbkcDEwgUQBg/gzIAHjaY2BkYGA7928ZAwPnYgaGHwwcDAxAERQgBwBxfwRFeNrjYIAAxvkMDEwrGRg4FzMwcDAwPgbiIiDeBMTHIJghF4iLOFgYqoG0DhB7AfEeoNwsIN0PpDOA+DQQT+VgYNKDYLAYOr4Psg8An9sPKgAAAAAAAAAAAAAAAAgAWAD8AW4B0AIyAnIC7AMuA4QEXgT2BS4FygYEBjQGYAZuBoQGuAbsByAHVAe4CEoIWAAAAAEAAAAeAFwABgAAAAAAAgABAAIAFgAAAQAAvAAAAAB42n2QvQ4BQRSFv2UJjVKl2FoQFpEoRXQaBTWCSIRkUeg8kKdQ8RKewgM4s3tJNJvJ3Dn355w5M0CBNVk8v4hHBQxnKClLcJYpVcM+Na6Gc5S5Gc5r+m74ofrL8JMmb2ZcOLJloLVlyYE9oziemLBiw5kdc6Jf1Z2R6isCQhpSCehrpyklEy161BVDxVA8h9JZ/w6myqJ42vWdnrs9TWEmxkK/+NVLGGPjD9Vdmq9A9Y5cNukqtuNXmccPQmg2/wB42n3POQ7CQAxG4XnDEvZ9B3GGcSABSpbkLjR03J8BflosWZ+7Jzvv/s82Ls7jqVClRp2EBk1atOnQpUefAUNGjJkwZcacBUtWrNkkz8c9hHB7W8RDmkzlTu5lJnN5kEd5kmd5kVf56xWy/Grqm/qmvqlv6pv6pr6pb59+Gf94Ab4GPNu4Af+FsAGNAEuwCFBYsQEBjlmxRgYrWCGwEFlLsBRSWCGwgFkdsAYrXFhZsBQrAAAAAVDO4FoAAA==) format('woff'),
         url('../fonts/wysibbiconfont-wb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


 
html{height:100% !important;}

/* RESPONSIBLE */
.wysibb{
	border:1px solid #ddd;
	position:relative;
	background:#fff;
	font-size:12px;
}

.wysibb button:focus,.wysibb button:active,#wbbmodal button:focus, #wbbmodal button:active{
    outline: 0;
}

.wysibb-body{
  overflow-x: auto !important;
}
.wysibb-body ul,.wysibb-body ol{padding:0 0 0 30px}
.wysibb-texarea,.wysibb-texarea:active{
  border:none !important;
  margin:0 !important;
  outline: none !important;
  padding:0 !important;
  width:100% !important;
}

/* MOBILE DEFAULT STYLES*/
.wysibb .wysibb-toolbar{
  float:left;
  width:70px;
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  padding:0;
  border-right:1px solid #ccc;
}
.wysibb .wysibb-text{
  margin:0 0 0 70px;
}
.wysibb .wysibb-toolbar .modeSwitch{
  display:block;
  position:relative;
  right:0;
  top:0;
  border:0;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container{
  border:0;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select{
  width:60px;
  max-width:96%;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container select.wbb-selectbox{
  height:30px;
  max-width:96%;
  margin:1px 0;
  display:inline-block;
  background:transparent;
  border:0;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select{
  display:none;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn {
  display:inline-block;
  height:32px;
  vertical-align: middle;
  padding:0px 1px;
  cursor:pointer;
  margin:0 0 0 1px;
  font-size: 11px;
  border:1px solid transparent;
  box-sizing:border-box;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn:hover span.btn-tooltip{
  display:none;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .dis,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.dis:hover{opacity:0.3;cursor:default;overflow:hidden;border:0;padding:1px 2px;background:transparent;}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.on,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.on:hover,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn:active {
  background:#ccc;
  padding:0px 1px;
  box-shadow:inset 0px 0px 3px #aaa;
  border:1px solid #aaa;
  border-radius:0px;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn span.btn-inner {
  display:block;
  height:26px;
  min-width:26px;
  margin:2px;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn span.btn-tooltip {
  display:none;
  background:#333;
  border:1px solid #fff;
  position:absolute;
  line-height:20px;
  font-size:11px;
  padding:3px 10px;
  bottom:35px;
  left:0;
  color:#fff;
  border-radius:0px;
  white-space:nowrap;
  z-index:10000;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn span.btn-tooltip ins{
  width:0;
  height:0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #333;
  position:absolute;
  bottom:-5px;
  left:3px;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn span.btn-text {
  text-transform: uppercase;
  font-family: sans-serif,Verdana,Tahoma;
  font-weight:bold;
  line-height:28px;
  text-align:center;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn:hover {
  padding:0px 1px;
  border:1px solid transparent;
  border-radius:0px;
  background:#eee;
}

.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn .fonticon{
  color:#333;
  font-family: 'WysiBBiconFont';
  font-size:18px;
  line-height:28px;
  text-shadow:0px 1px 0px #fff;
  text-align:center;
  speak: none;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn:hover .fonticon{
  color:#000;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.on .fonticon{
  text-shadow:none;
  color:#000;
}
.wysibb .wysibb-toolbar .modeSwitch .wysibb-toolbar-btn{
  /* width:46px; */
}
.modesw{
  font-weight:bold;
  font-size:1em;
  line-height:28px;
  text-align:center;
  display:block;
  text-transform:uppercase;
  min-width:60px !important;
}

 

.ve-tlb-bold{background:url(./img/icons.png) 0 0 no-repeat;width:20px;}
.ve-tlb-italic{background:url(./img/icons.png) 0 -40px no-repeat;width:20px;}
.ve-tlb-underline{background:url(./img/icons.png) 0 -20px no-repeat;width:20px;}
.ve-tlb-strike{background:url(./img/icons.png) 0 -120px no-repeat;width:20px;}
.ve-tlb-link{background:url(./img/icons.png) 0 -80px no-repeat;width:20px;}
.ve-tlb-unlink{background:url(./img/icons.png) 0 -100px no-repeat;width:20px;}
.ve-tlb-img{background:url(./img/icons.png) 0 -60px no-repeat;width:20px;}
.ve-tlb-quote{background:url(./img/icons.png) 0 -140px no-repeat;width:20px;}
.ve-tlb-spoiler{background:url(./img/icons.png) 0 -160px no-repeat;width:20px;}
.ve-tlb-list{background:url(./img/icons.png) 0 -180px no-repeat;width:20px;}
.ve-tlb-bbcode{background:url(./img/icons.png) 0 -200px no-repeat;width:40px !important;margin:1px auto !important;height:20px;}
.ve-tlb-numlist{background:url(./img/icons.png) 0 -220px no-repeat;width:20px;}
.ve-tlb-textleft{background:url(./img/icons.png) 0 -240px no-repeat;width:20px;}
.ve-tlb-textcenter{background:url(./img/icons.png) 0 -260px no-repeat;width:20px;}
.ve-tlb-textright{background:url(./img/icons.png) 0 -280px no-repeat;width:20px;}
.ve-tlb-offtopic{background:url(./img/icons.png) 0 -300px no-repeat;width:20px;}
.ve-tlb-code{background:url(./img/icons.png) 0 -320px no-repeat;width:20px;}
.ve-tlb-spoiler{background:url(./img/icons.png) 0 -340px no-repeat;width:20px;}
.ve-tlb-sub{background:url(./img/icons.png) 0 -360px no-repeat;width:20px;}
.ve-tlb-sup{background:url(./img/icons.png) 0 -380px no-repeat;width:20px;}
.ve-tlb-colorpick{width:50px;height:24px;line-height:24px;text-align:center;}
.ve-tlb-table{background: url(./img/icons.png) 0 -460px;width:20px;}
.ve-tlb-smilebox{background: url(./img/icons.png) 0 -480px;width:20px;}
.ve-tlb-video{background: url(./img/icons.png) 0 -500px;width:20px;}
.ve-tlb-removeformat{background: url(./img/icons.png) 0 -540px;width:20px;}

.tthotkey{color:#ddd;font-size:9px;}

/* END TOOLBAR */

/* CONTENT */
/* .wysibb-body{text-align:left;min-width:0 !important;overflow:auto !important;margin:0 !important;padding:0 !important;} */
.wysibb-text-editor{outline:none}
.bottom-resize-line{display:none;height:5px;cursor:ns-resize;}
.bottom-resize-line:hover,.bottom-resize-line.drag{background:#eee}
/* END CONTENT */

/* DEFAULT STYLES */
.wbbtab{
  margin-left:30px;
}
/* END DEFAULT STYLES */

/* DROPDOWN */
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown:active{
  padding-right:10px;
  background:transparent;
  border:1px solid transparent;
  box-shadow: none;
  position:relative;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown:hover{
  background:#eee;
  border:1px solid transparent;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown.on,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown.on:active{
   border:1px solid #aaa;
   background:#ccc;
   box-shadow:inset 0px 0px 3px #aaa;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown ins.ar{
  display:block;
  position:absolute;
  right:10%;
  top:0px;
  width:9px;
  height:24px;
 /*  background: url(./img/icons.png) -8px -400px; */
  cursor:default;
  text-decoration:none;
  font-size:14px;
  padding:0 2px;
  line-height:24px;
}


.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown:hover,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown.on{
  padding-right:10px;
/*   background-position: 14px -399px; */
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown.dis,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-dropdown.dis:hover{
/*   padding-right:9px; */
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn .wbb-list{
  display:none;
  position:fixed;
  top:10px;
  left:3%;
  border: 1px solid #bbb;
  box-shadow: 0px 0px 3px #aaa;
  width:90%;
  padding:5px;
  background:#fff;
  max-height:90%;
  overflow:auto;
  z-index:1000;
}
/* END DROPDOWN */

/* COLORPICKER */
.ve-tlb-colorpick .cp-line {
  display: block;
  position: absolute;
  width: 60%;
  height: 3px;
  background: black;
  bottom: 3px;
  left: 20%;
}

.wbb-list .sc{
  width: 23%;
  height: 30px;
  margin: 0 0 1% 1%;
  display: inline-block;*display:inline;zoom: 1;
  cursor: pointer;
  border:1px solid #fff;
}
.wbb-list .sc:hover{
  border:1px solid #333;
}
.wbb-list .nc{
  height:24px;
  line-height:24px;
  text-align:center;
  color:#666;
  margin:0 1px 5px 1px;
}
.wbb-list .nc:hover{
  background:#eee;
}
.wbb-list .pl{
  display:block;
  height:5px;
}
/* END COLORPICKER */

/* TABLE PICKER */
.tbl-sel{
  border: 1px solid #ddd;
  position: absolute;
  cursor: pointer;
  box-sizing: border-box;
}
.tbl-sel:hover{
  background:#eee;
}
.wbb-table td{
  border: 1px dashed #DDD;
  padding: 3px;
  margin:5px;
  min-width: 5px;
  min-height: 15px;
}
/* TABLE PICKER */

/* SELECT */
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select.dis:hover,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select:active{
  width:100px;
  padding: 1px 1px 1px 5px;
  border:1px solid transparent;
  background:transparent;
  box-shadow:none;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select:hover{
  background:#eee;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select.on,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select.on:active{
   padding: 1px 1px 1px 5px;
   border:1px solid #aaa;
   background:#ccc;
   box-shadow:inset 0px 0px 3px #aaa;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select .wbb-list{
  width:280px;
  padding:0;
  max-height:250px;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select .sar{
  display:block;
  position:absolute;
  right:3px;
  top:3px;
  width:10px;
  height:22px;
  cursor:default;
  font-size:14px;
  text-decoration:none;
}
.wbb-select .val{
  height:28px;
  line-height:30px;
  font-weight:bold;
  font-size:11px;
  display:block;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right:10px;
}
.wbb-select .option{
  display:block;
  padding:6px 10px;
  white-space: nowrap;
  cursor:pointer;
}
.wbb-select .option:hover{
  background:#eee;
}
.wbb-select .option.selected{
  background:#428bca;
  color:#fff;
}

/* END SELECT */

/* SMILEBOX TOOLBAR */
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-smilebox{
  background:transparent;
  border:1px solid transparent;
  box-shadow:none;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-smilebox.on,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-smilebox.on:active{
   border:1px solid #aaa;
   background:#ccc;
   box-shadow:inset 0px 0px 3px #aaa;
}
.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-smilebox .wbb-list{
  width:156px;
}
.smile{
  padding: 5px;
  display: inline-block;*display:inline;zoom: 1;
  cursor: pointer;
  vertical-align:middle;
}
.smile img{
  max-width:16px;
  max-height:16px;
}
/* END SMILEBOX TOOLBAR */

/* MODAL WINDOW */
/* thx http://habrahabr.ru/post/148515/ */
#wbbmodal{
  font: 12px/1.2 Arial,Verdana;
  position: fixed;
  text-align:center;
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  background: rgba(0,0,0,0.5);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#7Fffffff,endColorstr=#7Fffffff);
  zoom: 1;
  z-index: 1100;
}

#wbbmodal  .wbbm{
  background: #fff;
  text-align:left;
  max-width: 90%;
  max-height:90%;
  margin: 30px auto;
  border: 1px solid #bbb;
  box-shadow:0px 0px 5px #333;
  overflow:auto;
}
#wbbmodal  .wbbm-title{
  color:#333;
  position:relative;
  padding:5px 10px;
  border-bottom:1px solid #ccc;
}
#wbbmodal  .wbbm-title .wbbm-title-text{
  font-size:1.6em;
  line-height:2em;
  margin:0;
  padding:0;
}
#wbbmodal  .wbbm-title .wbbclose{
  display:block;
  text-transform:uppercase;
  position:absolute;
  right:15px;
  top:15px;
  font-size:21px;
  font-weight:bold;
  cursor:pointer;
  color:#888;
}
#wbbmodal  .wbbm-title .wbbclose:hover{
  color:red;
}
#wbbmodal  .wbbm  .wbbm-tablist{
  padding: 10px 20px;
}
#wbbmodal  .wbbm .wbbm-tablist ul{
  list-style-type:none;
  padding:0;
  margin:0;
}
#wbbmodal  .wbbm .wbbm-tablist ul li{
  padding:10px;
  cursor:pointer;
  margin: 5px 0;
  position:relative;
  border-radius: 0px;
  display:inline-block;
  margin: 0 10px 5px 0;
}
#wbbmodal  .wbbm .wbbm-tablist ul li.on,#wbbmodal  .wbbm .wbbm-tablist ul li.on:hover{
  background:#428bca;
  color:#fff;
  cursor:default;
}
#wbbmodal  .wbbm .wbbm-tablist ul li:hover{
  background:#eee;
}

#wbbmodal  .wbbm-cont{
  padding:10px 20px;
}
#wbbmodal .wbbm-content{
  min-height:50px;
  max-height:100%;
}

#wbbmodal .div-modal-text{
  border:1px solid #aaa;
  padding:2px 5px;
  line-height: 28px;
  max-height:100px;
  overflow:auto;
  font-size:14px;
}
#wbbmodal  .wbbm-bottom{

  border-top:1px solid #ccc;

  padding:10px;
  background:#f1f1f1;
}
#wbbmodal button{
  display:inline-block;*display:inline;zoom: 1;
  font-size:14px;
  padding:3px 15px;
}
#wbbmodal .wbb-button{
  background:#428bca;
  color:#fff;
  line-height:26px;
  border:1px solid #357ebd;
  border-radius:0px;
  
  cursor:pointer;
}
#wbbmodal .wbb-button:hover{
  background:#3276b1;
  border:1px solid #285e8e;
}
#wbbmodal .wbb-cancel-button{
  background:#f5f5f5;
  color:#333;
  line-height:26px;
  border:1px solid #ddd;
  border-radius:0px;
  cursor:pointer;
  margin-left:15px;
}
#wbbmodal .wbb-cancel-button:hover{
  background:#fff;
  border:1px solid #ccc;
}
#wbbmodal .wbb-remove-button{
  background:#d9534f;
  color:#fff;
  line-height:26px;
  border:1px solid #d43f3a;
  border-radius:0px;
  cursor:pointer;
  float:right;
}
#wbbmodal .wbb-remove-button:hover{
  background:#d2322d;
  border:1px solid #ac2925;
}

#wbbmodal .wbbm-inp-row{
  margin-bottom:15px;
}
#wbbmodal .wbbm-inp-row label{
  display:block;
  font-weight:bold;
  margin-bottom:3px;
}
#wbbmodal .wbbm-inp-row input{
  display:block;
  height:34px;
  padding:2px 5px;
  line-height: 1.42857143;
  font-size:14px;
  width:100%;
  border:1px solid #aaa;
  outline:none;
  box-sizing:border-box;
  border-radius:0;
}

#wbbmodal .wbbm-inperr{
  color:red;
  font-size:10px;
  display:block;
}
#wbbmodal .wbbm-brdred{
  border-color:red !important;
}

/* IMAGE UPLOAD */
#wbbmodal #imguploader{
  text-align: center;
}
#wbbmodal #imguploader.drag{
  border: 3px dashed #ccc;
}
#wbbmodal #imguploader.drag.dragover{
  background:#feffe4;
}
#wbbmodal #imguploader.drag.wbb-loading{
  padding:40px 0;
}
#wbbmodal #imguploader.drag .p{
  font-size:2em;
  color: #aaa;
  margin-top: 15px;
}
#wbbmodal #imguploader.drag .p2{
  color: #AAA;
}
#wbbmodal #imguploader.drag .fileupload{
  margin: 15px 0;
}
#wbbmodal .fileupload{
  margin: 40px 0;
  position: relative;
}
#wbbmodal .dragupload{
  margin: 10px 0 15px 0;
  position: relative;
}
#wbbmodal .fileupload input.file {
  opacity: 0;
  filter: alpha(opacity=0);
  width: 230px;
  height: 32px !important;
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: -115px;
  display: block;
}

.loader{
  margin:30px 0;
}
.upl-error{color:red;display:block;}

.powered{
  display:block;
  position:absolute;
  bottom:-18px;
  right:5px;
  font-size:10px;
}
/* END IMAGE UPLOAD */
/* MODAL WINDOW */

/* CONTENT STYLES*/
.wysibb .wysibb-body .imgWrap{
  position:relative;
  display:inline-block;
}
.wysibb .wysibb-body .imgWrap img{
  opacity:0.5;
}


/* PHPBB3 */
.content-phpbb3{
  font-size:13px;
  line-height:normal !important;
}
.content-phpbb3 .codebox dt{
  float:none;
  width: 100%;
}
.content-phpbb3 .codebox dd{
  margin:0 !important;
}



/* DESKTOP AND TAVBLETS STYLES */
@media (min-width: 992px) {
	/* TOOLBAR */
	.wysibb .wysibb-text{
	  padding:5px;
	  margin:0;
	}
	.wysibb .wysibb-toolbar{
	  float:none;
	  width:auto;
	  overflow:visible;
	  border-right:0;
	}
	.wysibb .wysibb-toolbar {
	  border-bottom:1px solid #ddd;
	  position:relative;
	  padding:0 60px 0 0;
	  height:auto;
	}
	.wysibb .wysibb-toolbar .wysibb-toolbar-container {
	  margin:0;
	  border-right: 1px solid #ddd;
	  padding:0;
	  display:inline-block;
	}
	
	.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn {
	  display:inline-block;
	  height:32px;
	  min-width:28px;
	  position:relative;
	  vertical-align: middle;
	  padding:0px 1px;
	  cursor:pointer;
	  margin:0 0 0 1px;
	  font-size: 11px;
	  border:1px solid transparent;
	  width:auto;
	}
	.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn:hover span.btn-tooltip{
	  display:block;
	}
	.wysibb .wysibb-toolbar .modeSwitch{
	  text-align:center;
	  position:absolute;
	  right:0px;
	  top:0px;
	  border:0;
	}
	.wysibb .wysibb-toolbar .wysibb-toolbar-container select.wbb-selectbox{
	  display:none;
	}
	.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select{
	  display:inline-block;
	}
	.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select span.val,.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn.wbb-select ins{
	  display:block;
	}
	
	.wysibb .wysibb-toolbar .wysibb-toolbar-container .wysibb-toolbar-btn .wbb-list{
	  display:none;
	  position:absolute;
	  top:32px;
	  left:-1px;
	  border: 1px solid #bbb;
	  box-shadow: 0px 0px 3px #aaa;
	  width:190px;
	  background:#fff;
	  max-height:220px;
	  overflow:auto;
	  z-index:1000;
	}
	
	.wbb-list .sc{
	  width: 16px;
	  height: 16px;
	  margin: 0 0 1px 1px;
	  display: inline-block;*display:inline;zoom: 1;
	  cursor: pointer;
	  border:1px solid #fff;
	}
	
	.ve-tlb-colorpick{width:24px;height:24px;line-height:24px;text-align:right;}
	.wysibb .bottom-resize-line{display:block;height:5px;cursor:ns-resize;}
}

/* ==============================================
   HabboQuests Admin Theme v2.0 (Bootstrap-first)
   Only custom styles that Bootstrap can't provide.
   ============================================== */

/* --- Section headings (shared by sidebar + content) --- */
.text-heading {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0.6;
}
.text-heading-link {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 6px;
    background: rgba(66, 165, 245, 0.12);
    color: #42a5f5;
    text-decoration: none;
    transition: background 0.15s ease;
}
.text-heading-link:hover {
    background: rgba(66, 165, 245, 0.22);
    text-decoration: none;
    color: #42a5f5;
}

/* --- Sidebar nav links (hover/active effects) --- */
.new-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s ease, padding-left 0.12s ease;
    text-decoration: none;
}
.new-nav-link:hover {
    background: rgba(255,255,255,0.05);
    padding-left: 20px;
    text-decoration: none;
}
.new-nav-link .bi {
    font-size: 15px;
    opacity: 0.5;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.new-nav-link.new-nav-active {
    background: rgba(66, 165, 245, 0.12);
    border-left: 3px solid #42a5f5;
    padding-left: 13px;
    color: #42a5f5;
}
.new-nav-link.new-nav-active .bi { opacity: 1; color: #42a5f5; }
.new-nav-link.new-nav-active:hover {
    padding-left: 13px;
    background: rgba(66, 165, 245, 0.18);
}

/* --- Dashboard stat cards (hover/pseudo decorations) --- */
.new-dash-stat {
    border-radius: 10px;
    padding: 20px 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.new-dash-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.new-dash-stat .stat-icon { font-size: 20px; opacity: 0.7; margin-bottom: 6px; }
.new-dash-stat .stat-value {
    font-family: "Ubuntu", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.new-dash-stat .stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 4px;
}
.new-dash-stat::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
@media (max-width: 991px) {
    .new-dash-stat { min-height: 100px; margin-bottom: 0; }
    .new-dash-stat .stat-value { font-size: 28px; }
}

/* Gradient backgrounds */
.stat-green  { background: linear-gradient(135deg, #43a047, #66bb6a); }
.stat-blue   { background: linear-gradient(135deg, #1e88e5, #42a5f5); }
.stat-teal   { background: linear-gradient(135deg, #00897b, #26a69a); }
.stat-orange { background: linear-gradient(135deg, #ef6c00, #ffa726); }
.stat-purple { background: linear-gradient(135deg, #7b1fa2, #ab47bc); }
.stat-red    { background: linear-gradient(135deg, #c62828, #ef5350); }
.stat-gradient-success { background: linear-gradient(135deg, #28a745, #20c997) !important; }
.stat-gradient-secondary { background: linear-gradient(135deg, #6c757d, #868e96) !important; }
.stat-gradient-info { background: linear-gradient(135deg, #17a2b8, #20c9e0) !important; }

/* --- Stat rows (hover/border effects) --- */
.admin-stat-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.04); }
.admin-stat-row:hover { background: rgba(255,255,255,0.03); }
.admin-stat-row a { color: #42a5f5; }
.admin-stat-row a:hover { color: #90caf9; text-decoration: none; }

/* --- Status badges (unique colours) --- */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.open { background: rgba(23, 162, 184, 0.15); color: #17a2b8; }
.status-badge.active { background: rgba(255, 193, 7, 0.15); color: #e6ac00; }
.status-badge.closed { background: rgba(220, 53, 69, 0.15); color: #dc3545; }

/* --- Staff badge (gradient) --- */
.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* --- Reply delete button (hover effect) --- */
.admin-reply-delete-btn {
    border: 0;
    background: transparent;
    opacity: 1;
    font-size: 13px;
    margin-left: 10px;
    cursor: pointer;
    color: #9aa4af;
    transition: color 0.2s, opacity 0.2s;
}
.admin-reply-delete-btn:hover { opacity: 1; color: #dc3545; }

/* --- Ticket/Thread reply card left accent --- */
.reply-card { border-left: 3px solid #17a2b8 !important; }
.reply-card.thread-post-deleted { border-left-color: #dc3545 !important; opacity: 0.6; }

/* --- System event replies --- */
.system-event { border-left-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.system-event .card-body { padding: 0 !important; }
.system-event .reply-header { display: none !important; }
.system-event .reply-body .alert {
    margin: 0;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.system-event .reply-body .alert .sys-icon { flex-shrink: 0; font-size: 14px; }
.system-event .reply-body .alert-danger { background: rgba(220, 53, 69, 0.08); color: #dc3545; }
.system-event .reply-body .alert-info { background: rgba(23, 162, 184, 0.08); color: #17a2b8; }
.system-event .reply-body .alert-success { background: rgba(40, 167, 69, 0.08); color: #28a745; }
.system-event .reply-body .alert b,
.system-event .reply-body .alert strong { font-weight: 700; }

/* --- Message block (pre-wrap text) --- */
.message-block {
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* --- Ticket timeline layout --- */
.ticket-timeline {
    position: relative;
    padding: 4px 0;
    margin-bottom: 18px;
}

.ticket-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(23, 162, 184, 0.25);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 14px;
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-item.center {
    justify-content: center;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
    z-index: 2;
}

.timeline-item.is-activity .timeline-node {
    background: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.2);
}

.timeline-card {
    width: calc(50% - 22px);
    border-left: 0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.timeline-item.center .timeline-card {
    width: min(620px, calc(100% - 48px));
}

@media (max-width: 991px) {
    .ticket-timeline::before {
        left: 12px;
        transform: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right,
    .timeline-item.center {
        justify-content: flex-start;
    }

    .timeline-node {
        left: 12px;
        transform: none;
        top: 16px;
    }

    .timeline-card,
    .timeline-item.center .timeline-card {
        width: calc(100% - 28px);
        margin-left: 28px;
    }
}

/* --- Ticket priority badges --- */
.priority-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.priority-badge.low { background: rgba(108, 117, 125, 0.15); color: #6c757d; }
.priority-badge.normal { background: rgba(23, 162, 184, 0.12); color: #17a2b8; }
.priority-badge.high { background: rgba(255, 152, 0, 0.18); color: #ef6c00; }
.priority-badge.urgent { background: rgba(220, 53, 69, 0.18); color: #dc3545; }

/* --- Ticket type badge --- */
.type-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

/* --- Ticket queue filter bar --- */
.ticket-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ticket-filter-bar .form-control-sm {
    width: auto;
    min-width: 130px;
    font-size: 12px;
}
.ticket-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ticket-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(128, 128, 128, 0.25);
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.ticket-filter-chip:hover { text-decoration: none; border-color: #17a2b8; color: inherit; }
.ticket-filter-chip.is-active { background: rgba(23, 162, 184, 0.15); border-color: #17a2b8; color: #17a2b8; }
.ticket-filter-chip .chip-count {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 700;
}

/* --- Ticket age indicator --- */
.ticket-age { font-size: 11px; white-space: nowrap; }
.ticket-age.is-stale { color: #ef6c00; font-weight: 600; }
.ticket-age.is-overdue { color: #dc3545; font-weight: 700; }

/* --- Unanswered marker on the queue --- */
.ticket-unanswered-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef6c00;
    margin-right: 6px;
    vertical-align: middle;
}

/* --- Internal staff notes --- */
.reply-card.internal-note {
    border-left-color: #ffb300 !important;
    background: rgba(255, 179, 0, 0.06) !important;
}
.timeline-item.is-internal .timeline-node {
    background: #ffb300;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.2);
}
.internal-note-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 179, 0, 0.2);
    color: #b37a00;
}

/* --- Requestor history side panel --- */
.ticket-history-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    font-size: 12px;
}
.ticket-history-item:last-child { border-bottom: 0; }
.ticket-history-item:hover { text-decoration: none; }

/* --- Legacy stat boxes (advent dashboard) --- */
#maincontainer .statBox {
    border-radius: 10px;
    padding: 20px 16px;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#maincontainer .statBox:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
#maincontainer .statBox::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
#maincontainer .statBox.bg-success { background: linear-gradient(135deg, #43a047, #66bb6a) !important; }
#maincontainer .statBox.bg-secondary { background: linear-gradient(135deg, #546e7a, #78909c) !important; }
#maincontainer .statBox.bg-info { background: linear-gradient(135deg, #00897b, #26a69a) !important; }
#maincontainer .statBox.bg-danger { background: linear-gradient(135deg, #c62828, #ef5350) !important; }
#maincontainer .statBox.bg-warning { background: linear-gradient(135deg, #ef6c00, #ffa726) !important; }
#maincontainer .statBoxHeader {
    font-family: "Ubuntu", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    color: #fff;
    margin: 0;
}
#maincontainer .statBoxContent {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 4px;
    color: #fff;
}

/* ==============================================
   Global Bootstrap overrides for admin area
   ============================================== */

#maincontainer .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

#maincontainer .table { margin-bottom: 0; width: 100%; }
#maincontainer .table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    opacity: 0.5;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-top: none;
}
#maincontainer tr.bg-dark.text-white {
    background: transparent !important;
    color: inherit !important;
}
#maincontainer tr.bg-dark.text-white th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    opacity: 0.5;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    color: inherit !important;
    background: transparent;
}
#maincontainer .table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,0.015); }
#maincontainer .table-hover tbody tr:hover { background: rgba(255,255,255,0.04); }
#maincontainer .table td, #maincontainer .table th {
    border-color: rgba(255,255,255,0.04);
    vertical-align: middle;
    font-size: 13px;
}
#maincontainer .table-bordered { border: none; }
#maincontainer .table-bordered td, #maincontainer .table-bordered th { border-color: rgba(255,255,255,0.04); }

#maincontainer .form-control {
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#maincontainer .form-control:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.15);
}

#maincontainer .form-control.form-reg-error {
    border-color: #e94560;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}
#maincontainer label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
#maincontainer .form-group { margin-bottom: 16px; }

#maincontainer .btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
#maincontainer .btn:active { transform: scale(0.98); }
#maincontainer .btn-primary { background: linear-gradient(135deg, #1e88e5, #42a5f5); }
#maincontainer .btn-primary:hover { background: linear-gradient(135deg, #1976d2, #2196f3); }
#maincontainer .btn-success { background: linear-gradient(135deg, #43a047, #66bb6a); }
#maincontainer .btn-success:hover { background: linear-gradient(135deg, #388e3c, #4caf50); }
#maincontainer .btn-danger { background: linear-gradient(135deg, #c62828, #ef5350); }
#maincontainer .btn-danger:hover { background: linear-gradient(135deg, #b71c1c, #e53935); }
#maincontainer .btn-info { background: linear-gradient(135deg, #00897b, #26a69a); color: #fff; }
#maincontainer .btn-info:hover { background: linear-gradient(135deg, #00796b, #009688); color: #fff; }
#maincontainer .btn-secondary { background: linear-gradient(135deg, #546e7a, #78909c); }
#maincontainer .btn-outline-secondary { border: 1px solid #78909c !important; color: #546e7a; background: rgba(84,110,122,0.08); }
#maincontainer .btn-outline-secondary:hover { background: #78909c; color: #fff; border-color: #78909c !important; }
#maincontainer .btn-group .btn { border-radius: 0; }
#maincontainer .btn-group .btn:first-child { border-radius: 8px 0 0 8px; }
#maincontainer .btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
#maincontainer .btn-group .btn:only-child { border-radius: 8px; }

#maincontainer .modal-content { border: none; border-radius: 12px; overflow: hidden; }
#maincontainer .modal-header { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 16px 20px; }
#maincontainer .modal-body { padding: 20px; }
#maincontainer .modal-title { font-weight: 700; font-size: 16px; }

#maincontainer .page-item .page-link {
    border-radius: 6px;
    margin: 0 2px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.08);
}

#maincontainer .alert { border: none; border-radius: 10px; font-size: 13px; font-weight: 500; }

#maincontainer details summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style: none; }
#maincontainer details summary::-webkit-details-marker { display: none; }
#maincontainer details summary::before { content: '\F285'; font-family: 'bootstrap-icons'; margin-right: 6px; font-size: 11px; opacity: 0.4; transition: transform 0.15s ease; display: inline-block; }
#maincontainer details[open] summary::before { transform: rotate(90deg); }
#maincontainer details summary:hover { opacity: 0.8; }
#maincontainer details .log-detail { padding: 6px 10px; margin-top: 6px; background: rgba(0,0,0,0.03); border-radius: 6px; font-size: 12px; color: #78909c; }

/* --- Shop item table components --- */
.shop-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(66, 165, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.shop-item-icon img { max-width: 24px; max-height: 24px; }
.shop-item-icon-placeholder { color: #42a5f5; font-size: 16px; opacity: 0.5; }

/* --- Prefix table components --- */
.prefix-preview {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}
.prefix-colour-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}
.prefix-colour-code {
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: #90a4ae;
}

/* --- Forum management hierarchy --- */
.forum-parent-row {
    background: rgba(255, 255, 255, 0.03);
}
.forum-parent-row td:first-child {
    border-left: 3px solid #42a5f5;
}
.forum-parent-icon {
    color: #42a5f5;
    font-size: 16px;
    opacity: 0.8;
}
.forum-child-row td:first-child {
    border-left: 3px solid transparent;
}
.forum-depth-1 td:first-child { border-left-color: #26a69a; }
.forum-depth-2 td:first-child { border-left-color: #ab47bc; }
.forum-depth-3 td:first-child { border-left-color: #ffa726; }
.forum-depth-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    opacity: 0.5;
}
.forum-depth-indicator.depth-1 { background: #26a69a; }
.forum-depth-indicator.depth-2 { background: #ab47bc; }
.forum-depth-indicator.depth-3 { background: #ffa726; }
.forum-row-deleted { opacity: 0.5; }
.forum-order-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    min-width: 32px;
}

/* --- Usergroup action dropdown --- */
.usergroup-action-group .form-control {
    font-size: 11px;
    padding: 2px 8px;
    height: auto;
}

/* --- Forum permissions table --- */
.forum-perms-table thead th {
    font-size: 10px !important;
    padding: 10px 6px !important;
    white-space: normal;
    line-height: 1.3;
}
.forum-perms-category {
    background: rgba(66, 165, 245, 0.08) !important;
    border-left: 3px solid #42a5f5;
}
.forum-perms-category td { font-weight: 600; }
.forum-perm-check-parent {
    display: flex;
    justify-content: center;
}
.forum-perm-check-parent input[type="checkbox"] {
    accent-color: #42a5f5;
}

.shop-category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    opacity: 0.7;
}

/* --- Site Notices --- */
.site-notice {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    position: relative;
    border-left: 4px solid;
    animation: noticeSlideIn 0.3s ease-out;
}
@keyframes noticeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.site-notice-success {
    background: rgba(40, 167, 69, 0.12);
    border-left-color: #28a745;
    color: #66bb6a;
}
.site-notice-danger {
    background: rgba(220, 53, 69, 0.12);
    border-left-color: #dc3545;
    color: #ef5350;
}
.site-notice-info {
    background: rgba(23, 162, 184, 0.12);
    border-left-color: #17a2b8;
    color: #4dd0e1;
}
.site-notice-icon {
    font-size: 20px;
    margin-right: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}
.site-notice-success .site-notice-icon { color: #66bb6a; }
.site-notice-danger .site-notice-icon { color: #ef5350; }
.site-notice-info .site-notice-icon { color: #4dd0e1; }
.site-notice-content {
    flex: 1;
    min-width: 0;
}
.site-notice-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.site-notice-success .site-notice-title { color: #81c784; }
.site-notice-danger .site-notice-title { color: #ef5350; }
.site-notice-info .site-notice-title { color: #4dd0e1; }
.site-notice-body {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
}
.site-notice-body a {
    font-weight: 600;
    text-decoration: underline;
}
.site-notice-success .site-notice-body a { color: #81c784; }
.site-notice-danger .site-notice-body a { color: #ef5350; }
.site-notice-info .site-notice-body a { color: #4dd0e1; }
.site-notice-close {
    background: none;
    border: none;
    font-size: 14px;
    padding: 0 0 0 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
    margin-top: 1px;
    opacity: 0.4;
    color: inherit;
}
.site-notice-close:hover {
    opacity: 0.8;
}

/* --- Radio timetable --- */
.tt-day-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 4px;
    border: 1px solid rgba(128, 128, 128, 0.1);
    background: transparent;
    color: inherit;
    border-radius: 6px;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.tt-day-btn:hover {
    background: rgba(66, 165, 245, 0.08);
    border-color: rgba(66, 165, 245, 0.2);
    color: inherit;
}
.tt-day-active {
    background: rgba(66, 165, 245, 0.15) !important;
    border-color: #42a5f5 !important;
    color: #42a5f5 !important;
}
.tt-table td, .tt-table th {
    padding: 6px 12px !important;
    font-size: 12px;
}
.tt-time {
    font-weight: 700;
    font-family: "Ubuntu", monospace;
    opacity: 0.6;
}
.tt-col-left {
    border-right: 1px solid rgba(128, 128, 128, 0.08);
}

/* --- Radio connection details --- */
.radio-detail-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.radio-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}
.radio-detail-item:last-child { border-bottom: none; }
.radio-detail-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.55;
}
.radio-detail-value {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
.radio-detail-value code {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(66, 165, 245, 0.08);
    color: #42a5f5;
}

/* --- Light theme overrides (radio details, site notices) --- */
body.theme-light .site-notice-info {
    background: rgba(23, 162, 184, 0.18);
    border-left-color: #0d7a8a;
    color: #0a5f6b;
}
body.theme-light .site-notice-info .site-notice-icon { color: #0d7a8a; }
body.theme-light .site-notice-info .site-notice-title { color: #0a5f6b; }
body.theme-light .site-notice-info .site-notice-body { color: #0a5f6b; opacity: 1; }
body.theme-light .site-notice-info .site-notice-body a { color: #066472; }

body.theme-light .radio-detail-label {
    opacity: 0.85;
    color: #5a5a5a;
}
body.theme-light .radio-detail-value {
    color: #333;
}
body.theme-light .radio-detail-value code {
    background: rgba(13, 122, 138, 0.12);
    color: #0d7a8a;
    font-weight: 600;
}
body.theme-light .radio-detail-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .contentTitle .Icon { color: #6b6b6b; }
body.theme-light .contentTitle .Text { color: #4a4a4a; }

/* --- Radio timetable light theme --- */
body.theme-light #maincontainer .tt-day-btn {
    color: #4a4a4a !important;
    border-color: rgba(0, 0, 0, 0.12);
}
body.theme-light #maincontainer .tt-day-btn:hover {
    background: rgba(66, 165, 245, 0.12);
    border-color: rgba(66, 165, 245, 0.35);
    color: #1976d2 !important;
}
body.theme-light #maincontainer .tt-day-btn:not(.tt-day-active) {
    color: #4a4a4a !important;
}
body.theme-light #maincontainer .tt-day-active {
    background: rgba(25, 118, 210, 0.15) !important;
    border-color: #1976d2 !important;
    color: #1976d2 !important;
}
body.theme-light .tt-time {
    color: #5a5a5a;
    opacity: 1;
}
body.theme-light .tt-col-left {
    border-right-color: rgba(0, 0, 0, 0.08);
}
body.theme-light .tt-table thead th {
    opacity: 1;
    color: #5a5a5a;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}
body.theme-light .tt-table td,
body.theme-light .tt-table th {
    border-color: rgba(0, 0, 0, 0.06) !important;
    color: #333 !important;
}
body.theme-light #maincontainer .btn-outline-success {
    border: 1px solid #2e7d32 !important;
    color: #1b5e20 !important;
    background: rgba(46, 125, 50, 0.06) !important;
}
body.theme-light #maincontainer .btn-outline-success:hover {
    background: rgba(46, 125, 50, 0.14) !important;
    color: #1b5e20 !important;
    border-color: #2e7d32 !important;
}
body.theme-light #maincontainer .btn-outline-danger {
    border: 1px solid #c62828 !important;
    color: #b71c1c !important;
    background: rgba(198, 40, 40, 0.06) !important;
}
body.theme-light #maincontainer .btn-outline-danger:hover {
    background: rgba(198, 40, 40, 0.14) !important;
    color: #b71c1c !important;
    border-color: #c62828 !important;
}
body.theme-light #maincontainer .btn-outline-primary {
    border: 1px solid #1565c0 !important;
    color: #0d47a1 !important;
    background: rgba(21, 101, 192, 0.06) !important;
}
body.theme-light #maincontainer .btn-outline-primary:hover {
    background: rgba(21, 101, 192, 0.14) !important;
    color: #0d47a1 !important;
    border-color: #1565c0 !important;
}

/* --- Admin changelog light theme --- */
body.theme-light #maincontainer .admin-changelog .text-heading {
    color: #4a4a4a !important;
    opacity: 1;
}
body.theme-light #maincontainer .admin-changelog .card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
body.theme-light #maincontainer .admin-changelog .card-header {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .card-body {
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .form-control {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .form-control::placeholder {
    color: #6b7280;
}
body.theme-light #maincontainer .admin-changelog .form-control:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}
body.theme-light #maincontainer .admin-changelog label {
    color: #374151;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-info {
    border: 1px solid #0d7a8a !important;
    color: #0a5f6b !important;
    background: rgba(13, 122, 138, 0.1) !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-info:disabled {
    border: 1px solid #6b9ba8 !important;
    color: #0a5f6b !important;
    background: rgba(13, 122, 138, 0.18) !important;
    opacity: 1;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-secondary {
    border: 1px solid rgba(0, 0, 0, 0.22) !important;
    color: #4b5563 !important;
    background: #f5f6f8 !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-secondary:hover {
    background: #e9edf1 !important;
    color: #111827 !important;
    border-color: rgba(0, 0, 0, 0.32) !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-danger {
    border: 1px solid #c62828 !important;
    color: #b71c1c !important;
    background: rgba(198, 40, 40, 0.06) !important;
}
body.theme-light #maincontainer .admin-changelog .btn-outline-danger:hover {
    background: rgba(198, 40, 40, 0.14) !important;
    color: #b71c1c !important;
    border-color: #c62828 !important;
}
body.theme-light #maincontainer .admin-changelog .alert-info {
    background: rgba(23, 162, 184, 0.15);
    border-left: 4px solid #0d7a8a;
    color: #0a5f6b;
}
body.theme-light #maincontainer .admin-changelog .alert-info a {
    color: #066472;
}
body.theme-light #maincontainer .admin-changelog .alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #f9a825;
    color: #5a4a00;
}
body.theme-light #maincontainer .admin-changelog .changelog-entry-item .card-body {
    color: #333;
}
body.theme-light #maincontainer .admin-changelog .changelog-entry-item hr {
    border-color: rgba(0, 0, 0, 0.08);
}
body.theme-light #maincontainer .admin-changelog .entry-drag-handle {
    color: #6b7280 !important;
}
body.theme-light #maincontainer .admin-changelog .entry-drag-handle:hover {
    color: #374151 !important;
}
body.theme-light #maincontainer .admin-changelog .text-muted {
    color: #6b7280 !important;
}
body.theme-light #maincontainer .admin-changelog .ui-state-highlight {
    background: rgba(66, 165, 245, 0.12) !important;
    border: 1px dashed #42a5f5 !important;
}
body.theme-light #maincontainer .admin-changelog .list-group-item {
    color: #333 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* --- Jingle download cards --- */
.jingle-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.jingle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.jingle-card .card-body {
    text-align: center;
    padding: 16px;
}
.jingle-card-icon {
    font-size: 24px;
    opacity: 0.4;
    margin-bottom: 8px;
    color: #42a5f5;
}
.jingle-card-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Jingle cards light theme --- */
body.theme-light .jingle-card .card-body {
    color: #333;
}

/* --- Goodies page & Team page light theme --- */
body.theme-light .goodies-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .goodies-header-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.18), rgba(33, 150, 243, 0.08));
    color: #1976d2 !important;
}

body.theme-light .goodies-title {
    color: #1a1a1a;
}

body.theme-light .goodies-subtitle {
    color: #5a5a5a;
    opacity: 0.85;
}

body.theme-light .team-section-label {
    color: #4a4a4a;
    opacity: 0.9;
}

body.theme-light .team-section-icon {
    opacity: 0.7;
}

body.theme-light .team-section-count {
    background: rgba(0, 0, 0, 0.08);
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .team-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .team-card:hover {
    background: #fff;
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(33, 150, 243, 0.15);
}

body.theme-light .team-card-banner {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .team-card-avatar {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.theme-light .team-card:hover .team-card-avatar {
    border-color: rgba(33, 150, 243, 0.5);
}

body.theme-light .team-card-name {
    color: #1a1a1a;
}

body.theme-light .team-card-role {
    color: #5a5a5a;
    opacity: 0.8;
}

body.theme-light .team-status-dot {
    border-color: rgba(255, 255, 255, 0.8);
}

body.theme-light .team-card-leave {
    opacity: 0.35;
}

body.theme-light .team-card-leave:hover {
    opacity: 0.5;
}

body.theme-light .team-card-habbo {
    opacity: 0.45;
}


body.theme-light .lb-stat-card {
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .lb-stat-green  { background: rgba(76, 175, 80, 0.12); }
body.theme-light .lb-stat-green .lb-stat-number { color: #2e7d32; }

body.theme-light .lb-stat-yellow { background: rgba(255, 193, 7, 0.15); }
body.theme-light .lb-stat-yellow .lb-stat-number { color: #f9a825; }

body.theme-light .lb-stat-red    { background: rgba(239, 83, 80, 0.12); }
body.theme-light .lb-stat-red .lb-stat-number { color: #c62828; }

body.theme-light .lb-stat-purple { background: rgba(133, 89, 136, 0.12); }
body.theme-light .lb-stat-purple .lb-stat-number { color: #7b1fa2; }

body.theme-light .lb-stat-teal   { background: rgba(77, 182, 172, 0.12); }
body.theme-light .lb-stat-teal .lb-stat-number { color: #00897b; }

body.theme-light .lb-stat-blue   { background: rgba(79, 195, 247, 0.12); }
body.theme-light .lb-stat-blue .lb-stat-number { color: #1976d2; }

body.theme-light .lb-stat-label {
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .lb-stat-bg-icon {
    opacity: 0.1;
}

body.theme-light .lb-board-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .lb-board-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #4a4a4a;
    opacity: 1;
}

body.theme-light .lb-board-header i {
    opacity: 0.8;
}

body.theme-light .lb-board-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .lb-rank {
    background: rgba(0, 0, 0, 0.06);
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .lb-rank-1 {
    background: rgba(255, 193, 7, 0.2);
    color: #f57f17;
}

body.theme-light .lb-rank-2 {
    background: rgba(158, 158, 158, 0.2);
    color: #616161;
}

body.theme-light .lb-rank-3 {
    background: rgba(205, 133, 63, 0.2);
    color: #a0522d;
}

body.theme-light .lb-user a {
    color: #1a1a1a;
}

body.theme-light .lb-user a:hover {
    color: #1976d2;
}

body.theme-light .lb-value {
    color: #1976d2;
}

body.theme-light .lb-value small {
    color: #5a5a5a;
    opacity: 0.85;
}




body.theme-light .goodies-section-label {
    color: #4a4a4a;
    opacity: 0.9;
}

/* Badges & Furnis grid */
body.theme-light .hab-items-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .hab-item-box {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .hab-item-box:hover {
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.25);
}

body.theme-light .hab-item-completed {
    color: #2e7d32;
}

/* Values / Teleporter cards */
body.theme-light .val-board-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .val-item-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .val-item-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .val-item-img {
    background: rgba(0, 0, 0, 0.04);
}

body.theme-light .val-item-name {
    color: #1a1a1a;
}

body.theme-light .val-item-price {
    color: #e65100;
}

body.theme-light .val-search-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .val-search-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

body.theme-light .val-search-input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

body.theme-light .val-search-input::placeholder {
    color: #9e9e9e;
    opacity: 0.8;
}

body.theme-light .val-preview-card,
body.theme-light .val-chart-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Badges leaderboard (blb) */
body.theme-light .blb-user-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .blb-user-card:hover {
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(255, 193, 7, 0.15);
}

body.theme-light .blb-user-name {
    color: #1a1a1a;
}

body.theme-light .blb-user-count {
    color: #e65100;
}

body.theme-light .blb-sync-section p {
    color: #4a4a4a;
}

body.theme-light .blb-sync-meta {
    color: #9e9e9e !important;
}

/* ct-info-card (shared with contact, badges leaderboard sidebar) */
body.theme-light .ct-info-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .ct-info-block {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .ct-info-block:hover {
    background: rgba(33, 150, 243, 0.04);
}

body.theme-light .ct-info-block strong {
    color: #1a1a1a;
}

body.theme-light .ct-info-block span {
    color: #5a5a5a;
    opacity: 0.95;
}

body.theme-light .ct-info-icon {
    background: rgba(33, 150, 243, 0.12);
    color: #1976d2;
}

body.theme-light .ct-info-block .ct-info-icon[style*="255,213,79"] {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #f57f17 !important;
}

/* goodies-warning light mode */
body.theme-light .goodies-warning {
    background: rgba(233, 69, 96, 0.08);
    border-color: rgba(233, 69, 96, 0.2);
}

body.theme-light .goodies-warning > i,
body.theme-light .goodies-warning strong {
    color: #c62828;
}

/* Events timetable (evt) */
body.theme-light .evt-room-link {
    background: rgba(33, 150, 243, 0.12);
    color: #1976d2;
}

body.theme-light .evt-room-link:hover {
    background: rgba(33, 150, 243, 0.2);
}

body.theme-light .evt-winner-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .evt-winner-name {
    color: #1a1a1a;
}

body.theme-light .evt-winner-value {
    color: #5a5a5a;
    opacity: 0.9;
}

/* --- Goodies pages light theme (imager, alterations, kissing) --- */
body.theme-light .goodies-form-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .goodies-preview-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .goodies-display {
    background: linear-gradient(180deg, rgba(79, 195, 247, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
}

body.theme-light .goodies-input-group label {
    color: #4a4a4a;
    opacity: 0.9;
}

body.theme-light .goodies-control-label {
    color: #4a4a4a;
    opacity: 0.9;
}

body.theme-light .goodies-direction-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .goodies-direction-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
}

body.theme-light .goodies-template {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .goodies-template:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.14);
}

body.theme-light .goodies-template.selected {
    border-color: #1976d2;
    background: rgba(33, 150, 243, 0.1);
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.2);
}

body.theme-light .goodies-template-check {
    background: #1976d2;
    color: #fff;
}

/* Fix hr in goodies imager */
body.theme-light .goodies-form-card hr {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Events timetable day tabs (tt-day-tab) */
body.theme-light .tt-day-tab {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .tt-day-tab:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .tt-day-tab.active {
    background: rgba(156, 39, 176, 0.12);
    border-color: rgba(156, 39, 176, 0.3);
}

body.theme-light .tt-day-tab .tt-day-full,
body.theme-light .tt-day-tab .tt-day-abbr {
    color: #1a1a1a;
}

body.theme-light .tt-day-tab.active .tt-day-full,
body.theme-light .tt-day-tab.active .tt-day-abbr {
    color: #7b1fa2;
}

body.theme-light .tt-day-count {
    background: rgba(0, 0, 0, 0.08);
    color: #5a5a5a;
}

body.theme-light .tt-day-tab.active .tt-day-count {
    background: rgba(156, 39, 176, 0.15);
    color: #7b1fa2;
}

/* Events/Radio timetable (tt-schedule) */
body.theme-light .tt-schedule-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .tt-schedule-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: #4a4a4a;
    opacity: 1;
}

body.theme-light .tt-slot-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .tt-slot-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .tt-slot-time {
    background: rgba(156, 39, 176, 0.12);
    color: #7b1fa2;
}

body.theme-light .tt-slot-event {
    color: #1a1a1a;
}

body.theme-light .tt-slot-host {
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .tt-slot-host a {
    color: #1976d2;
}

body.theme-light .tt-empty {
    color: #5a5a5a;
}

body.theme-light .tt-stat {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .tt-stat-live {
    background: rgba(156, 39, 176, 0.06);
    border-color: rgba(156, 39, 176, 0.25);
}

body.theme-light .tt-stat-label { color: #5a5a5a; opacity: 0.8; }
body.theme-light .tt-stat-value { color: #1a1a1a; }
body.theme-light .tt-stat-sub { color: #5a5a5a; }
body.theme-light .tt-slot-tag { color: #5a5a5a; }

body.theme-light .tt-live-badge {
    background: rgba(76, 175, 80, 0.14);
    color: #2e7d32;
}

body.theme-light .tt-slot-row.is-live {
    background: rgba(76, 175, 80, 0.07);
}

body.theme-light .tt-schedule-count {
    background: rgba(0, 0, 0, 0.08);
    color: #5a5a5a;
}

body.theme-light .tt-chart-row:hover { background: rgba(0, 0, 0, 0.04); }

body.theme-light .tt-chart-rank {
    background: rgba(0, 0, 0, 0.06);
    color: #5a5a5a;
}

body.theme-light .tt-chart-row.is-top .tt-chart-rank {
    background: rgba(156, 39, 176, 0.14);
    color: #7b1fa2;
}

body.theme-light .tt-chart-title { color: #1a1a1a; }
body.theme-light .tt-chart-bar { background: rgba(0, 0, 0, 0.07); }
body.theme-light .tt-chart-meta { color: #5a5a5a; }

body.theme-light .tt-card-note {
    border-top-color: rgba(0, 0, 0, 0.08);
    color: #5a5a5a;
}

/* --- Value item cards (teleporter grid) --- */
.value-item-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}
.value-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.value-item-img {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 165, 245, 0.06);
    border-radius: 10px;
    padding: 6px;
}
.value-item-img img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}
.value-item-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: inherit;
}
.value-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #66bb6a;
    margin-bottom: 6px;
}
.value-item-updated {
    font-size: 11px;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* --- Value form preview header --- */
.value-form-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid rgba(128, 128, 128, 0.08);
}
.value-form-preview-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 165, 245, 0.08);
    border-radius: 10px;
    padding: 6px;
}
.value-form-preview-img img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}
.value-form-preview-info {
    flex: 1;
    min-width: 0;
}
.value-form-preview-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.value-form-preview-meta {
    font-size: 12px;
    opacity: 0.5;
    margin-top: 2px;
}
.value-form-preview-price {
    font-size: 20px;
    font-weight: 700;
    color: #66bb6a;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Leave cards --- */
.leave-card {
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.leave-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.leave-card-accent {
    height: 4px;
    width: 100%;
}
.accent-leave-approved { background: linear-gradient(90deg, #43a047, #66bb6a); }
.accent-leave-pending  { background: linear-gradient(90deg, #ef6c00, #ffa726); }
.accent-leave-declined { background: linear-gradient(90deg, #c62828, #ef5350); }
.accent-leave-ended    { background: linear-gradient(90deg, #546e7a, #78909c); }

.leave-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.leave-badge-approved { background: rgba(40, 167, 69, 0.12); color: #66bb6a; }
.leave-badge-pending  { background: rgba(255, 167, 38, 0.12); color: #ffa726; }
.leave-badge-declined { background: rgba(220, 53, 69, 0.12); color: #ef5350; }
.leave-badge-ended    { background: rgba(120, 144, 156, 0.12); color: #90a4ae; }

.leave-reason {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}
.leave-dates {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(128, 128, 128, 0.08);
}
.leave-date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.leave-date-icon {
    font-size: 16px;
    opacity: 0.3;
    flex-shrink: 0;
}
.leave-date-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.4;
}
.leave-date-value {
    font-size: 13px;
    font-weight: 600;
}

/* --- Handbook accept bar --- */
.handbook-accept-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(40, 167, 69, 0.06);
    border: 1px solid rgba(40, 167, 69, 0.15);
    margin-bottom: 16px;
}
.handbook-accept-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.handbook-accept-icon {
    font-size: 24px;
    color: #28a745;
    opacity: 0.6;
    flex-shrink: 0;
}
.handbook-accept-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    min-width: 0;
}
.handbook-accept-text strong { font-size: 14px; }
.handbook-accept-text span { opacity: 0.55; font-size: 12px; }
.handbook-accept-bar .btn {
    white-space: nowrap;
    flex-shrink: 0;
}
@media (max-width: 575px) {
    .handbook-accept-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- Image uploader components --- */
.upload-dropzone {
    position: relative;
    border: 2px dashed rgba(66, 165, 245, 0.25);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-dropzone:hover,
.upload-dropzone-active {
    border-color: #42a5f5;
    background: rgba(66, 165, 245, 0.04);
}
.upload-dropzone-icon {
    font-size: 36px;
    opacity: 0.3;
    margin-bottom: 8px;
}
.upload-dropzone-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.upload-dropzone-hint {
    font-size: 11px;
    opacity: 0.4;
}
.upload-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview-wrap { margin-top: 12px; }
.upload-preview-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.1);
}
.upload-preview-card img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.15);
    display: block;
}
.upload-preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
}
.upload-preview-name {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 50px);
}

.upload-card {
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.upload-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.upload-card-thumb {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.1);
}
.upload-card .card-body { padding: 12px; }
.upload-link-input {
    font-size: 11px !important;
}
.upload-card-time {
    font-size: 11px;
    opacity: 0.4;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Staff member directory cards --- */
.staff-member-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}
.staff-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.staff-member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin: 0 auto 12px;
    border: 3px solid rgba(66, 165, 245, 0.2);
}
.staff-member-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.staff-member-habbo {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.staff-member-habbo .bi { font-size: 11px; }
.staff-member-hotel { opacity: 0.7; }
.staff-member-discord {
    font-size: 12px;
    font-weight: 500;
    color: #5865F2;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.staff-member-discord .bi { font-size: 14px; }
.staff-member-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}
.staff-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(66, 165, 245, 0.1);
    color: #42a5f5;
}
.staff-member-joined {
    font-size: 11px;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(128, 128, 128, 0.08);
}

/* --- Dashboard welcome banner --- */
.dash-welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(66, 165, 245, 0.06);
    border-left: 4px solid #42a5f5;
}
.dash-welcome-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-welcome-greeting {
    font-size: 15px;
    font-weight: 600;
}
.dash-welcome-sub {
    font-size: 12px;
    opacity: 0.5;
}
.dash-welcome-date {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.45;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 575px) {
    .dash-welcome-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- Portfolio cards --- */
.portfolio-card {
    position: relative;
    overflow: hidden;
}
.portfolio-card-accent {
    height: 4px;
    width: 100%;
}
.portfolio-card-accent.accent-red    { background: linear-gradient(90deg, #c62828, #ef5350); }
.portfolio-card-accent.accent-pink   { background: linear-gradient(90deg, #ad1457, #ec407a); }
.portfolio-card-accent.accent-purple { background: linear-gradient(90deg, #7b1fa2, #ab47bc); }
.portfolio-card-accent.accent-teal   { background: linear-gradient(90deg, #00897b, #26a69a); }
.portfolio-card-accent.accent-blue   { background: linear-gradient(90deg, #1e88e5, #42a5f5); }
.portfolio-card-accent.accent-orange { background: linear-gradient(90deg, #ef6c00, #ffa726); }

.portfolio-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.portfolio-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.portfolio-card-icon.icon-red    { background: rgba(198, 40, 40, 0.12); color: #ef5350; }
.portfolio-card-icon.icon-pink   { background: rgba(173, 20, 87, 0.12); color: #ec407a; }
.portfolio-card-icon.icon-purple { background: rgba(123, 31, 162, 0.12); color: #ab47bc; }
.portfolio-card-icon.icon-teal   { background: rgba(0, 137, 123, 0.12); color: #26a69a; }
.portfolio-card-icon.icon-blue   { background: rgba(30, 136, 229, 0.12); color: #42a5f5; }
.portfolio-card-icon.icon-orange { background: rgba(239, 108, 0, 0.12); color: #ffa726; }

.portfolio-card-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.portfolio-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.portfolio-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}
.portfolio-stat-row:last-child {
    border-bottom: none;
}
.portfolio-stat-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.55;
}
.portfolio-stat-value {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
.portfolio-stat-value small {
    font-weight: 400;
    opacity: 0.5;
    font-size: 11px;
}
.portfolio-stat-truncate {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-progress-wrap {
    padding: 0 0 8px;
}
.portfolio-progress {
    height: 5px;
    border-radius: 3px;
    background: rgba(128, 128, 128, 0.12);
}
.portfolio-progress .progress-bar {
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* --- Staff review cards (light + dark compatible) --- */
.review-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.review-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
    background: rgba(128, 128, 128, 0.06);
}
.review-card-body {
    padding: 20px;
}
.review-dept-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(66, 165, 245, 0.12);
    color: #42a5f5;
    margin-top: 4px;
}
.review-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(128, 128, 128, 0.2);
    transition: background 0.2s ease;
}
.review-colour-indicator {
    display: flex;
    align-items: center;
}
.review-info-text {
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(66, 165, 245, 0.06);
    border-left: 3px solid rgba(66, 165, 245, 0.3);
    color: inherit;
    opacity: 0.8;
}
.review-progress-card {
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid rgba(128, 128, 128, 0.1);
}
.review-progress-card .progress {
    background: rgba(128, 128, 128, 0.15);
}
.review-fields-divider {
    height: 1px;
    background: rgba(128, 128, 128, 0.15);
    margin: 16px 0 20px;
}
.review-empty-data {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: rgba(128, 128, 128, 0.06);
    color: inherit;
    opacity: 0.5;
    font-size: 13px;
}
.review-colour-select {
    padding-left: 12px;
}

/* --- Staff overview stat cells (light + dark compatible) --- */
.overview-stat-cell {
    display: inline-block;
    min-width: 32px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(128, 128, 128, 0.08);
    opacity: 0.4;
}
.overview-stat-cell.has-value {
    opacity: 1;
    background: rgba(66, 165, 245, 0.1);
    color: #42a5f5;
}
.overview-stat-cell.target-met {
    opacity: 1;
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

/* --- Alertify dialog overrides (dark theme) --- */
.ajs-dimmer {
    background: rgba(0, 0, 0, 0.6) !important;
}
.ajs-modal .ajs-dialog {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 420px;
}
.ajs-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 16px 20px !important;
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
}
.ajs-body {
    padding: 20px !important;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}
.ajs-body .ajs-content {
    padding: 0 !important;
}
.ajs-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 12px 20px !important;
}
.ajs-footer .ajs-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.ajs-footer .ajs-buttons .ajs-button {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
    min-width: 80px;
    text-align: center;
}
.ajs-footer .ajs-buttons .ajs-button:active {
    transform: scale(0.97);
}
.ajs-footer .ajs-buttons .ajs-button.ajs-ok {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.3);
}
.ajs-footer .ajs-buttons .ajs-button.ajs-ok:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.4);
}
.ajs-footer .ajs-buttons .ajs-button.ajs-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: #b0b0b0;
}
.ajs-footer .ajs-buttons .ajs-button.ajs-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e0e0e0;
}
.ajs-close {
    color: #b0b0b0 !important;
    top: 12px !important;
    right: 12px !important;
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}
.ajs-close:hover {
    opacity: 1;
}

/* ==========================================
   REVAMPED PROFILE PAGE
   ========================================== */

.revamped-profile {
    margin: -15px -15px 0 -15px;
}

/* Hero Section */
.rp-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.rp-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-color: #4a6fa5;
}

.rp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

.rp-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px 30px;
    z-index: 2;
}

.rp-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #2a2d35;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.rp-identity {
    margin-left: 20px;
    padding-bottom: 4px;
    flex: 1;
    min-width: 0;
}

.rp-username {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-family: 'PT Sans', 'Helvetica Neue', sans-serif;
}

.rp-username img {
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Social Links */
.rp-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: #fff !important;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.rp-social-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rp-social-instagram:hover { background: #E1306C; border-color: #E1306C; }
.rp-social-discord:hover { background: #5865F2; border-color: #5865F2; }
.rp-social-youtube:hover { background: #FF0000; border-color: #FF0000; }
.rp-social-twitch:hover { background: #9146FF; border-color: #9146FF; }

/* Quick Stats Bar */
.rp-quickstats {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.rp-quickstat {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    background: rgba(255,255,255,0.07);
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

.rp-quickstat:last-child {
    border-right: none;
}

.rp-quickstat:hover {
    background: rgba(255,255,255,0.12);
}

.rp-quickstat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #4fc3f7;
    line-height: 1.2;
    font-family: 'PT Sans', sans-serif;
}

.rp-quickstat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-top: 2px;
}

/* Section Headers */
.rp-section-header {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 0 8px 0;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    opacity: 0.7;
}

.rp-section-header i {
    margin-right: 6px;
    font-size: 14px;
}

/* Cards */
.rp-card {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* About Card - Info Rows */
.rp-info-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
}

.rp-info-row:last-child {
    margin-bottom: 0;
}

.rp-info-row:hover {
    background: rgba(255,255,255,0.06);
}

.rp-info-row > i {
    width: 28px;
    text-align: center;
    font-size: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

.rp-info-label {
    font-size: 12px;
    font-weight: 600;
    margin-right: auto;
    padding-right: 8px;
}

.rp-info-value {
    font-size: 12px;
    opacity: 0.7;
    text-align: right;
}

/* Accolades */
.rp-card-accolades {
    padding: 12px;
}

.rp-accolade-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid rgba(255,255,255,0.1);
    transition: background 0.15s ease;
}

.rp-accolade-row:hover {
    background: rgba(255,255,255,0.05);
}

.rp-accolade-name {
    font-weight: 700;
    font-size: 12px;
}

.rp-accolade-date {
    font-size: 11px;
    opacity: 0.5;
    white-space: nowrap;
    margin-left: 10px;
}

/* Badges */
.rp-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.rp-badge {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rp-badge:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.rp-badge img {
    max-width: 40px;
    max-height: 40px;
}

/* Activity Items (Threads/Posts) */
.rp-card-activity {
    padding: 8px;
}

.rp-activity-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.15s ease;
}

.rp-activity-item:last-child {
    margin-bottom: 0;
}

.rp-activity-item:hover {
    background: rgba(255,255,255,0.04);
}

.rp-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(79, 195, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    font-size: 14px;
    color: #4fc3f7;
}

.rp-activity-content {
    flex: 1;
    min-width: 0;
}

.rp-activity-content a {
    display: block;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-activity-content small {
    font-size: 11px;
    opacity: 0.5;
    font-style: italic;
}

/* Visitors */
.rp-card-visitors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.rp-visitor {
    width: 60px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.rp-visitor:hover {
    transform: translateY(-2px);
}

.rp-visitor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: top center;
    margin: 0 auto 4px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.15s ease;
}

.rp-visitor:hover .rp-visitor-avatar {
    border-color: #4fc3f7;
}

.rp-visitor-name {
    font-size: 10px;
    opacity: 0.5;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compose Card */
.rp-card-compose {
    padding: 16px;
}

.rp-card-compose .btn-primary {
    border-radius: 6px;
    font-weight: 600;
    padding: 10px;
    font-size: 13px;
}

/* Messages Card */
.rp-card-messages {
    padding: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .rp-hero {
        height: 220px;
    }

    .rp-avatar {
        width: 90px;
        height: 90px;
    }

    .rp-username {
        font-size: 20px;
    }

    .rp-hero-content {
        padding: 16px 20px;
    }

    .rp-quickstats {
        flex-wrap: wrap;
    }

    .rp-quickstat {
        flex-basis: 33.33%;
    }
}

@media (max-width: 576px) {
    .rp-hero {
        height: 200px;
    }

    .rp-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .rp-avatar {
        width: 80px;
        height: 80px;
    }

    .rp-identity {
        margin-left: 0;
        margin-top: 8px;
    }

    .rp-socials {
        justify-content: center;
    }

    .rp-username {
        font-size: 18px;
    }

    .rp-quickstat {
        flex-basis: 50%;
    }

    .rp-quickstat-value {
        font-size: 16px;
    }
}

/* --- Revamped Profile light theme --- */
body.theme-light .rp-quickstats {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.theme-light .rp-quickstat {
    background: #fff;
    border-right-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-quickstat:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-quickstat-value {
    color: #1976d2;
}

body.theme-light .rp-quickstat-label {
    color: #5a5a5a;
    opacity: 0.9;
}

body.theme-light .rp-section-header {
    color: #4a4a4a;
}

body.theme-light .rp-section-header i {
    opacity: 0.8;
}

body.theme-light .rp-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .rp-info-row {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.theme-light .rp-info-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-info-row > i {
    color: #5a5a5a;
    opacity: 0.7;
}

body.theme-light .rp-info-label {
    color: #4a4a4a;
}

body.theme-light .rp-info-value {
    color: #1a1a1a;
    opacity: 0.9;
}

body.theme-light .rp-accolade-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-accolade-date {
    color: #5a5a5a;
    opacity: 0.85;
}

body.theme-light .rp-badge {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-badge:hover {
    background: rgba(33, 150, 243, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-activity-item:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .rp-activity-icon {
    background: rgba(33, 150, 243, 0.12);
    color: #1976d2;
}

body.theme-light .rp-activity-content a {
    color: #1976d2;
}

body.theme-light .rp-activity-content a:hover {
    color: #0d47a1;
}

body.theme-light .rp-activity-content small {
    color: #5a5a5a;
    opacity: 0.85;
}

body.theme-light .rp-visitor-avatar {
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .rp-visitor:hover .rp-visitor-avatar {
    border-color: #1976d2;
}

body.theme-light .rp-visitor-name {
    color: #5a5a5a;
    opacity: 0.9;
}

/* Profile feed comments (commentHolder) light theme */
body.theme-light .revamped-profile .commentHolder > .contentHolder {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a !important;
}

body.theme-light .revamped-profile .commentHolder > .buttonsHolder {
    background: rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .revamped-profile .commentHolder .contentHolder a {
    color: #1976d2;
}

body.theme-light .revamped-profile .commentHolder .contentHolder a:hover {
    color: #0d47a1;
}

body.theme-light .revamped-profile .commentHolder small i,
body.theme-light .revamped-profile .commentHolder .buttonsHolder i {
    color: #5a5a5a !important;
}

body.theme-light .revamped-profile .commentHolder small i:hover,
body.theme-light .revamped-profile .commentHolder .buttonsHolder i:hover {
    color: #1976d2 !important;
}

body.theme-light .revamped-profile .profile-stat {
    color: #1976d2 !important;
}

body.theme-light .revamped-profile .profile-stat i {
    color: #1976d2 !important;
}

body.theme-light .revamped-profile .smallAvatar {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ==========================================
   DEVELOPMENT BANNER
   ========================================== */

.dev-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid #0f3460;
    padding: 8px 20px;
    z-index: 9999;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.dev-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
}

.dev-banner-inner i {
    font-size: 16px;
    color: #e94560;
    flex-shrink: 0;
}

.dev-banner-inner strong {
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-banner-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 12px;
    padding: 0;
}

.dev-banner-close:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: rgba(233, 69, 96, 0.4);
    color: #e94560;
}

/* Stacked above the impersonation bar when an admin is viewing as a user. */
.dev-banner.dev-banner-stacked {
    bottom: 46px;
}

/* ==========================================
   IMPERSONATION BANNER
   ========================================== */

.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #7a3d00 0%, #b45309 100%);
    border-top: 2px solid #f59e0b;
    padding: 8px 20px;
    z-index: 10000;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.impersonation-banner-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.impersonation-banner-inner i {
    font-size: 16px;
    color: #fcd34d;
    flex-shrink: 0;
}

.impersonation-banner-inner strong {
    color: #fcd34d;
}

.impersonation-banner-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.impersonation-banner-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 575.98px) {
    .impersonation-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        text-align: center;
    }

    .dev-banner.dev-banner-stacked {
        bottom: 84px;
    }
}

/* ==========================================
   GOODIES PAGES (Shared Styles)
   ========================================== */

.goodies-page {
    padding-bottom: 20px;
}

/* Page Header */
.goodies-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255,255,255,0.06);
}

.goodies-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79,195,247,0.15), rgba(79,195,247,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #4fc3f7;
    flex-shrink: 0;
}

.goodies-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    font-family: 'PT Sans', 'Helvetica Neue', sans-serif;
}

.goodies-subtitle {
    font-size: 12px;
    opacity: 0.5;
    margin: 2px 0 0 0;
}

/* Warning Banner */
.goodies-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
}

.goodies-warning > i {
    color: #e94560;
    font-size: 16px;
    flex-shrink: 0;
}

.goodies-warning strong {
    color: #e94560;
}

/* Success Banner (auth, etc.) */
.goodies-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(67, 160, 71, 0.1);
    border: 1px solid rgba(67, 160, 71, 0.2);
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
}

.goodies-success > i {
    color: #66bb6a;
    font-size: 16px;
    flex-shrink: 0;
}

.goodies-success strong {
    color: #66bb6a;
}

/* Auth form layout (centered, narrow) */
.auth-form-wrapper {
    max-width: 420px;
    margin: 0 auto;
}

.auth-form-wrapper .goodies-form-card {
    margin-bottom: 16px;
}

.auth-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.auth-form-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.auth-form-links a {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-form-links a:hover {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.auth-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.6;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.auth-back-link a {
    color: inherit;
}

.auth-back-link:hover {
    opacity: 0.9;
}

.auth-back-link a:hover {
    text-decoration: none;
    color: inherit;
}

.auth-back-link i {
    font-size: 14px;
}

/* Section Label */
.goodies-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.6;
    margin: 20px 0 12px 0;
}

.goodies-section-label i {
    margin-right: 4px;
}

/* Preview Card */
.goodies-preview-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.goodies-display {
    background: linear-gradient(180deg, rgba(79,195,247,0.06) 0%, rgba(0,0,0,0) 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.goodies-display-compact {
    min-height: 160px;
    padding: 16px;
}

.goodies-display img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

/* Form Card */
.goodies-form-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px;
    margin-bottom: 16px;
}

/* Input Groups */
.goodies-input-group {
    margin-bottom: 14px;
}

.goodies-input-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    margin-bottom: 6px;
    display: block;
}

.goodies-input-group label i {
    margin-right: 4px;
}

.goodies-input-group .form-control {
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 14px;
    height: auto;
}

/* Generate Button */
.goodies-btn-generate {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.goodies-btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}

/* Control Label (for directions etc.) */
.goodies-control-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    margin-bottom: 8px;
    margin-top: 12px;
}

.goodies-control-label i {
    margin-right: 4px;
}

/* Direction Buttons */
.goodies-direction-section {
    margin-top: 12px;
}

.goodies-direction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.goodies-direction-btn {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.goodies-direction-btn:hover {
    background: rgba(79,195,247,0.1);
    border-color: rgba(79,195,247,0.25);
}

.goodies-direction-btn img {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

/* Templates Grid (Alterations / Kissing styles) */
.goodies-templates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.goodies-template {
    position: relative;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.06);
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    overflow: hidden;
}

.goodies-template:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.goodies-template.selected {
    border-color: #4fc3f7;
    background: rgba(79,195,247,0.08);
    box-shadow: 0 2px 12px rgba(79,195,247,0.15);
}

.goodies-template img {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.goodies-template-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4fc3f7;
    color: #fff;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(79,195,247,0.3);
}

.goodies-template.selected .goodies-template-check {
    display: flex;
}

/* Responsive */
@media (max-width: 767px) {
    .goodies-header {
        flex-direction: column;
        text-align: center;
    }

    .goodies-display {
        min-height: 160px;
    }

    .goodies-templates-grid {
        justify-content: center;
    }
}

/* ==========================================
   DISCORD PAGE
   ========================================== */

.discord-hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(88,101,242,0.15);
    margin-bottom: 16px;
}

.discord-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88,101,242,0.12) 0%, rgba(79,195,247,0.06) 100%);
}

.discord-hero-content {
    position: relative;
    padding: 32px;
    text-align: center;
    z-index: 1;
}

.discord-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #5865F2;
    color: #fff;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(88,101,242,0.3);
}

.discord-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'PT Sans', 'Helvetica Neue', sans-serif;
}

.discord-desc {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.7;
    max-width: 480px;
    margin: 0 auto 20px;
}

.discord-desc strong {
    opacity: 1;
    color: #4fc3f7;
}

.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    background: #5865F2;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(88,101,242,0.25);
}

.discord-join-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88,101,242,0.35);
}

/* Feature Cards */
.discord-feature {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px 14px;
    text-align: center;
    margin-bottom: 16px;
    transition: background 0.15s ease;
}

.discord-feature:hover {
    background: rgba(255,255,255,0.06);
}

.discord-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(88,101,242,0.12);
    color: #5865F2;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.discord-feature strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.discord-feature span {
    font-size: 11px;
    opacity: 0.5;
    line-height: 1.4;
}

/* Widget Card */
.discord-widget-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .discord-hero-content {
        padding: 24px 16px;
    }

    .discord-heading {
        font-size: 18px;
    }
}

/* ==========================================
   LEADERBOARD PAGE
   ========================================== */

/* Stats Grid */
.lb-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.lb-stat-card {
    position: relative;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.lb-stat-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'PT Sans', sans-serif;
    position: relative;
    z-index: 1;
}

.lb-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.lb-stat-bg-icon {
    position: absolute;
    right: -4px;
    bottom: -6px;
    font-size: 48px;
    opacity: 0.06;
    z-index: 0;
}

.lb-stat-green  { background: rgba(76,175,80,0.1); }
.lb-stat-green .lb-stat-number { color: #66bb6a; }

.lb-stat-yellow { background: rgba(255,193,7,0.1); }
.lb-stat-yellow .lb-stat-number { color: #ffca28; }

.lb-stat-red    { background: rgba(239,83,80,0.1); }
.lb-stat-red .lb-stat-number { color: #ef5350; }

.lb-stat-purple { background: rgba(133,89,136,0.1); }
.lb-stat-purple .lb-stat-number { color: #ab47bc; }

.lb-stat-teal   { background: rgba(77,182,172,0.1); }
.lb-stat-teal .lb-stat-number { color: #4db6ac; }

.lb-stat-blue   { background: rgba(79,195,247,0.1); }
.lb-stat-blue .lb-stat-number { color: #4fc3f7; }

/* Board Cards */
.lb-board-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 16px;
    overflow: hidden;
}

.lb-board-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0.7;
}

.lb-board-header i {
    font-size: 14px;
}

.lb-board-list {
    padding: 6px 0;
}

.lb-board-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    transition: background 0.12s ease;
}

.lb-board-row:hover {
    background: rgba(255,255,255,0.03);
}

/* Rank Badge */
.lb-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 12px;
    background: rgba(255,255,255,0.05);
    opacity: 0.5;
}

.lb-rank-1 {
    background: rgba(255,215,0,0.15);
    color: #ffd700;
    opacity: 1;
}

.lb-rank-2 {
    background: rgba(192,192,192,0.15);
    color: #c0c0c0;
    opacity: 1;
}

.lb-rank-3 {
    background: rgba(205,133,63,0.15);
    color: #cd853f;
    opacity: 1;
}

.lb-rank-1 i, .lb-rank-2 i, .lb-rank-3 i {
    font-size: 13px;
}

/* User Name */
.lb-user {
    flex: 1;
    min-width: 0;
    font-size: 12px;
}

.lb-user a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Value */
.lb-value {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 8px;
    color: #4fc3f7;
}

.lb-value small {
    font-weight: 400;
    opacity: 0.5;
    margin-left: 2px;
    color: inherit;
}

/* Responsive */
@media (max-width: 991px) {
    .lb-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .lb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lb-stat-number {
        font-size: 18px;
    }
}

/* ==========================================
   FORUM - LATEST THREADS PAGE
   ========================================== */
.forum-latest-page .forum-latest-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-latest-page .forum-latest-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-latest-page .forum-latest-row:last-child {
    border-bottom: none;
}

.forum-latest-page .forum-latest-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-latest-page .forum-latest-main {
    min-width: 0;
    flex: 1;
}

.forum-latest-page .forum-latest-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-latest-page .forum-latest-meta {
    font-size: 12px;
    opacity: 0.85;
}

.forum-latest-page .forum-latest-meta a {
    font-weight: 700;
}

.forum-latest-page .forum-latest-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-latest-page .forum-latest-stat {
    min-width: 62px;
    padding: 6px 8px;
    text-align: center;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
}

.forum-latest-page .forum-latest-stat span {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.forum-latest-page .forum-latest-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    flex-shrink: 0;
}

.forum-latest-page .forum-latest-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-image: url(/img/avatars/default.gif);
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.forum-latest-page .forum-latest-last-info {
    min-width: 0;
}

.forum-latest-page .forum-latest-last-thread {
    display: block;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.forum-latest-page .forum-latest-last-meta {
    font-size: 11px;
    opacity: 0.8;
}

.forum-latest-page .forum-latest-pagination {
    padding: 14px 16px 6px;
}

.forum-latest-page .forum-latest-empty {
    text-align: center;
    padding: 34px 16px;
    font-size: 13px;
    opacity: 0.85;
}

.forum-latest-page .forum-latest-empty i {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.65;
}

.forum-latest-page .forum-latest-empty p {
    margin-bottom: 4px !important;
    font-weight: 700;
}

.forum-latest-page .forum-latest-empty small {
    font-size: 12px;
}

body.theme-light .forum-latest-page .forum-latest-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-latest-page .forum-latest-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-latest-page .forum-latest-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-latest-page .forum-latest-title {
    color: #1a1a1a;
}

body.theme-light .forum-latest-page .forum-latest-title:hover {
    color: #1976d2;
}

body.theme-light .forum-latest-page .forum-latest-meta,
body.theme-light .forum-latest-page .forum-latest-last-meta {
    color: #5a5a5a;
}

body.theme-light .forum-latest-page .forum-latest-empty {
    color: #5a5a5a;
}

body.theme-light .forum-latest-page .forum-latest-stat {
    background: rgba(0, 0, 0, 0.05);
    color: #5a5a5a;
}

body.theme-light .forum-latest-page .forum-latest-stat span {
    color: #1a1a1a;
}

body.theme-light .forum-latest-page .forum-latest-avatar {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.theme-dark .forum-latest-page .forum-latest-title {
    color: #f1f1f1;
}

body.theme-dark .forum-latest-page .forum-latest-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-latest-page .forum-latest-meta,
body.theme-dark .forum-latest-page .forum-latest-last-meta {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-latest-page .forum-latest-empty {
    color: rgba(255,255,255,0.78);
}

@media (max-width: 991px) {
    .forum-latest-page .forum-latest-row {
        flex-wrap: wrap;
    }

    .forum-latest-page .forum-latest-last {
        display: none;
    }

    .forum-latest-page .forum-latest-stats {
        order: -1;
    }
}

/* ==========================================
   FORUM - HOME PAGE
   ========================================== */
.forum-home-page .forum-home-section {
    margin-bottom: 16px;
}

.forum-home-page .forum-home-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.forum-home-page .forum-home-card {
    margin-bottom: 0;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-home-page .forum-home-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-home-page .forum-home-row:last-child {
    border-bottom: none;
}

.forum-home-page .forum-home-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-home-page .forum-home-row-faded {
    opacity: 0.65;
}

.forum-home-page .forum-home-main {
    min-width: 0;
    flex: 1;
}

.forum-home-page .forum-home-main-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forum-home-page .forum-home-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.forum-home-page .forum-home-main-content {
    min-width: 0;
}

.forum-home-page .forum-home-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-home-page .forum-home-desc {
    font-size: 12px;
    opacity: 0.85;
}

.forum-home-page .forum-home-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-home-page .forum-latest-stat {
    min-width: 72px;
    padding: 7px 9px;
    text-align: center;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
}

.forum-home-page .forum-latest-stat span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}

.forum-home-page .forum-home-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    flex-shrink: 0;
}

.forum-home-page .forum-home-last-avatar {
    width: 44px;
    height: 44px;
}

.forum-home-page .forum-home-last-info {
    min-width: 0;
}

.forum-home-page .forum-latest-last-thread {
    display: block;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.forum-home-page .forum-latest-last-meta {
    font-size: 11px;
    opacity: 0.82;
}

.forum-home-page .forum-latest-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(/img/avatars/default.gif);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: none;
}

.forum-home-page .forum-home-no-post {
    font-size: 12px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.theme-light .forum-home-page .forum-home-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-home-page .forum-home-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-home-page .forum-home-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-home-page .forum-home-title {
    color: #1a1a1a;
}

body.theme-light .forum-home-page .forum-home-title:hover {
    color: #1976d2;
}

body.theme-light .forum-home-page .forum-latest-last-thread {
    color: #1976d2;
}

body.theme-light .forum-home-page .forum-latest-last-thread:hover {
    color: #0d47a1;
}

body.theme-light .forum-home-page .forum-home-desc,
body.theme-light .forum-home-page .forum-home-section-title,
body.theme-light .forum-home-page .forum-home-no-post,
body.theme-light .forum-home-page .forum-latest-last-meta {
    color: #5a5a5a;
}

body.theme-light .forum-home-page .forum-latest-stat {
    background: rgba(0, 0, 0, 0.05);
    color: #5a5a5a;
}

body.theme-light .forum-home-page .forum-latest-stat span {
    color: #1a1a1a;
}

body.theme-light .forum-home-page .forum-latest-avatar {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.theme-dark .forum-home-page .forum-home-title {
    color: #f1f1f1;
}

body.theme-dark .forum-home-page .forum-home-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}

body.theme-dark .forum-home-page .forum-home-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-home-page .forum-home-desc,
body.theme-dark .forum-home-page .forum-home-section-title,
body.theme-dark .forum-home-page .forum-home-no-post,
body.theme-dark .forum-home-page .forum-latest-last-meta {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-home-page .forum-latest-last-thread {
    color: #64b5f6;
}

body.theme-dark .forum-home-page .forum-latest-last-thread:hover {
    color: #90caf9;
}

body.theme-dark .forum-home-page .forum-latest-stat {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
}

body.theme-dark .forum-home-page .forum-latest-stat span {
    color: #fff;
}

@media (max-width: 991px) {
    .forum-home-page .forum-home-row {
        flex-wrap: wrap;
    }

    .forum-home-page .forum-home-last {
        display: none;
    }
}

/* ==========================================
   FORUM - CATEGORY PAGE
   ========================================== */
.forum-category-page .forum-category-section {
    margin-bottom: 16px;
}

.forum-category-page .forum-category-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.forum-category-page .forum-category-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(66,165,245,0.16);
    color: #42a5f5;
}

.forum-category-page .forum-category-action:hover {
    background: rgba(66,165,245,0.24);
    color: #42a5f5;
    text-decoration: none;
}

.forum-category-page .goodies-subtitle {
    line-height: 1.5;
}

.forum-category-page .goodies-subtitle span,
.forum-category-page .goodies-subtitle i,
.forum-category-page .goodies-subtitle a {
    margin-right: 6px;
}

.forum-category-page .goodies-subtitle .fa-angle-double-right {
    margin-right: 6px;
}

/* Reuse latest-thread row styling inside category page */
.forum-category-page .forum-latest-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-category-page .forum-latest-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-category-page .forum-latest-row:last-child {
    border-bottom: none;
}

.forum-category-page .forum-latest-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-category-page .forum-latest-main {
    min-width: 0;
    flex: 1;
}

.forum-category-page .forum-latest-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-category-page .forum-latest-meta {
    font-size: 12px;
    opacity: 0.85;
}

.forum-category-page .forum-latest-meta a {
    font-weight: 700;
}

.forum-category-page .forum-latest-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-category-page .forum-latest-stat {
    min-width: 62px;
    padding: 6px 8px;
    text-align: center;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
}

.forum-category-page .forum-latest-stat span {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.forum-category-page .forum-latest-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    flex-shrink: 0;
}

.forum-category-page .forum-latest-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-image: url(/img/avatars/default.gif);
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.forum-category-page .forum-latest-last-info {
    min-width: 0;
}

.forum-category-page .forum-latest-last-thread {
    display: block;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.forum-category-page .forum-latest-last-meta {
    font-size: 11px;
    opacity: 0.8;
}

.forum-category-page .forum-latest-pagination {
    padding: 14px 16px 6px;
}

.forum-category-page .forum-latest-empty {
    text-align: center;
    padding: 34px 16px;
    font-size: 13px;
    opacity: 0.85;
}

.forum-category-page .forum-latest-empty i {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.65;
}

.forum-category-page .forum-latest-empty p {
    margin-bottom: 4px !important;
    font-weight: 700;
}

.forum-category-page .forum-latest-empty small {
    font-size: 12px;
}

/* Sub-category rows inside category page reuse forum-home markup */
.forum-category-page .forum-home-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s ease;
}

.forum-category-page .forum-home-row:last-child {
    border-bottom: none;
}

.forum-category-page .forum-home-row:hover {
    background: rgba(255,255,255,0.03);
}

.forum-category-page .forum-home-row-faded {
    opacity: 0.65;
}

.forum-category-page .forum-home-main {
    min-width: 0;
    flex: 1;
}

.forum-category-page .forum-home-main-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forum-category-page .forum-home-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
}

.forum-category-page .forum-home-main-content {
    min-width: 0;
}

.forum-category-page .forum-home-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    text-decoration: none;
}

.forum-category-page .forum-home-desc {
    font-size: 12px;
    opacity: 0.85;
}

.forum-category-page .forum-home-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.forum-category-page .forum-home-last {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    flex-shrink: 0;
}

.forum-category-page .forum-home-last-avatar {
    width: 44px;
    height: 44px;
}

.forum-category-page .forum-home-last-info {
    min-width: 0;
}

.forum-category-page .forum-home-no-post {
    font-size: 12px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.theme-light .forum-category-page .forum-category-action {
    background: rgba(25,118,210,0.14);
    color: #1976d2;
}

body.theme-light .forum-category-page .forum-category-action:hover {
    background: rgba(25,118,210,0.2);
    color: #1976d2;
}

body.theme-light .forum-category-page .forum-home-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-category-page .forum-home-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-category-page .forum-home-title {
    color: #1a1a1a;
}

body.theme-light .forum-category-page .forum-home-title:hover {
    color: #1976d2;
}

body.theme-light .forum-category-page .goodies-subtitle span,
body.theme-light .forum-category-page .goodies-subtitle i {
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-latest-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-category-page .forum-latest-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-category-page .forum-latest-row:hover {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-category-page .forum-latest-title {
    color: #1a1a1a;
}

body.theme-light .forum-category-page .forum-latest-title:hover {
    color: #1976d2;
}

body.theme-light .forum-category-page .forum-latest-meta,
body.theme-light .forum-category-page .forum-latest-last-meta,
body.theme-light .forum-category-page .forum-latest-empty {
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-home-desc,
body.theme-light .forum-category-page .forum-home-no-post {
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-latest-stat {
    background: rgba(0, 0, 0, 0.05);
    color: #5a5a5a;
}

body.theme-light .forum-category-page .forum-latest-stat span {
    color: #1a1a1a;
}

body.theme-light .forum-category-page .forum-latest-avatar {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.theme-dark .forum-category-page .goodies-subtitle span,
body.theme-dark .forum-category-page .goodies-subtitle i {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-category-page .forum-latest-title {
    color: #f1f1f1;
}

body.theme-dark .forum-category-page .forum-latest-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-category-page .forum-home-title {
    color: #f1f1f1;
}

body.theme-dark .forum-category-page .forum-home-title:hover {
    color: #64b5f6;
}

body.theme-dark .forum-category-page .forum-latest-meta,
body.theme-dark .forum-category-page .forum-latest-last-meta,
body.theme-dark .forum-category-page .forum-latest-empty {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-category-page .forum-home-desc,
body.theme-dark .forum-category-page .forum-home-no-post {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 767px) {
    .forum-category-page .forum-category-section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .forum-category-page .forum-latest-row {
        flex-wrap: wrap;
    }

    .forum-category-page .forum-latest-last {
        display: none;
    }

    .forum-category-page .forum-latest-stats {
        order: -1;
    }

    .forum-category-page .forum-home-row {
        flex-wrap: wrap;
    }

    .forum-category-page .forum-home-last {
        display: none;
    }
}

/* ==========================================
   FORUM - NEW THREAD PAGE
   ========================================== */
.forum-new-thread-page .goodies-subtitle {
    line-height: 1.5;
}

.forum-new-thread-page .goodies-subtitle span,
.forum-new-thread-page .goodies-subtitle i,
.forum-new-thread-page .goodies-subtitle a {
    margin-right: 6px;
}

.forum-new-thread-page .goodies-subtitle .fa-angle-double-right {
    margin-right: 6px;
}

.forum-new-thread-page .forum-new-thread-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.forum-new-thread-page .forum-new-thread-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(66,165,245,0.16);
    color: #42a5f5;
}

.forum-new-thread-page .forum-new-thread-help:hover {
    background: rgba(66,165,245,0.24);
    color: #42a5f5;
    text-decoration: none;
}

.forum-new-thread-page .forum-new-thread-card {
    margin-bottom: 0;
}

.forum-new-thread-page .forum-new-thread-editor {
    height: 150px;
}

.forum-new-thread-page .forum-new-thread-submit {
    margin-top: 14px;
}

.forum-new-thread-page .forum-new-thread-submit .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.theme-light .forum-new-thread-page .goodies-subtitle span,
body.theme-light .forum-new-thread-page .goodies-subtitle i {
    color: #5a5a5a;
}

body.theme-light .forum-new-thread-page .forum-new-thread-help {
    background: rgba(25,118,210,0.14);
    color: #1976d2;
}

body.theme-light .forum-new-thread-page .forum-new-thread-help:hover {
    background: rgba(25,118,210,0.2);
    color: #1976d2;
}

body.theme-dark .forum-new-thread-page .goodies-subtitle span,
body.theme-dark .forum-new-thread-page .goodies-subtitle i {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 767px) {
    .forum-new-thread-page .forum-new-thread-top-actions {
        justify-content: flex-start;
    }
}

/* ==========================================
   FORUM - THREAD PAGE
   ========================================== */
.forum-thread-page .goodies-subtitle {
    line-height: 1.5;
}

.forum-thread-page .goodies-subtitle span,
.forum-thread-page .goodies-subtitle i,
.forum-thread-page .goodies-subtitle a {
    margin-right: 6px;
}

.forum-thread-page .forum-thread-pagination {
    margin-bottom: 14px;
}

.forum-thread-page .forum-thread-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 18px 0 10px;
    opacity: 0.8;
}

.forum-thread-page .forum-thread-polls-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 12px;
}

.forum-thread-page .forum-thread-polls-card .card-body {
    padding: 12px 16px;
}

.forum-thread-page .forum-thread-reply-title-row {
    justify-content: space-between;
}

.forum-thread-page .forum-thread-section-title-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forum-thread-page .forum-thread-format-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(66,165,245,0.16);
    color: #42a5f5;
}

.forum-thread-page .forum-thread-format-help:hover {
    background: rgba(66,165,245,0.24);
    color: #42a5f5;
    text-decoration: none;
}

.forum-thread-page .forum-thread-reply-editor {
    height: 150px;
}

.forum-thread-page .forum-thread-viewers-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 12px 16px;
}

.forum-thread-page .forum-thread-viewers-card:last-of-type {
    margin-bottom: 12px;
}

.forum-thread-page .forum-thread-viewers-card + .forum-thread-pagination {
    margin-top: 14px;
}

.forum-post-card {
    margin-bottom: 12px;
}

.forum-post-card .forum-post-sidebar-col {
    margin-bottom: 10px;
}

.forum-post-card .forum-post-userpanel {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: none;
}

.forum-post-card .forum-post-userpanel-body {
    padding: 10px;
}

.forum-post-card .forum-post-userpanel-footer {
    cursor: pointer;
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0.75;
    transition: background 0.12s ease;
}

.forum-post-card .forum-post-userpanel-footer:hover {
    background: rgba(255,255,255,0.04);
}

.forum-post-card .forum-post-author-name {
    font-size: 18px;
    margin-bottom: 6px;
}

.forum-post-card .forum-post-author-avatar {
    border-radius: 2px;
    margin-bottom: 5px;
}

.forum-post-card .forum-post-main-col {
    position: relative;
}

.forum-post-card .forum-post-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 4px;
}

.forum-post-card .forum-post-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.12s ease, border-color 0.12s ease;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: inherit;
}

.forum-post-card .forum-post-action-btn:hover {
    transform: translateY(-1px);
}

.forum-post-card .forum-post-title-row {
    margin-right: 6px;
}

.forum-post-card .forum-post-signature {
    max-height: 350px;
    overflow: hidden;
}

body.theme-light .forum-thread-page .forum-thread-section-title {
    color: #5a5a5a;
}

body.theme-light .forum-thread-page .forum-thread-polls-card,
body.theme-light .forum-thread-page .forum-thread-viewers-card {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .forum-thread-page .forum-thread-format-help {
    background: rgba(25,118,210,0.14);
    color: #1976d2;
}

body.theme-light .forum-thread-page .forum-thread-format-help:hover {
    background: rgba(25,118,210,0.2);
    color: #1976d2;
}

body.theme-light .forum-thread-page .goodies-subtitle span,
body.theme-light .forum-thread-page .goodies-subtitle i {
    color: #5a5a5a;
}

body.theme-light .forum-post-card .forum-post-userpanel {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .forum-post-card .forum-post-userpanel-footer {
    border-top-color: rgba(0,0,0,0.08);
}

body.theme-light .forum-post-card .forum-post-userpanel-footer:hover {
    background: rgba(0,0,0,0.03);
}

body.theme-light .forum-post-card .forum-post-action-btn {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

body.theme-light .forum-post-card .forum-post-action-btn:hover {
    background: rgba(25,118,210,0.12);
    border-color: rgba(25,118,210,0.24);
    color: #1976d2;
}

body.theme-dark .forum-thread-page .forum-thread-section-title {
    color: rgba(255,255,255,0.72);
}

body.theme-dark .forum-thread-page .goodies-subtitle span,
body.theme-dark .forum-thread-page .goodies-subtitle i {
    color: rgba(255,255,255,0.7);
}

body.theme-dark .forum-post-card .forum-post-action-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
}

body.theme-dark .forum-post-card .forum-post-action-btn:hover {
    background: rgba(66,165,245,0.2);
    border-color: rgba(66,165,245,0.35);
    color: #90caf9;
}

@media (max-width: 767px) {
    .forum-thread-page .forum-thread-reply-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .forum-post-card .forum-post-actions {
        margin-bottom: 10px;
        justify-content: flex-start;
    }
}

/* ==========================================
   MEDIA LIST PAGES (NEWS / GUIDES)
   ========================================== */
.media-list-page .media-list-item {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.media-list-page .media-list-image {
    height: 130px;
    margin-bottom: 0;
    border-radius: 0;
}

.media-list-page .media-list-body {
    padding: 12px;
}

.media-list-page .media-list-title {
    display: block;
    font-size: 14px;
    min-height: 38px;
}

.media-list-page .media-list-divider {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 8px 0;
}

.media-list-page .media-list-stats {
    font-size: 12px;
}

.media-list-page .media-list-meta-right {
    float: right !important;
}

.media-list-page .media-list-pagination {
    margin-top: 6px;
}

.media-list-page .media-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.media-list-page .media-sidebar-title {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 7px;
}

.media-list-page .media-sidebar-card .list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.06);
    padding: 0;
}

.media-list-page .media-sidebar-link {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.12s ease, color 0.12s ease;
}

.media-list-page .media-sidebar-link-active {
    background: rgba(66,165,245,0.16);
    border-left: 3px solid #42a5f5;
    padding-left: 8px;
    color: #42a5f5 !important;
}

.media-list-page .media-sidebar-link-active:hover {
    background: rgba(66,165,245,0.22);
    color: #42a5f5 !important;
}

.media-list-page .media-badges-grid {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.media-list-page .media-badges-grid .badgeBox {
    margin-right: 0 !important;
}

.media-list-page .media-badges-grid .badgeBox .completed {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.18);
}

.media-list-page .media-badges-pagination {
    padding: 0 10px 10px;
    display: flex;
    justify-content: center;
}

.media-list-page .media-badges-pagination .pagination {
    gap: 4px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.media-list-page .media-badges-pagination .page-link {
    border: 1px solid var(--hq-border);
    border-radius: 6px;
    color: var(--hq-text);
    background: var(--hq-surface);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    min-width: 26px;
    text-align: center;
}

.media-list-page .media-badges-pagination .page-link:hover {
    background: var(--hq-surface-alt);
    color: var(--hq-text);
}

.media-list-page .media-badges-pagination .page-item.active .page-link {
    background: var(--hq-nav-accent);
    border-color: var(--hq-nav-accent);
    color: #10222c;
}

.media-list-page .media-badges-pagination .page-item.disabled .page-link {
    opacity: 0.45;
    background: var(--hq-surface);
    color: var(--hq-text-muted);
}

.media-list-page .newsBadge .completed {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 0 0 3px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.18);
}

body.theme-light .media-list-page .media-list-item,
body.theme-light .media-list-page .media-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .media-list-page .media-list-title {
    color: #1a1a1a;
}

body.theme-light .media-list-page .media-list-title:hover {
    color: #1976d2;
}

body.theme-light .media-list-page .media-list-divider,
body.theme-light .media-list-page .media-sidebar-title,
body.theme-light .media-list-page .media-sidebar-card .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

body.theme-light .media-list-page .media-sidebar-title,
body.theme-light .media-list-page .media-list-stats p {
    color: #5a5a5a;
}

body.theme-light .media-list-page .media-sidebar-link-active {
    background: rgba(25,118,210,0.12);
    border-left-color: #1976d2;
    color: #1976d2 !important;
}

body.theme-light .media-list-page .media-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.theme-dark .media-list-page .media-list-title {
    color: #f1f1f1;
}

body.theme-dark .media-list-page .media-list-title:hover {
    color: #64b5f6;
}

body.theme-dark .media-list-page .media-sidebar-title,
body.theme-dark .media-list-page .media-list-stats p {
    color: rgba(255,255,255,0.75);
}

@media (max-width: 1199px) {
    .media-list-page .media-badges-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================
   HOME PAGE REVAMP
   ========================================== */
.home-page {
    margin-top: 4px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.home-section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 0 0 2px 0;
}

.home-section-title p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.home-section-btn {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
}

.home-online-count {
    color: #b859d8 !important;
    font-weight: 600;
}

.home-card {
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.home-card .card-body {
    padding: 16px;
}

body.theme-light .home-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .home-section-title h3 {
    color: #111827;
}

body.theme-light .home-section-title p {
    color: #6b7280;
}

/* Media cards (guides & articles) */
.home-media-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-media-card:hover {
    /* No transform/shadow - was causing unwanted box highlight on title hover */
}

.home-media-card,
.home-media-card:hover {
    background: none !important;
}

.home-media-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.home-media-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffffcf;
    padding: 5px;
    border-radius: 6px;
}

.home-media-badge img {
    height: 36px;
    width: 36px;
}

.home-media-badge .bi-check-circle-fill {
    color: #43a047;
    font-size: 20px;
}

.home-media-badge-count {
    background: linear-gradient(135deg, #c62828, #ef5350);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.home-media-body {
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
}

/* Equal height cards - row cols stretch, card fills col */
.home-media-row .col {
    flex-direction: column;
    min-width: 0;
}

.home-media-row .home-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Full width cards - reduce gutters so cards use more horizontal space */
.home-media-row {
    margin-left: -10px;
    margin-right: -10px;
}

.home-media-row > .col {
    padding-left: 10px;
    padding-right: 10px;
}

.home-media-row .home-media-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-media-row .home-media-thumb {
    flex-shrink: 0;
}


.home-media-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: rgba(255,255,255,0.95);
    line-height: 1.35;
}


body.theme-light .home-media-title {
    color: #111827;
}

.home-media-title:hover {
    color: #64b5f6;
}

body.theme-light .home-media-title:hover {
    color: #1e88e5;
}

/* Prevent unwanted hover box/background on the title - only change color on hover */
.home-media-card .home-media-body,
.home-media-card .home-media-title {
    background: transparent !important;
}

.home-media-card:hover .home-media-body,
.home-media-card:hover .home-media-title {
    background: transparent !important;
}

/* Remove focus outline when clicking (mouse) but keep for keyboard nav */
.home-media-card:focus:not(:focus-visible) {
    outline: none;
}

.home-media-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.home-media-meta-line {
    display: block;
}

.home-media-meta-stats {
    display: flex;
    justify-content: space-between;
}

.home-media-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-media-author i {
    flex-shrink: 0;
}

.home-media-author img {
    display: inline-block;
    vertical-align: middle;
}

body.theme-light .home-media-meta {
    color: #6b7280;
}

.home-media-meta i {
    margin-right: 3px;
    opacity: 0.8;
}

.home-media-meta a {
    color: inherit;
    font-weight: 700;
}

.home-media-meta a:hover {
    color: #64b5f6;
}

body.theme-light .home-media-meta a:hover {
    color: #1e88e5;
}

/* Badges grid */
.home-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 10px;
    justify-items: center;
}

.home-badge-item {
    width: 56px;
    height: 56px;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-badge-item:not(.faded):hover {
    background: rgba(184, 89, 218, 0.3);
    transform: scale(1.05);
}

.home-badge-item img {
    max-width: 100%;
    max-height: 100%;
}

.home-badge-check {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #43a047;
    font-size: 14px;
}

body.theme-light .home-badge-item {
    background: rgba(0,0,0,0.04);
}

body.theme-light .home-badge-item:not(.faded):hover {
    background: rgba(184, 89, 218, 0.15);
}

/* User feed composer */
.home-feed-composer {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.theme-light .home-feed-composer {
    border-bottom-color: rgba(0,0,0,0.08);
}

.home-feed-composer .form-control {
    border-radius: 10px;
    margin-bottom: 10px;
}

.home-feed-submit {
    width: 100%;
    border-radius: 8px;
}

.home-feed-login-prompt {
    padding: 24px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.home-feed-login-prompt .bi {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

.home-feed-list {
    padding-top: 12px !important;
}

/* Spotlight (Monthly Bests) */
.home-spotlight-card .card-body {
    padding: 0 !important;
}

.home-spotlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none !important;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s ease;
}

.home-spotlight-item:last-child {
    border-bottom: none;
}

.home-spotlight-item:hover {
    background: rgba(255,255,255,0.04);
}

body.theme-light .home-spotlight-item {
    border-bottom-color: rgba(0,0,0,0.06);
}

body.theme-light .home-spotlight-item:hover {
    background: rgba(0,0,0,0.03);
}

.home-spotlight-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: top center;
}

.home-spotlight-content {
    flex: 1;
    min-width: 0;
}

.home-spotlight-content strong {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
}

body.theme-light .home-spotlight-content strong {
    color: #111827;
}

.home-spotlight-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.theme-light .home-spotlight-label {
    color: #9ca3af;
}

.home-spotlight-reason {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 6px 0 0 0;
    line-height: 1.4;
}

body.theme-light .home-spotlight-reason {
    color: #4b5563;
}

/* Events list */
.home-empty-state {
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

body.theme-light .home-empty-state {
    color: #9ca3af;
}

.home-event-list .list-group-item {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
}

body.theme-light .home-event-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

.home-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px !important;
}

.home-event-info {
    flex: 1;
    min-width: 0;
}

.home-event-name {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.home-event-room {
    flex-shrink: 0;
}

.home-event-room img {
    display: block;
}

.home-event-info small a {
    font-weight: 700;
}

/* Forum list */
.home-forum-list .list-group-item {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
    padding: 12px 16px !important;
}

body.theme-light .home-forum-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

.home-forum-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-forum-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-forum-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-forum-content {
    flex: 1;
    min-width: 0;
}

.home-forum-title {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.home-forum-content small a {
    font-weight: 700;
}

/* Activity list */
.home-activity-list .list-group-item {
    border-color: rgba(255,255,255,0.08);
    background: transparent;
    padding: 12px 16px !important;
}

body.theme-light .home-activity-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

.home-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.home-activity-icon {
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    transform: rotate(8deg);
    flex-shrink: 0;
}

body.theme-light .home-activity-icon {
    color: #9ca3af;
}

.home-activity-time {
    display: block;
    margin-top: 4px;
    font-style: italic;
    color: rgba(255,255,255,0.5);
}

body.theme-light .home-activity-time {
    color: #9ca3af;
}

/* Online users */
.home-online-text a {
    margin-right: 2px;
    font-weight: 700;
}

.home-online-text a:hover {
    text-decoration: underline;
}

/* Username styling (like Latest Topics) - feed comments */
.home-feed-comment .contentHolder small a {
    font-weight: 700;
}

.home-online-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.home-online-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.home-online-avatar:hover {
    transform: scale(1.08);
}

.home-online-avatar img {
    width: 100%;
    object-fit: cover;
}

.home-featured-carousel {
    padding: 0 !important;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

/* ==========================================
   HOME PAGE EXTRAS
   ========================================== */
.home-advent-modal {
    border-radius: 12px;
    overflow: hidden;
}

.home-advent-strip .home-advent-tile {
    margin-bottom: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.home-advent-strip .home-advent-fade {
    width: 100%;
    height: 100%;
}

.home-advent-open-btn {
    border: none;
    background: transparent;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.home-advent-open-btn img {
    width: 72px;
    transition: transform 0.2s ease;
}

.home-advent-open-btn:hover img {
    transform: scale(1.08);
}

.home-advent-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

#homeAdverts2 .home-featured-slide {
    border: none;
    margin-bottom: 0;
    min-height: 170px;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

#homeAdverts2 .home-featured-slide::after {
    content: "";
    position: absolute;
    inset: 0;
}

#homeAdverts2 .home-featured-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

#homeAdverts2 .home-featured-indicators {
    bottom: 2px;
    z-index: 5;
}

#homeAdverts2 .home-featured-indicators li {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

#homeAdverts2 .home-featured-control {
    width: 8%;
    z-index: 6;
    border: 0;
    background: transparent;
    padding: 0;
    opacity: 0.85;
}

#homeAdverts2 .home-featured-control:hover {
    opacity: 1;
}

#homeAdverts2 .home-featured-control:focus {
    outline: none;
    box-shadow: none;
}

#homeAdverts2 {
    margin-bottom: 12px;
}

.home-feed-comment > .avatarHolder {
    width: 62px;
}

.home-feed-comment > .avatarHolder .smallAvatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.home-feed-comment > .contentHolder,
.home-feed-comment > .buttonsHolder {
    width: calc(100% - 56px);
    margin-left: 56px;
}

.home-feed-comment > .contentHolder {
    border-radius: 10px 10px 0 0;
}

.home-feed-comment > .buttonsHolder {
    border-radius: 0 0 10px 10px;
    font-size: 12px;
}

.home-feed-comment .commentButton {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    transition: background 0.2s ease;
}

.home-feed-comment .commentButton i {
    color: inherit;
}

.home-feed-comment .commentButton:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.95);
}

body.theme-light .home-feed-comment .commentButton:hover {
    background: rgba(0,0,0,0.06);
}

body.theme-light .home-feed-comment .commentButton {
    color: #6b7280;
}

body.theme-light .home-feed-comment .commentButton:hover {
    color: #1f2937;
}

body.theme-light .home-advent-label {
    background: rgba(0, 0, 0, 0.68);
}

/* ==========================================
   MEDIA GUIDE PAGE
   ========================================== */
.search-page .card {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.search-page .btn-group .btn {
    min-width: 88px;
}

.search-page .btn-group .btn.btn-outline-secondary {
    color: rgba(255,255,255,0.78);
    border-color: rgba(255,255,255,0.18) !important;
    background: rgba(255,255,255,0.03);
}

.search-page .btn-group .btn.btn-outline-secondary:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35) !important;
    background: rgba(255,255,255,0.12);
}

.search-page .btn-group .btn.btn-primary {
    border-color: transparent !important;
}

.search-page .list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.08);
}

body.theme-light .search-page .card {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body.theme-light .search-page .btn-group .btn.btn-outline-secondary {
    color: #4b5563 !important;
    border-color: rgba(0,0,0,0.18) !important;
    background: rgba(0,0,0,0.02) !important;
}

body.theme-light .search-page .btn-group .btn.btn-outline-secondary:hover {
    color: #111827 !important;
    border-color: rgba(0,0,0,0.32) !important;
    background: rgba(0,0,0,0.08) !important;
}

body.theme-light .search-page .btn-group .btn.btn-primary {
    color: #fff;
}

body.theme-light #maincontainer .search-page .btn.btn-outline-secondary {
    color: #4b5563 !important;
    border-color: rgba(0,0,0,0.22) !important;
    background: #f5f6f8 !important;
    opacity: 1 !important;
}

body.theme-light #maincontainer .search-page .btn.btn-outline-secondary:hover,
body.theme-light #maincontainer .search-page .btn.btn-outline-secondary:focus {
    color: #111827 !important;
    border-color: rgba(0,0,0,0.35) !important;
    background: #e9edf1 !important;
    box-shadow: none !important;
}

body.theme-light .search-page .list-group-item {
    border-color: rgba(0,0,0,0.08);
}

body.theme-light .search-page small,
body.theme-light .search-page .goodies-subtitle {
    color: #6b7280;
}

body.theme-light .search-page .goodies-title,
body.theme-light .search-page h5 {
    color: #111827;
}

.media-guide-page .media-guide-meta-row {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
}

.media-guide-page .media-guide-meta-row > [class*="col-"] {
    display: flex;
}

.media-guide-page .media-guide-meta-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.media-guide-page .media-guide-meta-card .media-guide-meta-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.media-guide-page .media-guide-meta-card,
.media-guide-page .media-guide-content-card,
.media-guide-page .media-guide-comments-card,
.media-guide-page .media-guide-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 14px;
}

.media-guide-page .media-guide-meta-title,
.media-guide-page .media-guide-comments-title,
.media-guide-page .media-guide-sidebar-title {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 7px;
}

.media-guide-page .media-guide-meta-body,
.media-guide-page .media-guide-comments-body,
.media-guide-page .media-guide-sidebar-body {
    padding: 12px;
}

.media-guide-page .media-guide-meta-body .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    width: 100%;
}

#maincontainer .media-guide-page .media-guide-meta-body .btn-group .btn {
    flex-shrink: 0;
    margin: 0;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12px;
}

.media-guide-page .media-guide-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    align-items: center;
}

.media-guide-page .media-guide-badges img {
    max-width: 40px;
    max-height: 40px;
}

.media-guide-page .media-guide-room-image {
    height: 40px;
}

.media-guide-page .media-guide-room-image-muted {
    filter: grayscale(100%);
}

.media-guide-page .media-guide-author-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
}

.media-guide-page .media-guide-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.media-guide-page .media-guide-tools .btn {
    margin-left: 0 !important;
}

.media-guide-page .media-guide-content-body {
    padding: 16px;
}

.media-guide-page .media-guide-content-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 14px;
    font-size: 12px;
    opacity: 0.75;
    text-align: right;
}

.media-guide-page .media-guide-comments-empty {
    text-align: center;
    padding: 18px 10px;
    opacity: 0.85;
}

.media-guide-page .media-guide-comments-empty i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.media-guide-page .media-guide-comments-empty p {
    margin: 0 0 2px;
    font-weight: 600;
}

.media-guide-page .media-guide-comments-empty small {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}

.media-guide-page .media-guide-other-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    justify-items: center;
}

.media-guide-page .media-guide-other-grid .badgeBox {
    margin-right: 0 !important;
}

body.theme-light .media-guide-page .media-guide-meta-card,
body.theme-light .media-guide-page .media-guide-content-card,
body.theme-light .media-guide-page .media-guide-comments-card,
body.theme-light .media-guide-page .media-guide-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .media-guide-page .media-guide-meta-title,
body.theme-light .media-guide-page .media-guide-comments-title,
body.theme-light .media-guide-page .media-guide-sidebar-title,
body.theme-light .media-guide-page .media-guide-content-footer {
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

body.theme-light .media-guide-page .media-guide-comments-empty i,
body.theme-light .media-guide-page .media-guide-author-link {
    color: #1976d2;
}

body.theme-dark .media-guide-page .media-guide-comments-empty i,
body.theme-dark .media-guide-page .media-guide-author-link {
    color: #64b5f6;
}

@media (max-width: 1199px) {
    .media-guide-page .media-guide-other-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================
   MEDIA ARTICLE PAGE
   ========================================== */
.media-article-page .media-article-content-card,
.media-article-page .media-article-comments-card,
.media-article-page .media-article-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 14px;
}

.media-article-page .media-article-section-title {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 7px;
}

.media-article-page .media-article-content-body,
.media-article-page .media-article-section-body {
    padding: 14px;
}

.media-article-page .media-article-content-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 14px;
    font-size: 12px;
    opacity: 0.75;
    text-align: right;
}

.media-article-page .media-article-comments-empty {
    text-align: center;
    padding: 18px 10px;
    opacity: 0.85;
}

.media-article-page .media-article-comments-empty i {
    font-size: 22px;
    margin-bottom: 8px;
    display: block;
}

.media-article-page .media-article-comments-empty p {
    margin: 0 0 2px;
    font-weight: 600;
}

.media-article-page .media-article-comments-empty small {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}

.media-article-page .media-article-settings {
    display: flex;
    justify-content: center;
}

.media-article-page .media-article-settings .badgeBox i {
    color: #7B7777;
}

.media-article-page .media-article-polls-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-article-page .media-article-poll-item {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px;
}

.media-article-page .media-article-poll-question {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.media-article-page .media-article-poll-preview img {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 5px;
}

.media-article-page .media-article-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.media-article-page .media-article-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.media-article-page .media-article-author-info a {
    font-size: 13px;
    font-weight: 700;
}

.media-article-page .media-article-author-info span {
    font-size: 12px;
    opacity: 0.8;
}

.media-article-page .media-article-other-list .list-group-item {
    background: transparent;
    border-color: rgba(255,255,255,0.06);
}

.media-article-page .media-article-other-list .list-group-item a {
    font-size: 13px;
}

/* Shared comment styling for media guide/article pages */
.media-guide-page #guideComments .commentHolder,
.media-article-page #articleComments .commentHolder {
    margin-bottom: 12px !important;
}

.media-guide-page #guideComments .commentHolder > .avatarHolder,
.media-article-page #articleComments .commentHolder > .avatarHolder {
    width: 62px;
}

.media-guide-page #guideComments .commentHolder > .avatarHolder .smallAvatar,
.media-article-page #articleComments .commentHolder > .avatarHolder .smallAvatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.media-guide-page #guideComments .commentHolder > .contentHolder,
.media-guide-page #guideComments .commentHolder > .buttonsHolder,
.media-article-page #articleComments .commentHolder > .contentHolder,
.media-article-page #articleComments .commentHolder > .buttonsHolder {
    width: calc(100% - 56px);
    margin-left: 56px;
}

.media-guide-page #guideComments .commentHolder > .contentHolder,
.media-article-page #articleComments .commentHolder > .contentHolder {
    border-radius: 10px 10px 0 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.88) !important;
}

.media-guide-page #guideComments .commentHolder > .buttonsHolder,
.media-article-page #articleComments .commentHolder > .buttonsHolder {
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    background: rgba(255,255,255,0.02);
    font-size: 12px;
}

.media-guide-page #guideComments .commentHolder .commentButton,
.media-article-page #articleComments .commentHolder .commentButton {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    opacity: 0.9;
    transition: background 0.2s ease, color 0.2s ease;
}

.media-guide-page #guideComments .commentHolder .commentButton i,
.media-article-page #articleComments .commentHolder .commentButton i {
    color: inherit;
}

.media-guide-page #guideComments .commentHolder .commentButton:hover,
.media-article-page #articleComments .commentHolder .commentButton:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.95);
}

.media-guide-page #guideComments .commentHolder .contentHolder small,
.media-article-page #articleComments .commentHolder .contentHolder small {
    opacity: 0.78;
}

.media-guide-page #guideComments .commentHolder .contentHolder a,
.media-article-page #articleComments .commentHolder .contentHolder a {
    font-weight: 700;
}

.media-guide-page #guideComments .commentHolder .comment2,
.media-guide-page #guideComments .commentHolder .comment3,
.media-guide-page #guideComments .commentHolder > .contentHolder.mt-2,
.media-article-page #articleComments .commentHolder .comment2,
.media-article-page #articleComments .commentHolder .comment3,
.media-article-page #articleComments .commentHolder > .contentHolder.mt-2 {
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

body.theme-light .media-article-page .media-article-content-card,
body.theme-light .media-article-page .media-article-comments-card,
body.theme-light .media-article-page .media-article-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .media-article-page .media-article-section-title,
body.theme-light .media-article-page .media-article-content-footer,
body.theme-light .media-article-page .media-article-other-list .list-group-item {
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

body.theme-light .media-article-page .media-article-comments-empty i,
body.theme-light .media-article-page .media-article-author-info a {
    color: #1976d2;
}

body.theme-light .media-article-page .media-article-poll-item {
    border-color: rgba(0,0,0,0.08);
}

body.theme-light .media-guide-page #guideComments .commentHolder > .contentHolder,
body.theme-light .media-article-page #articleComments .commentHolder > .contentHolder {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    color: #1a1a1a !important;
}

body.theme-light .media-guide-page #guideComments .commentHolder > .buttonsHolder,
body.theme-light .media-article-page #articleComments .commentHolder > .buttonsHolder {
    background: rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .media-guide-page #guideComments .commentHolder > .avatarHolder .smallAvatar,
body.theme-light .media-article-page #articleComments .commentHolder > .avatarHolder .smallAvatar {
    border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .media-guide-page #guideComments .commentHolder .commentButton:hover,
body.theme-light .media-article-page #articleComments .commentHolder .commentButton:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.theme-light .media-guide-page #guideComments .commentHolder .commentButton,
body.theme-light .media-article-page #articleComments .commentHolder .commentButton {
    color: #6b7280;
}

body.theme-light .media-guide-page #guideComments .commentHolder .commentButton:hover,
body.theme-light .media-article-page #articleComments .commentHolder .commentButton:hover {
    color: #1f2937;
}

body.theme-light .media-guide-page #guideComments .commentHolder .comment2,
body.theme-light .media-guide-page #guideComments .commentHolder .comment3,
body.theme-light .media-guide-page #guideComments .commentHolder > .contentHolder.mt-2,
body.theme-light .media-article-page #articleComments .commentHolder .comment2,
body.theme-light .media-article-page #articleComments .commentHolder .comment3,
body.theme-light .media-article-page #articleComments .commentHolder > .contentHolder.mt-2 {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-dark .media-article-page .media-article-comments-empty i,
body.theme-dark .media-article-page .media-article-author-info a {
    color: #64b5f6;
}

/* ==========================================
   FORUM - BBCODES PAGE
   ========================================== */
.forum-bbcodes-page .forum-bbcodes-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.forum-bbcodes-page .forum-bbcodes-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.forum-bbcodes-page .forum-bbcodes-table {
    width: 100%;
}

.forum-bbcodes-page .forum-bbcodes-table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.7;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
    white-space: nowrap;
}

.forum-bbcodes-page .forum-bbcodes-table td {
    font-size: 13px;
    padding: 12px 16px;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
}

.forum-bbcodes-page .forum-bbcodes-table tr:last-child td {
    border-bottom: none;
}

.forum-bbcodes-page .forum-bbcodes-name {
    font-weight: 700;
    white-space: nowrap;
}

.forum-bbcodes-page .forum-bbcodes-table code {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(66, 165, 245, 0.12);
    color: #42a5f5;
    font-weight: 600;
    white-space: nowrap;
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table thead th {
    color: #4a4a4a;
    opacity: 1;
    border-bottom-color: rgba(0,0,0,0.08);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table td {
    color: #5a5a5a;
    border-bottom-color: rgba(0,0,0,0.06);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-name {
    color: #1a1a1a;
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table tbody tr:hover td {
    background: rgba(33, 150, 243, 0.06);
}

body.theme-light .forum-bbcodes-page .forum-bbcodes-table code {
    background: rgba(25,118,210,0.12);
    color: #1976d2;
}

body.theme-dark .forum-bbcodes-page .forum-bbcodes-table td {
    color: rgba(255,255,255,0.75);
}

body.theme-dark .forum-bbcodes-page .forum-bbcodes-name {
    color: #f1f1f1;
}

body.theme-dark .forum-bbcodes-page .forum-bbcodes-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}

/* ==========================================
   RULES PAGE
   ========================================== */
.rules-page .rules-header-icon {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.22), rgba(244, 67, 54, 0.08));
    color: #ef5350;
}

.rules-page .rules-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.rules-page .rules-content {
    font-size: 13px;
    line-height: 1.7;
}

.rules-page .rules-content h1,
.rules-page .rules-content h2,
.rules-page .rules-content h3,
.rules-page .rules-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}

.rules-page .rules-content h2 {
    font-size: 16px;
}

.rules-page .rules-content h3,
.rules-page .rules-content h4 {
    font-size: 14px;
}

.rules-page .rules-content p {
    margin-bottom: 12px !important;
}

.rules-page .rules-content ul,
.rules-page .rules-content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.rules-page .rules-content li {
    margin-bottom: 6px;
}

.rules-page .rules-content a {
    font-weight: 700;
}

.rules-page .rules-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

body.theme-light .rules-page .rules-header-icon {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.18), rgba(244, 67, 54, 0.06));
    color: #d32f2f !important;
}

body.theme-light .rules-page .rules-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-light .rules-page .rules-content {
    color: #4a4a4a;
}

body.theme-light .rules-page .rules-content h1,
body.theme-light .rules-page .rules-content h2,
body.theme-light .rules-page .rules-content h3,
body.theme-light .rules-page .rules-content h4 {
    color: #1a1a1a;
}

body.theme-light .rules-page .rules-updated {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: #5a5a5a;
}

@media (max-width: 767px) {
    .rules-page .rules-card {
        padding: 14px;
    }
}

/* ==========================================
   TIMETABLE PAGE
   ========================================== */

/* Day Selector */
.tt-day-selector {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tt-day-tab {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tt-day-tab:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
}

.tt-day-tab.active {
    background: rgba(156,39,176,0.1);
    border-color: rgba(206,147,216,0.35);
}

.tt-day-full {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tt-day-abbr {
    display: none;
}

.tt-day-count {
    display: inline-block;
    font-size: 10px;
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0.5;
}

.tt-day-tab.active .tt-day-count {
    background: rgba(206,147,216,0.2);
    color: #ce93d8;
    opacity: 1;
}

/* Schedule Card */
.tt-schedule-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.tt-schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0.7;
}

.tt-schedule-header i {
    font-size: 14px;
}

/* Empty State */
.tt-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}

.tt-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.tt-empty p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tt-empty small {
    font-size: 11px;
}

/* Slot List */
.tt-slot-list {
    padding: 4px 0;
}

.tt-slot-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    transition: background 0.12s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.tt-slot-row:last-child {
    border-bottom: none;
}

.tt-slot-row:hover {
    background: rgba(255,255,255,0.03);
}

.tt-slot-time {
    width: 56px;
    height: 32px;
    border-radius: 8px;
    background: rgba(156,39,176,0.1);
    color: #ce93d8;
    font-size: 12px;
    font-weight: 700;
    font-family: 'PT Sans', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
}

.tt-slot-info {
    flex: 1;
    min-width: 0;
}

.tt-slot-event {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-slot-host {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 1px;
}

/* Sidebar Card */
.tt-sidebar-card {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 16px;
    margin-bottom: 16px;
}

.tt-coming-soon {
    text-align: center;
    padding: 30px 16px;
    opacity: 0.4;
}

.tt-coming-soon i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.tt-coming-soon p {
    font-size: 13px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 767px) {
    .tt-day-full { display: none; }
    .tt-day-abbr { display: block; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
    .tt-day-tab { padding: 10px 6px; }
}


/* Week summary tiles */
.tt-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.tt-stat {
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 16px 18px;
    min-width: 0;
}

.tt-stat-live {
    background: rgba(156,39,176,0.08);
    border-color: rgba(206,147,216,0.3);
}

.tt-stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.55;
    margin-bottom: 6px;
}

.tt-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.tt-stat-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-stat-muted {
    opacity: 0.45;
    font-weight: 600;
}

.tt-stat-sub {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live indicator */
.tt-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-block;
    flex-shrink: 0;
    animation: ttPulse 1.8s ease-in-out infinite;
}

@keyframes ttPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,0.45); }
    50% { opacity: 0.65; box-shadow: 0 0 0 5px rgba(76,175,80,0); }
}

@media (prefers-reduced-motion: reduce) {
    .tt-live-dot { animation: none; }
}

.tt-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(76,175,80,0.14);
    color: #81c784;
}

.tt-slot-tag {
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.35;
}

/* Slot states */
.tt-slot-row.is-live {
    background: rgba(76,175,80,0.06);
    box-shadow: inset 3px 0 0 #4caf50;
}

.tt-slot-row.is-past {
    opacity: 0.45;
}

.tt-schedule-count {
    margin-left: auto;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
}

/* the day tabs are real buttons now, so the UA styling needs clearing */
.tt-day-tab {
    font: inherit;
    color: inherit;
    display: block;
    width: 100%;
}

.tt-day-tab.tt-day-empty { opacity: 0.5; }
.tt-day-tab.tt-day-empty.active { opacity: 1; }

.tt-day-tab:focus-visible {
    outline: 2px solid #ce93d8;
    outline-offset: 2px;
}

/* Top 10 chart */
.tt-chart {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tt-chart-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background 0.12s ease;
}

.tt-chart-row:hover {
    background: rgba(255,255,255,0.03);
}

.tt-chart-rank {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
    margin-top: 1px;
}

.tt-chart-row.is-top .tt-chart-rank {
    background: rgba(156,39,176,0.18);
    color: #ce93d8;
    opacity: 1;
}

.tt-chart-info {
    flex: 1;
    min-width: 0;
}

/* two lines then clip - titles are long and this column is narrow */
.tt-chart-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tt-chart-bar {
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    margin: 6px 0 4px;
    overflow: hidden;
}

.tt-chart-bar-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #9c27b0, #ce93d8);
}

.tt-chart-meta {
    font-size: 10.5px;
    opacity: 0.45;
}

.tt-card-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 10.5px;
    opacity: 0.4;
    text-align: center;
}

@media (max-width: 991px) {
    .tt-stats { grid-template-columns: 1fr 1fr; }
    .tt-stats .tt-stat:first-child { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .tt-stats { grid-template-columns: 1fr; }
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

/* Password Notice */
.ct-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255,193,7,0.08);
    border: 1px solid rgba(255,193,7,0.15);
    border-left: 3px solid #ffc107;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.ct-notice > i {
    color: #ffc107;
    font-size: 16px;
    flex-shrink: 0;
}

.ct-notice strong {
    color: #ffc107;
}

.ct-required {
    color: #e94560;
}

/* Form Card */
.ct-form-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
    margin-bottom: 16px;
}

.ct-form-card textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* Submit Button */
.ct-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ct-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(67,160,71,0.3);
}

/* Success Panel */
.ct-success {
    text-align: center;
    padding: 32px 20px;
}

.ct-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(102,187,106,0.12);
    color: #66bb6a;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ct-success h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.ct-success p {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 16px;
}

.ct-save-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e94560;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ct-ticket-link {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 14px;
    font-family: monospace;
}

.ct-ticket-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.ct-action-btn {
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ct-action-copy {
    background: rgba(79,195,247,0.15);
    color: #4fc3f7;
}

.ct-action-copy:hover {
    background: rgba(79,195,247,0.25);
}

.ct-action-view {
    background: rgba(102,187,106,0.15);
    color: #66bb6a;
}

.ct-action-view:hover {
    background: rgba(102,187,106,0.25);
}

/* Info Card */
.ct-info-card {
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px;
    margin-bottom: 16px;
}

.ct-info-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    transition: background 0.12s ease;
}

.ct-info-block:hover {
    background: rgba(255,255,255,0.03);
}

.ct-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(79,195,247,0.1);
    color: #4fc3f7;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-info-block strong {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.ct-info-block span {
    font-size: 11px;
    opacity: 0.55;
    line-height: 1.5;
}

/* ==========================================
   JOBS PAGE
   ========================================== */

.jobs-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(102,187,106,0.1);
    border: 1px solid rgba(102,187,106,0.2);
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.jobs-success > i {
    color: #66bb6a;
    font-size: 18px;
    flex-shrink: 0;
}

.jobs-hint {
    display: block;
    font-size: 11px;
    opacity: 0.4;
    margin-top: 4px;
    font-style: italic;
}

.jobs-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.jobs-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,152,0,0.3);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.jobs-position-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.jobs-position-card:hover {
    border-color: rgba(255,152,0,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.jobs-position-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.jobs-position-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(255,152,0,0.06));
    color: #ffb74d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.jobs-position-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.jobs-position-body {
    flex: 1;
    margin-bottom: 16px;
}

.jobs-position-desc {
    font-size: 12.5px;
    line-height: 1.6;
    opacity: 0.65;
    margin: 0;
}

.jobs-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.jobs-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(102,187,106,0.3);
    color: #fff;
    text-decoration: none;
}

.jobs-empty {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.4;
}

.jobs-empty > i {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.jobs-empty > p {
    font-size: 14px;
    margin: 0;
}

.jobs-sidebar-intro {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.7;
}

.jobs-sidebar-intro p {
    margin-bottom: 10px;
}

.jobs-sidebar-intro p:last-child {
    margin-bottom: 0;
}

.jobs-sidebar-badge {
    float: right;
    margin: 0 0 8px 12px;
}

.jobs-form-content {
    margin-bottom: 20px;
}

.jobs-desc-text {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   TEAM PAGE
   ========================================== */

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

.team-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.team-section-icon {
    font-size: 15px;
    opacity: 0.6;
}

.team-section-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    opacity: 0.5;
}

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

.team-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card:hover {
    border-color: rgba(129,212,250,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

.team-card-leave {
    opacity: 0.25;
}

.team-card-leave:hover {
    opacity: 0.4;
}

.team-card-banner {
    height: 90px;
    background-size: cover;
    background-position: center center;
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.06);
}

.team-card-habbo {
    position: absolute;
    right: 4px;
    bottom: 0;
    height: 75px;
    overflow: hidden;
    opacity: 0.3;
}

.team-card-habbo img {
    display: block;
}

.team-card-status {
    position: absolute;
    top: 8px;
    left: 8px;
}

.team-status-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.3);
}

.team-status-online {
    background: #66bb6a;
    box-shadow: 0 0 6px rgba(102,187,106,0.5);
}

.team-status-offline {
    background: #78909c;
}

.team-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: top center;
    margin: -40px auto 0;
    position: relative;
    border: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.team-card:hover .team-card-avatar {
    border-color: rgba(129,212,250,0.3);
}

.team-card-info {
    padding: 10px 12px 16px;
}

.team-card-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.3;
}

.team-card-name a {
    color: inherit;
    text-decoration: none;
}

.team-card-role {
    font-size: 11px;
    opacity: 0.5;
    font-weight: 500;
}

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card-banner {
        height: 70px;
    }

    .team-card-avatar {
        width: 64px;
        height: 64px;
        margin-top: -32px;
    }
}

/* ==========================================
   VALUES / TELEPORTER PAGES
   ========================================== */

.val-board-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.val-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.val-item-row:last-child {
    border-bottom: none;
}

.val-item-row:hover {
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    color: inherit;
}

.val-item-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}

.val-item-img img {
    max-width: 36px;
    max-height: 36px;
}

.val-item-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.val-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #ffd54f;
    flex-shrink: 0;
}

.val-search-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.val-search-group {
    display: flex;
    gap: 8px;
}

.val-search-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.val-search-input:focus {
    border-color: rgba(255,255,255,0.2);
}

.val-search-input::placeholder {
    opacity: 0.35;
}

.val-search-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.val-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66,165,245,0.3);
}

.val-preview-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 16px;
}

.val-preview-card img {
    max-height: 120px;
}

.val-chart-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

/* ==========================================
   EVENTS TIMETABLE (habbo) - extra styles
   ========================================== */

.evt-booking-count {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.45;
    display: block;
    margin-top: 2px;
}

.evt-room-link {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(66,165,245,0.1);
    color: #42a5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.evt-room-link:hover {
    background: rgba(66,165,245,0.2);
    color: #42a5f5;
    text-decoration: none;
}

.evt-winner-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.evt-winner-row:last-child {
    border-bottom: none;
}

.evt-winner-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evt-winner-value {
    font-size: 12px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ==========================================
   BADGES LEADERBOARD
   ========================================== */

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

.blb-user-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 16px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blb-user-card:hover {
    border-color: rgba(255,213,79,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.blb-user-habbo {
    height: 90px;
    overflow: hidden;
    margin-bottom: 8px;
}

.blb-user-habbo img {
    display: block;
    margin: 0 auto;
}

.blb-user-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.blb-user-count {
    font-size: 12px;
    color: #ffd54f;
    font-weight: 600;
}

.blb-user-count i {
    font-size: 11px;
}

.blb-sync-section {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
}

.blb-sync-section p {
    margin-bottom: 10px;
    opacity: 0.7;
}

.blb-sync-section p:last-child {
    margin-bottom: 0;
}

.blb-sync-meta {
    font-size: 11px;
    opacity: 0.4 !important;
    font-style: italic;
}

@media (max-width: 991px) {
    .blb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .blb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==========================================
   HABBO ITEMS (Furnis & Badges)
   ========================================== */

.hab-items-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}

.hab-items-modal {
    max-height: 70vh;
    overflow-y: auto;
    border: none;
    margin-bottom: 0;
}

.hab-item-box {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 2px;
    color: inherit;
}

.hab-item-box:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    transform: scale(1.08);
}

.hab-item-box img {
    max-width: 38px;
    max-height: 38px;
}

.hab-item-extra {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    z-index: 1;
}

.hab-item-completed {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #66bb6a;
    z-index: 1;
}

/* --- Token Shop --- */
.shop-page {
    padding-bottom: 24px;
}

.shop-items-grid {
    margin-left: -18px;
    margin-right: -18px;
}

.shop-item-col {
    padding-left: 18px;
    padding-right: 18px;
    margin-bottom: 24px;
}

.shop-category-col {
    padding-left: 18px;
    padding-right: 18px;
    margin-bottom: 4px;
}

.shop-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin: 0 0 12px 0;
}

.shop-category-col:first-of-type .shop-category-header {
    margin-top: 0;
}

.shop-category-col:not(:first-of-type) .shop-category-header {
    margin-top: 28px;
}

.shop-category-header i {
    font-size: 14px;
}

.shop-item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin-bottom: 0;
    height: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.shop-item-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.shop-item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.shop-item-badge-new {
    background: #42a5f5;
    color: #0b2a3d;
}

.shop-item-badge-sale {
    background: #ef5350;
    color: #3b0a08;
}

.shop-item-visual {
    flex-shrink: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.shop-item-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.shop-item-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.shop-item-vip {
    background: linear-gradient(135deg, rgba(171, 71, 188, 0.25), rgba(171, 71, 188, 0.1));
    color: #ab47bc;
}

.shop-item-default {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.shop-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.shop-item-card .shop-btn {
    margin-top: auto;
}

.shop-item-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.shop-item-desc {
    font-size: 13px;
    opacity: 0.75;
    color: inherit;
    margin: 0 0 12px 0;
    line-height: 1.45;
}

.shop-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
    opacity: 0.7;
}

.shop-item-price {
    color: #ffc107;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-btn-purchase {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
}

.shop-btn-purchase:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.shop-btn-owned {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
}

.shop-btn-locked {
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
    cursor: not-allowed;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-token-balance {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.06));
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.shop-token-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.shop-token-content {
    display: flex;
    flex-direction: column;
}

.shop-token-value {
    font-size: 24px;
    font-weight: 700;
}

.shop-token-label {
    font-size: 12px;
    opacity: 0.7;
}

.shop-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.shop-sidebar-title i {
    opacity: 0.8;
}

.shop-sidebar-card {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1.45;
}

.shop-donate-list {
    margin: 8px 0;
    padding-left: 18px;
}

.shop-conversion {
    color: #66bb6a;
}

.shop-note {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-note i {
    color: #ffc107;
    margin-right: 4px;
}

.shop-leaderboard {
    padding: 0;
    overflow: hidden;
}

.shop-leaderboard-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.shop-leaderboard-row:last-child {
    border-bottom: none;
}

.shop-leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.shop-leaderboard-rank {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.5;
    min-width: 24px;
}

.shop-leaderboard-name {
    flex: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-leaderboard-tokens {
    font-size: 12px;
    color: #ffc107;
    font-weight: 600;
}

body.theme-light .shop-item-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .shop-item-card:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.12);
}

body.theme-light .shop-item-card .shop-item-name {
    color: #1a1a1a;
}

body.theme-light .shop-item-card .shop-item-desc {
    color: #5a5a5a;
}

body.theme-light .shop-token-balance {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.25);
}

body.theme-light .shop-sidebar-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .shop-leaderboard-row {
    border-color: rgba(0, 0, 0, 0.06);
}

body.theme-light .shop-leaderboard-row:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.theme-light .shop-btn-owned {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* ==========================================================================
   HabboQuests - Site chrome (Stage 1: header, navbar, banner, footer)

   Loaded after global.css and v2-0.css, so a handful of rules here use
   !important purely to unwind older !important declarations in global.css.

   Theme contract: the seasonal CSS stored in the database styles .banner,
   #navigationBar, .logo and the .header-* card colours. Those hooks are kept
   intact and this file deliberately avoids setting a background on .banner or
   #navigationBar in a way a theme cannot override.
   ========================================================================== */

:root {
    --hq-nav-bg: #3f4550;
    --hq-nav-bg-solid: #363b45;
    --hq-nav-text: rgba(255, 255, 255, 0.82);
    --hq-nav-text-active: #ffffff;
    --hq-nav-accent: #4fc3f7;
    --hq-nav-height: 58px;

    --hq-surface: #ffffff;
    --hq-surface-alt: #f4f6f8;
    --hq-border: rgba(15, 23, 42, 0.1);
    --hq-text: #3d4450;
    --hq-text-muted: #7c8698;

    --hq-footer-bg: #23272e;
    --hq-footer-bar: #151515;
    --hq-footer-text: rgba(255, 255, 255, 0.72);

    --hq-radius: 12px;
    --hq-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    --hq-shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.16);
}

body.theme-dark {
    --hq-nav-bg: #1d2128;
    --hq-nav-bg-solid: #191c22;
    --hq-surface: #262a31;
    --hq-surface-alt: #2e333b;
    --hq-border: rgba(255, 255, 255, 0.09);
    --hq-text: #d7dbe2;
    --hq-text-muted: #98a1b0;
    --hq-footer-bg: #16191e;
    --hq-footer-bar: #0e1013;
    --hq-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    --hq-shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------------- */

.hq-banner {
    padding: 0;
    margin-bottom: 0 !important;
    display: flex;
    align-items: flex-end;
}

.hq-banner-inner {
    width: 100%;
    padding-bottom: 18px;
}

/* Featured items carousel */
.hq-featured {
    border-radius: var(--hq-radius);
    overflow: hidden;
    box-shadow: var(--hq-shadow-lg);
}

.hq-featured-card {
    height: 125px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.hq-featured-card:hover {
    transform: scale(1.02);
}

.hq-featured-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    padding: 22px 16px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hq-featured-dots {
    margin-bottom: 6px;
}

.hq-featured-dots li {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease, width 0.2s ease;
}

.hq-featured-dots li.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Radio player
   -------------------------------------------------------------------------- */

.hq-radio {
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--hq-radius);
    box-shadow: var(--hq-shadow-lg);
    color: #fff;
    padding: 10px 12px;
    height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Unwind the absolute positioning the old markup relied on. */
.hq-radio .radioStats,
.hq-radio .radioButtons {
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    height: auto;
}

.hq-radio-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    flex: 1;
}

.hq-radio .quickStats {
    width: auto;
    flex-shrink: 0;
}

.hq-radio .djHabbo {
    width: 52px;
    height: 58px;
    overflow: hidden;
    position: relative;
    margin: 0;
    background: none;
}

.hq-radio .djHabbo img {
    width: 64px;
    margin-left: -6px;
    image-rendering: pixelated;
}

.hq-radio .djHabbo .overlay {
    display: none;
}

.hq-radio .statHolder {
    width: auto;
    flex: 1;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.hq-radio-live {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.85);
}

.hq-radio-live b {
    color: #fff;
}

.hq-radio-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
    flex-shrink: 0;
    animation: hq-radio-pulse 2s infinite;
}

@keyframes hq-radio-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.hq-radio-song {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    width: 100%;
}

.hq-radio-song span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.hq-radio-stats {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.hq-radio-stat i {
    margin-right: 3px;
    opacity: 0.8;
}

.hq-radio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hq-radio-btn {
    border: 0;
    border-radius: 8px;
    width: 32px;
    height: 30px;
    flex-shrink: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.hq-radio-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
}

.hq-radio-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 1px;
}

.hq-radio-btn-play { background: #22c55e; }
.hq-radio-btn-like { background: #ef4444; }
.hq-radio-btn-request { background: #0ea5e9; }

.hq-radio-slider {
    flex: 1;
    min-width: 60px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.hq-radio-slider .ui-slider-range {
    background: #fff;
    border: 0;
    border-radius: 999px;
}

.hq-radio-slider .ui-slider-handle {
    width: 13px;
    height: 13px;
    top: -4px;
    margin-left: -6px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    cursor: grab;
}

.hq-radio-slider .ui-slider-handle:focus {
    outline: none;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

/* #navigationBar carries the bar colour so the seasonal themes, which target
   this id, can actually recolour it. global.css paints .navbar with an
   !important grey, so that has to be unwound here. */
#navigationBar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--hq-nav-bg);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
    margin-bottom: 22px;
}

.hq-nav {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    min-height: var(--hq-nav-height);
    transition: min-height 0.2s ease;
}

.hq-nav-inner {
    min-height: var(--hq-nav-height);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: min-height 0.2s ease;
}

.hq-nav.is-scrolled,
.hq-nav.is-scrolled .hq-nav-inner {
    min-height: 50px;
}

/* Brand ------------------------------------------------------------------ */

.hq-nav-brand {
    position: relative;
    margin-right: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    /* Stretch to the bar's height so the logo, which is anchored against this
       box, lines up with the top edge rather than with the text inside it. */
    align-self: stretch;
}

.hq-nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* .logo keeps its absolute positioning and theme-supplied artwork; it hangs up
   into the banner and is swapped for the wordmark once the bar sticks. */
.hq-nav-brand .logo {
    display: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hq-nav-wordmark {
    color: #fff;
    font-family: 'Nunito', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* The logo artwork is a fixed ~293px sprite and the themes ship their own sizes,
   which will not fit beside six menus inside a 1140px container. So it is not
   laid out inline at all: it is anchored to hang up into the banner above the
   bar, overlapping only its top edge, and is free to extend right over the
   banner without covering any nav link. Only a small brand gap is reserved.

   The theme CSS still supplies the artwork and its width/height; only the
   vertical offset is neutralised, since the anchor below replaces it.

   Below xl, and once the bar sticks to the top and the banner has scrolled
   away, the compact wordmark stands in for it. */
@media (min-width: 1200px) {
    /* The logo only appears at this width, and it hangs up into the banner, so
       the carousel and radio player are lifted to leave it a clear band.

       The banner is 250px tall and its content 125px. The logo's bottom edge
       lands 266px down, so with a 118px theme logo its top edge is at 148px -
       the content has to finish above that. 106px of bottom padding puts it at
       144px, which clears the tallest logo any theme currently ships. */
    .hq-banner-inner {
        padding-bottom: 106px;
    }

    .hq-nav-brand {
        min-width: 120px;
    }

    /* The logo overhangs the nav links, so it must not swallow their clicks.
       The link keeps its own hit area in the bar instead. */
    .hq-nav-brand .logo {
        display: block;
        position: absolute;
        left: 0;
        bottom: calc(100% - 16px);
        margin-top: 0 !important;
        pointer-events: none;
        /* Themes set their own logo size. The width is left to them, but the
           height is capped so a taller sprite cannot grow up into the carousel;
           contain scales the artwork to fit rather than cropping it. */
        height: 118px !important;
        background-size: contain !important;
        background-repeat: no-repeat;
        background-position: left bottom;
    }

    .hq-nav-brand > a {
        width: 120px;
        height: 100%;
    }

    .hq-nav-wordmark {
        position: absolute;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .hq-nav.is-scrolled .hq-nav-brand .logo {
        opacity: 0;
        visibility: hidden;
    }

    .hq-nav.is-scrolled .hq-nav-wordmark {
        opacity: 1;
        visibility: visible;
    }
}

/* Links ------------------------------------------------------------------ */

.hq-nav-links {
    margin: 0 auto 0 0;
    text-align: left;
}

.hq-nav-actions {
    margin-left: auto;
    flex-direction: row;
    align-items: center;
}

.hq-nav .nav-link {
    color: var(--hq-nav-text) !important;
    font-family: 'Nunito', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    /* A wrapped label would push the whole bar to two rows. */
    white-space: nowrap;
}

.hq-nav .nav-link:hover,
.hq-nav .nav-link:focus,
.hq-nav .show > .nav-link {
    color: var(--hq-nav-text-active) !important;
    background: rgba(255, 255, 255, 0.12);
}

.hq-nav-links .nav-item.is-current > .nav-link {
    color: var(--hq-nav-text-active) !important;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 -2px 0 var(--hq-nav-accent);
}

.hq-nav .dropdown-toggle::after {
    margin-left: 2px;
    opacity: 0.6;
}

.hq-nav-icon .bi {
    font-size: 15px;
}

.hq-nav-cta {
    background: var(--hq-nav-accent);
    color: #10222c !important;
    font-weight: 700;
}

.hq-nav-cta:hover,
.hq-nav-cta:focus {
    background: #7fd4fa;
    color: #10222c !important;
}

/* Notification bell ------------------------------------------------------ */

.hq-nav-bell {
    position: relative;
}

.hq-nav-bell.has-unread .bi {
    color: #ffb4b7;
    animation: hq-bell-nudge 3s ease-in-out infinite;
}

@keyframes hq-bell-nudge {
    0%, 88%, 100% { transform: rotate(0deg); }
    91% { transform: rotate(12deg); }
    94% { transform: rotate(-10deg); }
    97% { transform: rotate(5deg); }
}

.hq-nav-bell-count {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 999px;
    min-width: 17px;
    text-align: center;
}

@media (min-width: 992px) {
    .hq-nav-bell-count {
        position: absolute;
        top: 2px;
        right: 2px;
    }
}

/* User menu -------------------------------------------------------------- */

.hq-nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    object-fit: cover;
    object-position: center top;
    image-rendering: pixelated;
}

.hq-nav-avatar-fallback {
    font-size: 20px;
}

.hq-nav-username {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Between lg and the widest desktops the six menus, the action icons and the
   username together outgrow the container, so the name gives way to the avatar. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .hq-nav-username {
        display: none;
    }
}

/* Dropdowns -------------------------------------------------------------- */

.hq-dropdown {
    border: 1px solid var(--hq-border);
    border-radius: 10px;
    box-shadow: var(--hq-shadow-lg);
    background: var(--hq-surface);
    padding: 6px;
    margin-top: 8px;
    min-width: 220px;
}

.hq-dropdown .dropdown-item {
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hq-text);
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.hq-dropdown .dropdown-item .bi {
    width: 16px;
    text-align: center;
    opacity: 0.55;
    flex-shrink: 0;
}

.hq-dropdown .dropdown-item:hover,
.hq-dropdown .dropdown-item:focus {
    background: var(--hq-surface-alt);
    color: var(--hq-text);
}

.hq-dropdown .dropdown-item:hover .bi {
    opacity: 1;
}

.hq-dropdown .dropdown-divider {
    border-color: var(--hq-border);
    margin: 5px 2px;
}

.hq-dropdown-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--hq-text-muted);
    padding: 6px 10px 3px;
}

.hq-dropdown-button {
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

/* Mobile drawer ---------------------------------------------------------- */

.hq-nav-toggler {
    border: 0;
    padding: 6px 8px;
    margin-left: auto;
}

.hq-nav-toggler:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
    .hq-nav-collapse {
        max-height: calc(100vh - var(--hq-nav-height));
        overflow-y: auto;
        padding: 8px 0 14px;
        margin-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hq-nav-links,
    .hq-nav-actions {
        margin: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .hq-nav-actions {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hq-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 14px;
    }

    /* Bootstrap renders dropdowns inline inside the collapsed drawer. */
    .hq-dropdown {
        background: rgba(0, 0, 0, 0.18);
        border: 0;
        box-shadow: none;
        margin: 2px 0 6px 12px;
    }

    .hq-dropdown .dropdown-item,
    .hq-dropdown .dropdown-item:hover,
    .hq-dropdown .dropdown-item:focus {
        color: rgba(255, 255, 255, 0.85);
        background: none;
    }

    .hq-dropdown .dropdown-item:hover {
        color: #fff;
    }

    .hq-dropdown-label {
        color: rgba(255, 255, 255, 0.45);
    }

    .hq-dropdown .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.12);
    }

    .hq-nav-username {
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   Main content and notices
   -------------------------------------------------------------------------- */

.hq-main {
    min-height: 420px;
    padding-bottom: 32px;
}

.hq-notices {
    margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Notifications modal
   -------------------------------------------------------------------------- */

.hq-notifications .modal-content {
    border: 0;
    border-radius: var(--hq-radius);
    background: var(--hq-surface);
    box-shadow: var(--hq-shadow-lg);
}

.hq-notifications .modal-header,
.hq-notifications .modal-footer {
    border-color: var(--hq-border);
}

.hq-notifications .modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hq-text);
    display: flex;
    align-items: center;
}

.hq-notification-pill {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 8px;
}

.hq-notification {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.hq-notification:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.hq-notifications-empty {
    text-align: center;
    padding: 34px 10px;
    color: var(--hq-text-muted);
}

.hq-notifications-empty .bi {
    font-size: 26px;
    opacity: 0.4;
    display: block;
    margin-bottom: 10px;
}

.hq-notifications-empty p {
    margin: 0;
    font-size: 13px;
}

.hq-notifications-footer {
    padding: 12px 16px;
}

body.theme-dark .hq-notification {
    background-color: #2e333b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--hq-text) !important;
}

body.theme-dark .hq-notification .title {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.hq-pagination .pagination {
    gap: 4px;
}

.hq-pagination .page-link {
    border: 1px solid var(--hq-border);
    border-radius: 8px;
    color: var(--hq-text);
    background: var(--hq-surface);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 11px;
    min-width: 34px;
    text-align: center;
}

.hq-pagination .page-link:hover {
    background: var(--hq-surface-alt);
    color: var(--hq-text);
}

.hq-pagination .page-item.active .page-link {
    background: var(--hq-nav-accent);
    border-color: var(--hq-nav-accent);
    color: #10222c;
}

.hq-pagination .page-item.disabled .page-link {
    opacity: 0.45;
    background: var(--hq-surface);
    color: var(--hq-text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.hq-footer-main {
    background: var(--hq-footer-bg);
    color: var(--hq-footer-text);
    padding: 38px 0 18px;
    box-shadow: none;
}

.hq-footer-heading {
    font-family: 'Nunito', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 14px;
}

.hq-footer-links .list-group-item {
    background: none !important;
    border: 0 !important;
    padding: 4px 0 !important;
}

.hq-footer-links .list-group-item a {
    color: var(--hq-footer-text) !important;
    font-size: 13px;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}

.hq-footer-links .list-group-item a:hover {
    color: #fff !important;
    padding-left: 4px;
    text-decoration: none;
}

.hq-spotlight {
    display: block;
    height: auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: background 0.15s ease, transform 0.15s ease;
}

.hq-spotlight:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

.hq-spotlight-info {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hq-spotlight-name {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hq-spotlight-role {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.hq-footer-disclaimer {
    font-size: 11.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
}

.hq-footer-external {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
}

.hq-footer-external a {
    color: var(--hq-footer-text);
    font-size: 12px;
    font-weight: 600;
}

.hq-footer-external a:hover {
    color: #fff;
    text-decoration: none;
}

.hq-footer-bar {
    background: var(--hq-footer-bar);
    height: auto;
    line-height: 1.6;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.hq-footer-bar a {
    color: #fff;
    font-weight: 600;
}

.hq-footer-credit .bi-heart-fill {
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    /* The banner artwork is desktop-sized; shrink the strip and let the radio
       player take the space on smaller screens. */
    .banner.hq-banner {
        height: auto;
        min-height: 0;
        padding-top: 16px;
    }

    .hq-banner-inner {
        padding-bottom: 14px;
    }

    #navigationBar {
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {
    .hq-radio {
        height: auto;
    }

    .hq-radio-body {
        margin-bottom: 10px;
    }

    .hq-footer-main {
        padding-top: 28px;
    }

    .hq-footer-bar {
        text-align: center;
    }

    .hq-footer-credit {
        text-align: center !important;
        margin-top: 6px;
    }
}

/* --------------------------------------------------------------------------
   Popup forms (hq-modal.js)
   -------------------------------------------------------------------------- */

.hq-modal .modal-content {
    border: 0;
    border-radius: var(--hq-radius);
    background: var(--hq-surface);
    box-shadow: var(--hq-shadow-lg);
}

.hq-modal .modal-header {
    border-color: var(--hq-border);
    padding: 14px 20px;
}

.hq-modal .modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hq-text);
    display: flex;
    align-items: center;
}

.hq-modal .modal-title .bi {
    opacity: 0.45;
}

.hq-modal-body {
    padding: 20px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
}

/* The fragment arrives wrapped in its page grid, which the dialog flattens. */
.hq-modal-body > .row {
    margin-left: 0;
    margin-right: 0;
}

.hq-modal-body > .row > [class^="col-"],
.hq-modal-body > .row > [class*=" col-"] {
    padding-left: 0;
    padding-right: 0;
    flex: 0 0 100%;
    max-width: 100%;
}

/* Cards inside a dialog already sit on a panel, so drop the extra chrome. */
.hq-modal-body .card {
    box-shadow: none;
    border: 1px solid var(--hq-border);
    margin-bottom: 14px;
}

.hq-modal-body .card:last-child {
    margin-bottom: 0;
}

.hq-modal-loading {
    text-align: center;
    padding: 46px 0;
}

.hq-modal-error {
    text-align: center;
    padding: 34px 16px;
    color: var(--hq-text-muted);
}

.hq-modal-error .bi {
    display: block;
    font-size: 26px;
    opacity: 0.4;
    margin-bottom: 10px;
}

.hq-modal-error p {
    margin: 0;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Public page hero (partials/pageHero.blade.php)

   Pages not yet moved onto the component still set their accent with an inline
   style, which older theme rules match with [style*="..."] selectors. These
   named accents replace that hook for migrated pages.
   -------------------------------------------------------------------------- */

.hq-hero-icon {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.2), rgba(66, 165, 245, 0.06));
    color: #42a5f5;
}

.hq-hero-blue    { background: linear-gradient(135deg, rgba(66, 165, 245, 0.2), rgba(66, 165, 245, 0.06)); color: #42a5f5; }
.hq-hero-sky     { background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(79, 195, 247, 0.06)); color: #4fc3f7; }
.hq-hero-amber   { background: linear-gradient(135deg, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0.08)); color: #ffc107; }
.hq-hero-orange  { background: linear-gradient(135deg, rgba(255, 183, 77, 0.22), rgba(255, 183, 77, 0.08)); color: #ffb74d; }
.hq-hero-purple  { background: linear-gradient(135deg, rgba(171, 71, 188, 0.2), rgba(171, 71, 188, 0.06)); color: #ab47bc; }
.hq-hero-lilac   { background: linear-gradient(135deg, rgba(206, 147, 216, 0.2), rgba(206, 147, 216, 0.06)); color: #ce93d8; }
.hq-hero-green   { background: linear-gradient(135deg, rgba(102, 187, 106, 0.2), rgba(102, 187, 106, 0.06)); color: #66bb6a; }
.hq-hero-discord { background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.06)); color: #5865f2; }

/* The light theme darkens each accent so it stays legible on a pale surface,
   matching what the older [style*="..."] rules do for unmigrated pages. */
body.theme-light .goodies-header .hq-hero-blue {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.08)) !important;
    color: #1976d2 !important;
}

body.theme-light .goodies-header .hq-hero-sky {
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.2), rgba(3, 169, 244, 0.08)) !important;
    color: #0277bd !important;
}

body.theme-light .goodies-header .hq-hero-amber,
body.theme-light .goodies-header .hq-hero-orange {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 193, 7, 0.1)) !important;
    color: #f57f17 !important;
}

body.theme-light .goodies-header .hq-hero-purple,
body.theme-light .goodies-header .hq-hero-lilac {
    background: linear-gradient(135deg, rgba(171, 71, 188, 0.2), rgba(171, 71, 188, 0.08)) !important;
    color: #7b1fa2 !important;
}

body.theme-light .goodies-header .hq-hero-green {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.08)) !important;
    color: #2e7d32 !important;
}

body.theme-light .goodies-header .hq-hero-discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.08)) !important;
    color: #3b45c4 !important;
}

/* --------------------------------------------------------------------------
   Scrollable modal

   .modal-dialog-scrollable arrived in Bootstrap 4.3, but the compiled CSS
   bundle in app.css is 4.1.3, so the class has no styles of its own here.
   -------------------------------------------------------------------------- */

.modal-dialog-scrollable {
    display: flex;
    max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

@media (min-width: 576px) {
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }

    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
    }
}

/* ==========================================================================
   HabboQuests - Admin panel (Stage 2)

   Loaded after v2-0.css, which already provides .text-heading, .new-nav-link,
   .new-dash-stat and the .status-badge set. This file adds the rebuilt sidebar,
   the shared page header and the table/form polish the panel pages share.
   Colour variables come from v2-1-layout.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.admin-menu {
    position: -webkit-sticky;
    position: sticky;
    top: 74px;
}

.admin-menu-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--hq-surface);
    border: 1px solid var(--hq-border);
    border-radius: 10px;
    padding: 2px 10px;
    margin-bottom: 14px;
    box-shadow: var(--hq-shadow);
}

.admin-menu-search .bi-search {
    font-size: 13px;
    color: var(--hq-text-muted);
    flex-shrink: 0;
}

.admin-menu-search .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    color: var(--hq-text);
    padding-left: 8px;
}

.admin-menu-search .form-control:focus {
    box-shadow: none;
    background: transparent;
    color: var(--hq-text);
}

.admin-menu-search-clear {
    border: 0;
    background: none;
    color: var(--hq-text-muted);
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.admin-menu-search-clear:hover {
    color: var(--hq-text);
}

.admin-menu-section {
    background: var(--hq-surface);
    border: 1px solid var(--hq-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--hq-shadow);
}

.admin-menu-section-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: none;
    padding: 11px 14px;
    cursor: pointer;
    color: var(--hq-text);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.admin-menu-section-head:hover {
    background: var(--hq-surface-alt);
}

.admin-menu-section-head:focus {
    outline: none;
    background: var(--hq-surface-alt);
}

.admin-menu-section-head > .bi:first-child {
    font-size: 14px;
    opacity: 0.55;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.admin-menu-section-title {
    flex: 1;
    min-width: 0;
}

.admin-menu-section-count {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--hq-surface-alt);
    color: var(--hq-text-muted);
    letter-spacing: 0;
}

.admin-menu-chevron {
    font-size: 11px;
    opacity: 0.45;
    transition: transform 0.18s ease;
}

.admin-menu-section-body {
    padding-bottom: 6px;
    border-top: 1px solid var(--hq-border);
}

.admin-menu-section.is-collapsed .admin-menu-chevron {
    transform: rotate(-90deg);
}

.admin-menu-section.is-collapsed .admin-menu-section-body {
    display: none;
}

/* An active filter reveals its matches regardless of collapse state. */
.admin-menu-section.is-filtering .admin-menu-section-body {
    display: block;
}

.admin-menu-section.is-filtering .admin-menu-chevron {
    opacity: 0.15;
}

.admin-menu-link {
    color: var(--hq-text);
    padding-top: 7px;
    padding-bottom: 7px;
}

.admin-menu-link:hover {
    color: var(--hq-text);
    background: var(--hq-surface-alt);
}

.admin-menu-empty {
    text-align: center;
    padding: 22px 14px;
    color: var(--hq-text-muted);
    font-size: 12px;
    background: var(--hq-surface);
    border: 1px solid var(--hq-border);
    border-radius: 10px;
}

.admin-menu-empty .bi {
    display: block;
    font-size: 20px;
    opacity: 0.4;
    margin-bottom: 8px;
}

@media (max-width: 991.98px) {
    .admin-menu {
        position: static;
        margin-top: 24px;
    }
}

/* --------------------------------------------------------------------------
   Shared page header
   -------------------------------------------------------------------------- */

.hq-page-header {
    margin-bottom: 18px;
}

.hq-page-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hq-text-muted);
    margin-bottom: 6px;
}

.hq-page-back:hover {
    color: var(--hq-text);
    text-decoration: none;
}

.hq-page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hq-border);
}

.hq-page-title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hq-text);
}

.hq-page-title .bi {
    opacity: 0.45;
}

.hq-page-subtitle {
    font-size: 12.5px;
    color: var(--hq-text-muted);
    margin: 6px 0 0;
    max-width: 640px;
}

.hq-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hq-page-actions .btn {
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 14px;
}

/* --------------------------------------------------------------------------
   Shared empty state
   -------------------------------------------------------------------------- */

.hq-empty-state {
    text-align: center;
    padding: 44px 20px;
    color: var(--hq-text-muted);
}

.hq-empty-state .bi {
    display: block;
    font-size: 30px;
    opacity: 0.35;
    margin-bottom: 12px;
}

.hq-empty-state-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hq-text);
    margin-bottom: 4px;
}

.hq-empty-state-text {
    font-size: 12.5px;
    margin: 0 auto;
    max-width: 380px;
}

/* --------------------------------------------------------------------------
   Panel tables and cards
   -------------------------------------------------------------------------- */

#maincontainer .admin-table {
    margin-bottom: 0;
}

#maincontainer .admin-table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--hq-border);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--hq-text-muted);
    padding: 11px 12px;
    white-space: nowrap;
}

#maincontainer .admin-table tbody td {
    border-top: 1px solid var(--hq-border);
    padding: 12px;
    vertical-align: middle;
    font-size: 13px;
}

#maincontainer .admin-table tbody tr:first-child td {
    border-top: 0;
}

.admin-stat-row + .admin-stat-row {
    border-top: 1px solid var(--hq-border);
}

/* --------------------------------------------------------------------------
   Dark theme
   -------------------------------------------------------------------------- */

body.theme-dark .admin-menu-section,
body.theme-dark .admin-menu-search,
body.theme-dark .admin-menu-empty {
    background: var(--hq-surface);
    border-color: var(--hq-border);
}

body.theme-dark .admin-menu-link,
body.theme-dark .admin-menu-section-head {
    color: var(--hq-text);
}

body.theme-dark .admin-menu-search .form-control::-webkit-input-placeholder {
    color: var(--hq-text-muted);
}

body.theme-dark .admin-menu-search .form-control::placeholder {
    color: var(--hq-text-muted);
}

/* Shared dashboards */
.admin-dashboard .dashboard-panel {
    background: var(--hq-surface);
    border: 1px solid var(--hq-border);
    border-radius: var(--hq-radius);
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--hq-text);
}
.admin-dashboard .dashboard-activity {
    border-top: 3px solid #408baf;
    background: linear-gradient(120deg, rgba(64, 139, 175, .08), transparent 75%), var(--hq-surface);
}
.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
}
.admin-dashboard .dashboard-section-heading h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--hq-text);
    line-height: 1.4;
}
.dashboard-section-heading p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--hq-text-muted);
}
.dashboard-eyebrow, .dashboard-highlight-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--hq-text-muted);
    margin-bottom: 7px;
}
.dashboard-heading-icon { font-size: 26px; color: var(--hq-text-muted); }
.dashboard-caption { font-size: 11px; color: var(--hq-text-muted); white-space: nowrap; }
.dashboard-activity-grid, .dashboard-totals, .dashboard-economy-grid {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 4px 24px 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-dashboard dt { font-size: 12px; font-weight: 500; color: var(--hq-text-muted); }
.admin-dashboard dd { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 8px 0 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dashboard-activity-grid > div { padding: 8px 0; }
.dashboard-activity-grid > div + div { border-left: 1px solid var(--hq-border); padding-left: 18px; }
.dashboard-activity-grid > div:first-child dd { font-size: 40px; color: var(--hq-accent); }
.dashboard-activity-grid > div:first-child dt { color: var(--hq-text); font-weight: 700; }
.dashboard-metric-note { display: block; font-size: 11px; color: var(--hq-text-muted); }
.dashboard-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-totals dt .bi { display: block; font-size: 20px; margin-bottom: 10px; }
.dashboard-new-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: var(--hq-surface-alt);
    border-top: 1px solid var(--hq-border);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.dashboard-new-member a { margin-left: 5px; }
.dashboard-economy-grid > div { background: var(--hq-surface-alt); border-radius: 9px; padding: 16px; }
.dashboard-metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; flex-shrink: 0; }
.dashboard-economy-grid .dashboard-metric-icon { margin-bottom: 14px; }
.dashboard-accent-violet { background: rgba(142, 106, 205, .13); color: var(--hq-violet); }
.dashboard-accent-amber { background: rgba(194, 138, 40, .13); color: var(--hq-warning); }
.dashboard-accent-teal { background: rgba(44, 153, 140, .13); color: var(--hq-success); }
.dashboard-highlight { display: flex; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--hq-border); align-items: center; }
.dashboard-highlight > div { min-width: 0; }
.dashboard-highlight a { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; margin-bottom: 4px; }
.dashboard-highlight-label { font-size: 10px; margin-bottom: 4px; }
.admin-dashboard a:focus-visible { outline: 2px solid #408baf; outline-offset: 3px; border-radius: 3px; }
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 4px 24px 24px;
}
.dashboard-metrics-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-metrics-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-metric {
    position: relative;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--hq-border);
    border-radius: 9px;
    background: var(--hq-surface-alt);
}
.dashboard-metric .dashboard-metric-icon { margin-bottom: 14px; }
.admin-dashboard .dashboard-metric dd { margin-bottom: 0; }
.admin-dashboard .dashboard-metric .dashboard-metric-text { font-size: 22px; }
.dashboard-metric .dashboard-metric-note { margin-top: 6px; overflow-wrap: anywhere; }
.dashboard-metric dt a { color: var(--hq-text); }
.dashboard-metric dt a::after { position: absolute; inset: 0; content: ''; border-radius: 9px; }
.dashboard-metric-linked:hover, .dashboard-metric-linked:focus-within { border-color: #408baf; }
.admin-dashboard .dashboard-metric dt a:focus-visible { outline: none; }
.dashboard-metric dt a:focus-visible::after { outline: 2px solid #408baf; outline-offset: 2px; }
.dashboard-accent-red { background: rgba(211, 93, 93, .13); color: var(--hq-danger); }
.admin-dashboard .dashboard-section-heading-standalone { padding: 4px 0 14px; }
.admin-dashboard .dashboard-panel.h-100 { margin-bottom: 0; }
.admin-dashboard .dashboard-panel h5 { font-size: 15px; color: var(--hq-text); }
.admin-dashboard .dashboard-chart { position: relative; height: 370px; padding: 20px; }
.admin-dashboard .dashboard-panel .admin-table { color: var(--hq-text); }
.admin-dashboard .dashboard-panel .admin-table td { overflow-wrap: anywhere; }
.admin-dashboard .dashboard-panel .table-responsive { margin-bottom: 0; }
.dashboard-date { color: var(--hq-text-muted); font-size: 12px; margin: -6px 0 20px; }
.dashboard-date .bi { margin-right: 5px; }
.dashboard-portfolio-card .card-body { padding: 20px; }
.dashboard-portfolio-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-dashboard .dashboard-portfolio-card-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--hq-text); }
.dashboard-portfolio-stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.dashboard-portfolio-stat-row + .dashboard-portfolio-stat-row { border-top: 1px solid var(--hq-border); }
.dashboard-portfolio-stat-label { color: var(--hq-text-muted); font-size: 12px; }
.dashboard-portfolio-stat-value { font-size: 14px; font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; font-variant-numeric: tabular-nums; }
.dashboard-portfolio-stat-value small { font-size: 11px; font-weight: 400; color: var(--hq-text-muted); }
.dashboard-portfolio-stat-truncate { max-width: 60%; }
.dashboard-portfolio-progress-wrap { padding: 0 0 12px; }
.dashboard-portfolio-progress { height: 5px; border-radius: 5px; background: var(--hq-surface-alt); }
.dashboard-account-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 24px; }
.dashboard-account-row + .dashboard-account-row { border-top: 1px solid var(--hq-border); }
.dashboard-account-row > :last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.admin-dashboard .dashboard-media-library { overflow: visible; }
.dashboard-media-table { table-layout: fixed; }
.dashboard-media-table th:first-child { width: 40%; }
.dashboard-media-table td { vertical-align: middle; }
@media (max-width: 575.98px) {
    .dashboard-account-row { padding: 16px; gap: 8px; flex-direction: column; }
    .dashboard-account-row > :last-child { text-align: left; }
    .dashboard-portfolio-card .card-body { padding: 16px; }
    #maincontainer .dashboard-media-table th, #maincontainer .dashboard-media-table td { padding: 10px 6px; font-size: 11px; }
    .dashboard-media-table .btn { padding: 4px 6px; }
    .dashboard-metrics-grid { padding: 0 16px 18px; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-metrics-grid-3 > :last-child { grid-column: 1 / -1; }
    .dashboard-metric { padding: 12px; }
    .admin-dashboard .dashboard-metric dd { font-size: 24px; }
    .admin-dashboard .dashboard-metric .dashboard-metric-text { font-size: 20px; }
    .admin-dashboard .dashboard-chart { height: 280px; padding: 12px; }
    .dashboard-section-heading { padding: 18px 16px; }
    .dashboard-activity-grid, .dashboard-totals, .dashboard-economy-grid { padding: 0 16px 18px; gap: 12px; }
    .dashboard-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    .dashboard-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-activity-grid > div:first-child { grid-column: 1 / -1; }
    .dashboard-activity-grid > div:nth-child(2) { border-left: 0; padding-left: 0; }
    .dashboard-economy-grid { grid-template-columns: 1fr; }
    .dashboard-economy-grid > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
    .dashboard-economy-grid .dashboard-metric-icon { grid-row: span 2; margin: 0; align-self: center; }
    .dashboard-economy-grid dd { font-size: 24px; margin-top: 4px; }
    .dashboard-new-member, .dashboard-highlight { padding: 16px; }
}

/* User control panel: shared settings surfaces and navigation. */
:is(.usercp-page, .panel-page, .panel-dialog) { color: var(--hq-text); }
:is(.usercp-page, .panel-page, .panel-dialog) > .col-lg-8 { min-width: 0; }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel { box-shadow: none; }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel:not(.timeline-card) { overflow: visible; }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel > .card-body { border-radius: inherit; }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel > .card-body.p-4 { padding: 24px !important; }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel.border-info,
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel.border-warning,
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel.border-danger { border: 1px solid var(--hq-border) !important; border-left-width: 3px !important; }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel.border-info { border-left-color: #408baf !important; background: linear-gradient(120deg, rgba(64,139,175,.06), transparent), var(--hq-surface); }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel.border-warning { border-left-color: #b17c21 !important; }
:is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel.border-danger { border-left-color: #cc6565 !important; }
:is(.usercp-section-heading, .panel-section-heading) { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
:is(.usercp-page, .panel-page, .panel-dialog) :is(.usercp-section-heading, .panel-section-heading) h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; line-height: 1.4; font-weight: 700; margin: 0; color: var(--hq-text); }
:is(.usercp-section-heading, .panel-section-heading) h2 .bi { color: var(--hq-text-muted); font-size: 16px; }
:is(.usercp-page, .panel-page, .panel-dialog) :is(.usercp-help, .panel-help) { color: var(--hq-text-muted); line-height: 1.6; }
:is(.usercp-page, .panel-page, .panel-dialog) :is(.usercp-help, .panel-help) strong { color: var(--hq-text); }
:is(.usercp-page, .panel-page, .panel-dialog) label.small { text-transform: none !important; font-size: 12px; letter-spacing: 0; color: var(--hq-text) !important; margin-bottom: 8px; }
:is(.usercp-page, .panel-page, .panel-dialog) .form-group { margin-bottom: 20px; }
:is(.usercp-page, .panel-page, .panel-dialog) .form-control { border: 1px solid var(--hq-border); background: var(--hq-surface-alt); color: var(--hq-text); border-radius: 8px; min-height: 42px; font-size: 13px; box-shadow: none; }
:is(.usercp-page, .panel-page, .panel-dialog) .form-control::placeholder { color: var(--hq-text-muted); opacity: 1; }
:is(.usercp-page, .panel-page, .panel-dialog) .form-control:focus { background: var(--hq-surface); border-color: #408baf; box-shadow: 0 0 0 3px rgba(64,139,175,.15); }
:is(.usercp-page, .panel-page, .panel-dialog) .input-group-text { border-color: var(--hq-border); background: var(--hq-surface-alt); color: var(--hq-text-muted); font-size: 13px; }
:is(.usercp-page, .panel-page, .panel-dialog) .input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
:is(.usercp-page, .panel-page, .panel-dialog) .btn { border-radius: 8px; font-size: 13px; font-weight: 600; }
:is(.usercp-page, .panel-page, .panel-dialog) > .col-lg-8 > .btn-block { width: auto; min-width: 180px; display: inline-block; padding-left: 24px; padding-right: 24px; margin-bottom: 20px; }
:is(.usercp-page, .panel-page, .panel-dialog) .btn-primary { background: #357b9d; border-color: #357b9d; }
:is(.usercp-page, .panel-page, .panel-dialog) .btn-primary:hover { background: #2b6785; border-color: #2b6785; }
:is(.usercp-page, .panel-page, .panel-dialog) hr, :is(.usercp-page, .panel-page, .panel-dialog) .border-bottom { border-color: var(--hq-border) !important; }
:is(.usercp-page, .panel-page, .panel-dialog) .card h6 { color: var(--hq-text); }
:is(.usercp-page, .panel-page, .panel-dialog) .avatar-upload-area,
:is(.usercp-page, .panel-page, .panel-dialog) .header-upload-area { background: var(--hq-surface-alt); border-color: var(--hq-border); border-radius: 10px; }
:is(.usercp-page, .panel-page, .panel-dialog) .avatar-upload-area:focus-within,
:is(.usercp-page, .panel-page, .panel-dialog) .header-upload-area:focus-within { outline: 2px solid #408baf; outline-offset: 3px; }
:is(.usercp-page, .panel-page, .panel-dialog) .avatar-preview-wrap { border-color: var(--hq-border); }
:is(.usercp-page, .panel-page, .panel-dialog) .header-preview-current { border-radius: 12px 12px 0 0; }
:is(.usercp-page, .panel-page, .panel-dialog) .badge-item { background: var(--hq-surface-alt); border-color: var(--hq-border); border-radius: 10px; }
:is(.usercp-page, .panel-page, .panel-dialog) .badge-item.badge-selected { border-color: #408baf; background: rgba(64,139,175,.1); }
:is(.usercp-page, .panel-page, .panel-dialog) .habbo-card.habbo-selected { border-color: #408baf !important; background: rgba(64,139,175,.08); }
:is(.usercp-page, .panel-page, .panel-dialog) .notif-icon, :is(.usercp-page, .panel-page, .panel-dialog) .token-icon-wrap, :is(.usercp-page, .panel-page, .panel-dialog) .sub-icon { flex-shrink: 0; }
:is(.usercp-page, .panel-page, .panel-dialog) .notif-row > .flex-grow-1, :is(.usercp-page, .panel-page, .panel-dialog) .token-row > .flex-grow-1,
:is(.usercp-page, .panel-page, .panel-dialog) .sub-row > .flex-grow-1, :is(.usercp-page, .panel-page, .panel-dialog) .ub-row > .flex-grow-1 { min-width: 0; overflow-wrap: anywhere; }
:is(.usercp-page, .panel-page, .panel-dialog) .token-row, :is(.usercp-page, .panel-page, .panel-dialog) .sub-row, :is(.usercp-page, .panel-page, .panel-dialog) .ub-row,
:is(.usercp-page, .panel-page, .panel-dialog) .hp-option-row { gap: 4px; }
:is(.usercp-page, .panel-page, .panel-dialog) .ub-row .userbar { max-width: 100%; }
:is(.usercp-page, .panel-page, .panel-dialog) .tickets-section-header { border-color: var(--hq-border); padding: 20px 24px; }
:is(.usercp-page, .panel-page, .panel-dialog) .tickets-section-title { font-size: 15px; }
:is(.usercp-page, .panel-page, .panel-dialog) .tickets-section-title .count-badge { background: var(--hq-surface-alt); color: var(--hq-text-muted); }
#maincontainer :is(.usercp-page, .panel-page, .panel-dialog) .tickets-table th { opacity: 1; }
:is(.usercp-page, .panel-page, .panel-dialog) .tickets-empty { opacity: 1; color: var(--hq-text-muted); }
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-meta-grid { background: var(--hq-surface-alt); border-radius: 10px; padding: 18px; }
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-meta-item { min-width: 0; overflow-wrap: anywhere; }
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-message-block { background: var(--hq-surface-alt); color: var(--hq-text); }
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-timestamps, :is(.usercp-page, .panel-page, .panel-dialog) .reply-header { border-color: var(--hq-border); }
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-timestamps, :is(.usercp-page, .panel-page, .panel-dialog) .reply-time,
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-section-label, :is(.usercp-page, .panel-page, .panel-dialog) .ticket-meta-item label { opacity: 1; color: var(--hq-text-muted); }
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-back-link { opacity: 1; color: var(--hq-text-muted); }
:is(.usercp-page, .panel-page, .panel-dialog) .ticket-reply-card:not(.system-event) { border-left: 3px solid #408baf; }
:is(.usercp-page, .panel-page, .panel-dialog) .reply-header { flex-wrap: wrap; gap: 8px; }
:is(.usercp-page, .panel-page, .panel-dialog) .reply-author { flex-wrap: wrap; overflow-wrap: anywhere; min-width: 0; }
:is(.usercp-page, .panel-page, .panel-dialog) .reply-body { overflow-wrap: anywhere; }
:is(.usercp-page, .panel-page, .panel-dialog) .reply-body img { max-width: 100%; height: auto; }
:is(.usercp-page, .panel-page, .panel-dialog) .tfa-qr-img img, :is(.usercp-page, .panel-page, .panel-dialog) .tfa-qr-img svg { max-width: 100%; height: auto; }
:is(.usercp-page, .panel-page, .panel-dialog) :is(button, a, input, select, textarea):focus-visible { outline: 2px solid #408baf; outline-offset: 3px; }

.usercp-menu { position: sticky; top: 74px; border: 1px solid var(--hq-border); border-radius: 12px; background: var(--hq-surface); color: var(--hq-text); margin-bottom: 20px; }
.usercp-menu [hidden] { display: none !important; }
.usercp-menu-intro { display: flex; align-items: center; gap: 12px; padding: 22px 20px 16px; }
.usercp-menu-intro h2 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--hq-text); }
.usercp-menu-intro p { font-size: 12px; margin: 0; color: var(--hq-text-muted); }
.usercp-menu-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 16px; padding: 0 12px; border: 1px solid var(--hq-border); border-radius: 8px; background: var(--hq-surface-alt); }
.usercp-menu-search > .bi { font-size: 13px; color: var(--hq-text-muted); }
.usercp-menu-search .form-control { border: 0; background: transparent; padding: 10px 0; font-size: 12px; min-width: 0; color: var(--hq-text); box-shadow: none; height: 40px; }
.usercp-menu-search .form-control:focus { background: transparent; box-shadow: none; }
.usercp-menu-search:focus-within { border-color: #408baf; box-shadow: 0 0 0 3px rgba(64,139,175,.12); }
.usercp-menu-search button { border: 0; padding: 4px; background: transparent; color: var(--hq-text-muted); cursor: pointer; }
.usercp-menu-section { padding: 8px; border-top: 1px solid var(--hq-border); }
.usercp-menu-section h3 { margin: 0; }
.usercp-menu-toggle { display: flex; align-items: center; gap: 9px; border: 0; width: 100%; background: transparent; color: var(--hq-text-muted); padding: 10px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; text-align: left; cursor: pointer; border-radius: 7px; }
.usercp-menu-toggle > .bi:first-child { font-size: 14px; }
.usercp-menu-toggle > .bi:last-child { margin-left: auto; font-size: 10px; }
.usercp-menu-toggle[aria-expanded="false"] > .bi:last-child { transform: rotate(-90deg); }
.usercp-menu-toggle:hover { color: var(--hq-text); background: var(--hq-surface-alt); }
.usercp-menu-link { display: flex; align-items: center; gap: 10px; color: var(--hq-text); padding: 9px 12px; border-radius: 7px; font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.usercp-menu-link > .bi:first-child { width: 18px; text-align: center; color: var(--hq-text-muted); flex-shrink: 0; font-size: 15px; }
.usercp-menu-link-arrow { margin-left: auto; font-size: 10px; opacity: 0; }
.usercp-menu-link:hover, .usercp-menu-link.is-active { color: var(--hq-text); background: var(--hq-surface-alt); text-decoration: none; }
.usercp-menu-link.is-active { color: var(--hq-accent); background: rgba(64,139,175,.12); font-weight: 700; box-shadow: inset 3px 0 #408baf; }
body.theme-dark .usercp-menu-link.is-active { color: var(--hq-accent); }
.usercp-menu-link.is-active > .bi:first-child { color: inherit; }
.usercp-menu-link:hover .usercp-menu-link-arrow, .usercp-menu-link.is-active .usercp-menu-link-arrow { opacity: 1; }
.usercp-menu-empty { font-size: 12px; color: var(--hq-text-muted); text-align: center; padding: 16px 20px 24px; margin: 0; }
.usercp-menu :is(a, button):focus-visible { outline: 2px solid #408baf; outline-offset: 2px; }
@media (max-width: 991.98px) {
    .usercp-menu { position: static; margin-top: 24px; }
}
@media (max-width: 575.98px) {
    :is(.usercp-page, .panel-page, .panel-dialog) .dashboard-panel > .card-body.p-4 { padding: 18px !important; }
    :is(.usercp-page, .panel-page, .panel-dialog) > .col-lg-8 > .btn-block { width: 100%; }
    :is(.usercp-page, .panel-page, .panel-dialog) .notif-row { flex-wrap: wrap; }
    :is(.usercp-page, .panel-page, .panel-dialog) .notif-row > .flex-grow-1 { flex-basis: calc(100% - 64px); }
    :is(.usercp-page, .panel-page, .panel-dialog) .notif-row > .flex-shrink-0 { margin-left: 54px !important; text-align: left !important; }
    :is(.usercp-page, .panel-page, .panel-dialog) .token-row, :is(.usercp-page, .panel-page, .panel-dialog) .sub-row, :is(.usercp-page, .panel-page, .panel-dialog) .ub-row { flex-wrap: wrap; row-gap: 12px; }
    :is(.usercp-page, .panel-page, .panel-dialog) .token-row > .flex-grow-1, :is(.usercp-page, .panel-page, .panel-dialog) .sub-row > .flex-grow-1, :is(.usercp-page, .panel-page, .panel-dialog) .ub-row > .flex-grow-1 { flex-basis: calc(100% - 70px); }
    :is(.usercp-page, .panel-page, .panel-dialog) .token-row > .text-right, :is(.usercp-page, .panel-page, .panel-dialog) .sub-row > .ml-3, :is(.usercp-page, .panel-page, .panel-dialog) .ub-row > .ml-3 { margin-left: 54px !important; text-align: left !important; }
    :is(.usercp-page, .panel-page, .panel-dialog) .hp-option-icon { display: none; }
    :is(.usercp-page, .panel-page, .panel-dialog) .ticket-meta-grid { padding: 14px; }
    :is(.usercp-page, .panel-page, .panel-dialog) .ticket-detail-card .card-body, :is(.usercp-page, .panel-page, .panel-dialog) .ticket-reply-form-card .card-body { padding: 18px; }
    :is(.usercp-page, .panel-page, .panel-dialog) .ticket-reply-card .card-body { padding: 14px; }
    :is(.usercp-page, .panel-page, .panel-dialog) .tickets-section-header { padding: 18px; }
    :is(.usercp-page, .panel-page, .panel-dialog) #avatar-new-preview > .d-flex { flex-wrap: wrap; gap: 12px; }
}

/* Admin, management and staff pages share the control panel design. */
.panel-page .card { background: var(--hq-surface); color: var(--hq-text); border-color: var(--hq-border); border-radius: 12px; box-shadow: none; }
.panel-page .panel-section-title { font-size: 15px; font-weight: 700; color: var(--hq-text); line-height: 1.4; margin: 0; }
.panel-page .panel-section-title > .bi { color: var(--hq-text-muted); }
.panel-page .dashboard-panel { margin-bottom: 20px; }
.panel-page .dashboard-panel.h-100 { margin-bottom: 0; }
.panel-page .card-header { background: var(--hq-surface-alt); color: var(--hq-text); border-color: var(--hq-border); padding: 16px 20px; font-size: 14px; font-weight: 700; }
.panel-page .card-header:first-child { border-radius: 12px 12px 0 0; }
.panel-page .card-footer { background: var(--hq-surface-alt); border-color: var(--hq-border); }
.panel-page .card-body { min-width: 0; }
.panel-page .card-body > h5 { font-size: 15px; font-weight: 700; }
.panel-page .text-heading { opacity: 1; color: var(--hq-text); font-size: 15px; letter-spacing: 0; }
.panel-page .contentTitle { background: transparent; border: 0; box-shadow: none; color: var(--hq-text); margin-bottom: 14px; border-radius: 0; }
.panel-page .contentTitle .Text { font-size: 15px; font-weight: 700; }
.panel-page .contentTitle .Icon { background: transparent; color: var(--hq-text-muted); }
.panel-page .new-dash-stat { background: var(--hq-surface); border: 1px solid var(--hq-border); border-top: 3px solid #408baf; border-radius: 12px; box-shadow: none; color: var(--hq-text); text-align: left; align-items: flex-start; justify-content: flex-start; min-height: 140px; padding: 18px; transition: none; }
.panel-page .new-dash-stat:hover { transform: none; box-shadow: none; }
.panel-page .new-dash-stat::after { display: none; }
.panel-page .new-dash-stat .stat-icon { display: inline-flex; align-items: center; justify-content: center; height: 34px; width: 34px; border-radius: 9px; color: var(--hq-accent); background: rgba(64,139,175,.12); opacity: 1; font-size: 17px; margin-bottom: 12px; }
.panel-page .new-dash-stat.stat-green, .panel-page .new-dash-stat.stat-teal { border-top-color: #30988b; }
.panel-page .new-dash-stat.stat-green .stat-icon, .panel-page .new-dash-stat.stat-teal .stat-icon { color: var(--hq-success); background: rgba(44,153,140,.12); }
.panel-page .new-dash-stat.stat-orange { border-top-color: #b17c21; }
.panel-page .new-dash-stat.stat-orange .stat-icon { color: var(--hq-warning); background: rgba(194,138,40,.12); }
.panel-page .new-dash-stat.stat-purple { border-top-color: #9571c9; }
.panel-page .new-dash-stat.stat-purple .stat-icon { color: var(--hq-violet); background: rgba(142,106,205,.12); }
.panel-page .new-dash-stat.stat-red { border-top-color: #cc6565; }
.panel-page .new-dash-stat.stat-red .stat-icon { color: var(--hq-danger); background: rgba(211,93,93,.12); }
.panel-page .new-dash-stat .stat-value { font-family: inherit; font-size: 28px; font-weight: 700; text-shadow: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 100%; }
.panel-page .new-dash-stat .stat-label { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--hq-text-muted); opacity: 1; font-weight: 500; }
.panel-page .admin-table { color: var(--hq-text); width: 100%; }
.panel-page .table { color: var(--hq-text); }
#maincontainer .panel-page .admin-table th { color: var(--hq-text-muted); background: var(--hq-surface-alt); border-color: var(--hq-border); }
#maincontainer .panel-page .admin-table td { border-color: var(--hq-border); }
.panel-page .table-hover tbody tr:hover { color: var(--hq-text); background: var(--hq-surface-alt); }
.panel-table-scroll { border-radius: inherit; }
.panel-table-scroll:focus-visible { outline: 2px solid #408baf; outline-offset: 2px; }
.panel-page .dropdown-menu { background: var(--hq-surface); border-color: var(--hq-border); border-radius: 9px; box-shadow: var(--hq-shadow); }
.panel-page .dropdown-item { color: var(--hq-text); font-size: 12px; }
.panel-page .dropdown-item:hover, .panel-page .dropdown-item:focus { color: var(--hq-text); background: var(--hq-surface-alt); }
.panel-page .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.panel-page .custom-control-label { color: var(--hq-text); }
.panel-page .wysibb { border-color: var(--hq-border); border-radius: 8px; }
.panel-page .nav-tabs { border-color: var(--hq-border); }
.panel-page .nav-tabs .nav-link { color: var(--hq-text-muted); border-radius: 8px 8px 0 0; }
.panel-page .nav-tabs .nav-link.active { color: var(--hq-text); background: var(--hq-surface); border-color: var(--hq-border) var(--hq-border) var(--hq-surface); }
.panel-dialog { background: var(--hq-surface); color: var(--hq-text); border: 1px solid var(--hq-border); border-radius: 12px; }
.panel-dialog .modal-header, .panel-dialog .modal-footer { border-color: var(--hq-border); }
.panel-dialog .modal-title { font-size: 16px; font-weight: 700; }
.panel-dialog .close { color: var(--hq-text-muted); text-shadow: none; opacity: 1; }
.panel-page .reply-body, .panel-page .message-block { overflow-wrap: anywhere; }
.panel-page .reply-body img { max-width: 100%; height: auto; }
.panel-page .pagination .page-link { background: var(--hq-surface); color: var(--hq-text); border-color: var(--hq-border); }
.panel-page .pagination .page-item.active .page-link { color: #fff; background: #357b9d; border-color: #357b9d; }
.panel-menu .admin-menu-search { box-shadow: none; }
.panel-menu .admin-menu-section { box-shadow: none; background: transparent; border: 0; border-top: 1px solid var(--hq-border); border-radius: 0; margin: 0; padding: 8px; }
.panel-menu .admin-menu-section-head { padding: 10px 12px; }
.panel-menu .admin-menu-section-count { display: none; }
.panel-menu .admin-menu-section-head > .bi:first-child { opacity: 1; }
.panel-menu .admin-menu-section-body { border: 0; padding-bottom: 0; }
.panel-menu .admin-menu-link { border: 0; padding: 9px 12px; }
.panel-menu .admin-menu-link:hover { padding-left: 12px; }
.panel-menu .admin-menu-link > .bi { opacity: 1; }
.panel-menu .admin-menu-link .usercp-menu-link-arrow { width: auto; font-size: 10px; opacity: 0; }
.panel-menu .admin-menu-link.new-nav-active { background: rgba(64,139,175,.12); color: var(--hq-accent); font-weight: 700; box-shadow: inset 3px 0 #408baf; }
body.theme-dark .panel-menu .admin-menu-link.new-nav-active { color: var(--hq-accent); }
.panel-menu .admin-menu-link.new-nav-active > .bi:first-child { color: inherit; }
.panel-menu .admin-menu-link:hover .usercp-menu-link-arrow, .panel-menu .admin-menu-link.new-nav-active .usercp-menu-link-arrow { opacity: 1; }
.panel-menu .admin-menu-empty { border: 0; background: transparent; box-shadow: none; }
.panel-menu .admin-menu-search-clear { font-size: 18px; }
@media (max-width: 575.98px) {
    .panel-page .new-dash-stat { padding: 12px; min-height: 120px; }
    .panel-page .new-dash-stat .stat-value { font-size: 24px; }
    .panel-page .new-dash-stat .stat-label { font-size: 11px; }
    .panel-page .card-body { padding: 16px; }
    .panel-page .card-header { padding: 14px 16px; }
    .panel-page .form-row > [class*="col-"] { margin-bottom: 12px; }
    .panel-page .pagination { flex-wrap: wrap; gap: 4px; }
}

/* Audit logs: readable summaries with full-width request details. */
.audit-log { color: var(--hq-text); }
.audit-log-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--hq-border); }
.admin-dashboard .audit-log-heading h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--hq-text); }
.audit-log-heading p { margin: 5px 0 0; font-size: 12px; color: var(--hq-text-muted); }
.audit-log-count { flex-shrink: 0; border-radius: 6px; padding: 5px 8px; background: var(--hq-surface-alt); color: var(--hq-text-muted); font-size: 11px; }
.audit-log-list { list-style: none; padding: 0; margin: 0; }
.audit-log-list > li + li { border-top: 1px solid var(--hq-border); }
.audit-log-summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 20px 24px; list-style: none; }
summary.audit-log-summary { cursor: pointer; }
/* The legacy #maincontainer details summary::before chevron would become an
   extra grid item and push the timestamp onto another row. */
#maincontainer summary.audit-log-summary::before { content: none; display: none; }
#maincontainer summary.audit-log-summary:hover { opacity: 1; }
summary.audit-log-summary::-webkit-details-marker { display: none; }
summary.audit-log-summary::marker { content: ''; }
summary.audit-log-summary:hover, .audit-log-entry[open] > .audit-log-summary { background: var(--hq-surface-alt); }
summary.audit-log-summary:focus-visible { outline: 2px solid #408baf; outline-offset: -3px; border-radius: 8px; }
.audit-log-icon { display: inline-flex; align-items: center; justify-content: center; height: 34px; width: 34px; background: rgba(64,139,175,.12); color: var(--hq-accent); border-radius: 9px; font-size: 16px; }
.audit-log-content { min-width: 0; }
.audit-log-action { display: block; font-size: 13px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.audit-log-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--hq-text-muted); }
.audit-log-actor { font-weight: 600; }
.audit-log-meta .bi { margin-right: 4px; }
.audit-log-ip { overflow-wrap: anywhere; min-width: 0; }
.audit-log-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 3px; }
.audit-log-aside time { font-size: 11px; color: var(--hq-text-muted); white-space: nowrap; }
.audit-log-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--hq-accent); }
body.theme-dark .audit-log-toggle { color: var(--hq-accent); }
.audit-log-entry[open] .audit-log-toggle .bi { transform: rotate(180deg); }
.audit-log-details { border-top: 1px solid var(--hq-border); background: var(--hq-surface-alt); padding: 0 24px 22px 72px; }
.admin-dashboard .audit-log-details h3 { margin: 0; padding: 16px 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--hq-text-muted); }
.audit-log-fields { border: 1px solid var(--hq-border); border-radius: 8px; overflow: hidden; background: var(--hq-surface); }
.audit-log-field { padding: 10px 14px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.audit-log-field + .audit-log-field { border-top: 1px solid var(--hq-border); }
.audit-log-field:empty { display: none; }
.audit-log-field strong { font-weight: 600; }
.audit-log-field a { font-size: inherit; }
.statistics-page .statistics-history { border-top: 1px solid var(--hq-border); }
.statistics-page .statistics-history th:not(:first-child),
.statistics-page .statistics-history td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.statistics-page .statistics-history th:first-child,
.statistics-page .statistics-history td:first-child { position: sticky; left: 0; background: var(--hq-surface); border-right: 1px solid var(--hq-border); z-index: 1; }
#maincontainer .statistics-page .statistics-history th:first-child { background: var(--hq-surface-alt); }
.statistics-page .statistics-history:focus-visible { outline: 2px solid #408baf; outline-offset: -2px; }
.statistics-page .dashboard-metrics-grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.statistics-page .dashboard-metrics-grid-5 > .dashboard-metric { grid-column: span 2; }
.statistics-page .dashboard-metrics-grid-5 > .dashboard-metric:nth-last-child(-n+2) { grid-column: span 3; }
@media (max-width: 575.98px) {
    .statistics-page .dashboard-metrics-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .statistics-page .dashboard-metrics-grid-5 > .dashboard-metric:nth-child(n) { grid-column: span 1; }
    .statistics-page .dashboard-metrics-grid-5 > .dashboard-metric:last-child { grid-column: 1 / -1; }
    .audit-log-heading { padding: 18px 16px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .audit-log-summary { padding: 18px 16px; gap: 10px; grid-template-columns: 28px minmax(0, 1fr); }
    .audit-log-icon { height: 28px; width: 28px; font-size: 14px; }
    .audit-log-aside { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; }
    .audit-log-details { padding: 0 16px 18px; }
    .audit-log-meta { gap: 5px 12px; }
}

/* Profile presentation. Scoped to avoid changing the shared home feed. */
#maincontainer .profile-page { margin: 0; color: var(--hq-text); --profile-cover-height: 220px; }
#maincontainer .profile-page .profile-masthead { display: block; background: var(--hq-surface); border: 1px solid var(--hq-border); border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
#maincontainer .profile-page .rp-hero { height: auto; overflow: visible; border-radius: 0; }
#maincontainer .profile-page .rp-cover { position: relative; height: var(--profile-cover-height); background-color: var(--hq-surface-alt); }
#maincontainer .profile-page .rp-hero-overlay { height: var(--profile-cover-height); background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.18)); pointer-events: none; }
#maincontainer .profile-page .rp-hero-content { position: relative; inset: auto; padding: 0 28px 24px; margin-top: -46px; align-items: flex-start; gap: 20px; }
#maincontainer .profile-page .rp-avatar { width: 112px; height: 112px; border: 6px solid var(--hq-surface); box-shadow: 0 3px 12px rgba(0,0,0,.12); background-color: var(--hq-surface-alt); }
#maincontainer .profile-page .rp-identity { margin: 0; padding: 58px 0 0; min-width: 0; }
#maincontainer .profile-page .profile-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--hq-text-muted); margin-bottom: 7px; }
#maincontainer .profile-page .rp-username { font-family: inherit; font-size: 28px; color: var(--hq-text); text-shadow: none; line-height: 1.3; margin: 0 0 8px; overflow-wrap: anywhere; }
#maincontainer .profile-page .profile-member-since { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--hq-text-muted); margin: 0 0 14px; }
#maincontainer .profile-page .profile-birthday { display: inline-flex; align-items: center; gap: 5px; background: rgba(194,138,40,.12); color: var(--hq-warning); border-radius: 5px; padding: 3px 7px; margin-left: 6px; }
#maincontainer .profile-page .profile-edit-link { align-self: flex-end; flex-shrink: 0; border-color: var(--hq-border); color: var(--hq-text); border-radius: 8px; font-size: 12px; padding: 9px 14px; }
#maincontainer .profile-page .rp-socials { gap: 7px; justify-content: flex-start; }
#maincontainer .profile-page .rp-social-link { width: 32px; height: 32px; border-radius: 8px; background: var(--hq-surface-alt); border: 1px solid var(--hq-border); color: var(--hq-text) !important; backdrop-filter: none; font-size: 14px; }
#maincontainer .profile-page .rp-social-link:hover { transform: none; background: rgba(64,139,175,.12); border-color: #408baf; box-shadow: none; }
#maincontainer .profile-page .rp-quickstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 0; box-shadow: none; border-top: 1px solid var(--hq-border); background: var(--hq-surface-alt); }
#maincontainer .profile-page .rp-quickstat { background: transparent; padding: 18px 10px; border-right: 1px solid var(--hq-border); }
#maincontainer .profile-page .rp-quickstat:last-child { border-right: 0; }
#maincontainer .profile-page .rp-quickstat-value { font-family: inherit; font-size: 23px; color: var(--hq-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#maincontainer .profile-page .rp-quickstat-label { opacity: 1; font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--hq-text-muted); margin-top: 5px; }
#maincontainer .profile-page .profile-columns { margin-top: 0; }
#maincontainer .profile-page .profile-messages, #maincontainer .profile-page .profile-sidebar { min-width: 0; }
#maincontainer .profile-page .rp-section-header { border: 0; text-transform: none; letter-spacing: 0; opacity: 1; color: var(--hq-text); font-size: 15px; line-height: 1.4; padding: 0; margin: 0 0 12px; }
#maincontainer .profile-page .rp-section-header > i { color: var(--hq-text-muted); margin-right: 7px; }
#maincontainer .profile-page .profile-feed-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
#maincontainer .profile-page .profile-feed-heading h2 { margin-bottom: 5px; }
#maincontainer .profile-page .profile-feed-heading p { margin: 0; color: var(--hq-text-muted); font-size: 12px; }
#maincontainer .profile-page .profile-count { padding: 5px 8px; border-radius: 6px; background: var(--hq-surface-alt); color: var(--hq-text-muted); font-size: 11px; white-space: nowrap; }
#maincontainer .profile-page .rp-card { background: var(--hq-surface); border: 1px solid var(--hq-border); border-radius: 12px; box-shadow: none; padding: 20px; margin-bottom: 24px; }
#maincontainer .profile-page .rp-card-compose { padding: 18px; }
#maincontainer .profile-page .profile-compose-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; }
#maincontainer .profile-page .profile-compose-footer > span { font-size: 12px; color: var(--hq-text-muted); }
#maincontainer .profile-page .profile-compose-footer .btn { margin: 0 !important; font-size: 12px; padding: 9px 16px; border-radius: 8px; background: #357b9d; border-color: #357b9d; }
#maincontainer .profile-page .wysibb { border: 1px solid var(--hq-border); border-radius: 8px; background: var(--hq-surface); box-shadow: none; }
#maincontainer .profile-page .wysibb .wysibb-toolbar { background: var(--hq-surface-alt); border-color: var(--hq-border); border-radius: 8px 8px 0 0; }
#maincontainer .profile-page .wysibb .wysibb-text { color: var(--hq-text); }
#maincontainer .profile-page .form-control { background: var(--hq-surface-alt); color: var(--hq-text); border: 1px solid var(--hq-border); border-radius: 8px; box-shadow: none; }
#maincontainer .profile-page .rp-card-messages { padding: 0; border: 0; background: transparent; }
#maincontainer .profile-page .commentHolder { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; width: 100%; margin-bottom: 22px !important; }
#maincontainer .profile-page .commentHolder > .avatarHolder { grid-column: 1; grid-row: 1 / span 2; width: auto; float: none; }
#maincontainer .profile-page .commentHolder > .avatarHolder .smallAvatar { width: 44px; height: 44px; border: 1px solid var(--hq-border); border-radius: 10px; box-shadow: none; }
#maincontainer .profile-page .commentHolder > .contentHolder,
#maincontainer .profile-page .commentHolder > .buttonsHolder { grid-column: 2; width: auto; margin-left: 0; min-width: 0; box-shadow: none; }
#maincontainer .profile-page .commentHolder > .contentHolder { background: var(--hq-surface); border: 1px solid var(--hq-border); color: var(--hq-text) !important; border-radius: 12px 12px 0 0; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
#maincontainer .profile-page .commentHolder > .contentHolder.rounded { border-radius: 12px !important; }
#maincontainer .profile-page .commentHolder > .contentHolder > .d-flex { gap: 8px; margin-bottom: 6px; }
#maincontainer .profile-page .commentHolder .contentHolder small { color: var(--hq-text-muted); font-size: 11px; opacity: 1; line-height: 1.6; }
#maincontainer .profile-page .commentHolder .contentHolder small:last-child { display: inline-flex; gap: 2px; }
#maincontainer .profile-page .commentHolder .commentButton { width: 30px; height: 30px; background: transparent; border: 0; border-radius: 7px; color: var(--hq-text-muted); }
#maincontainer .profile-page .commentHolder .commentButton i { color: inherit !important; font-size: 12px; }
#maincontainer .profile-page .commentHolder .commentButton:hover { background: var(--hq-surface-alt); color: var(--hq-text); }
#maincontainer .profile-page .commentHolder .buttonsHolder { color: var(--hq-text-muted); font-size: 11px; line-height: 1.7; height: auto; background: var(--hq-surface-alt); border: 1px solid var(--hq-border); border-top: 0; border-radius: 0 0 12px 12px; overflow-wrap: anywhere; }
#maincontainer .profile-page .commentHolder > .contentHolder.mt-2 { border-radius: 10px !important; background: var(--hq-surface-alt); border-left: 3px solid var(--hq-border); }
#maincontainer .profile-page .commentHolder .contentHolder .buttonsHolder { margin-left: 0; width: auto; border: 0; border-top: 1px solid var(--hq-border); border-radius: 0; background: transparent; }
#maincontainer .profile-page .commentHolder .contentHolder img { max-width: 100%; height: auto; }
#maincontainer .profile-page .commentHolder hr { border-color: var(--hq-border); }
#maincontainer .profile-page .profile-stat { width: auto; height: auto; padding: 0; margin: 0; background: transparent; color: var(--hq-text-muted) !important; border: 0; box-shadow: none; font-size: 11px; }
#maincontainer .profile-page .profile-empty { text-align: center; padding: 40px 20px; }
#maincontainer .profile-page .profile-empty > .bi { font-size: 28px; color: var(--hq-text-muted); }
#maincontainer .profile-page .profile-empty h3 { font-size: 15px; margin: 14px 0 7px; }
#maincontainer .profile-page .profile-empty p { font-size: 12px; color: var(--hq-text-muted); margin: 0; }
#maincontainer .profile-page .rp-card-about { padding: 4px 18px; }
#maincontainer .profile-page .rp-info-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; background: transparent; border: 0; border-radius: 0; padding: 14px 0; margin: 0; }
#maincontainer .profile-page .rp-info-row + .rp-info-row { border-top: 1px solid var(--hq-border); }
#maincontainer .profile-page .rp-info-row > i { width: auto; opacity: 1; color: var(--hq-text-muted); }
#maincontainer .profile-page .rp-info-label { font-size: 12px; padding: 0; margin: 0; color: var(--hq-text-muted); font-weight: 500; }
#maincontainer .profile-page .rp-info-value { font-size: 12px; color: var(--hq-text); opacity: 1; overflow-wrap: anywhere; }
#maincontainer .profile-page .profile-userbars { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#maincontainer .profile-page .profile-userbars .userbar { max-width: 100%; margin: 0; }
#maincontainer .profile-page .rp-card-accolades { padding: 6px 16px; }
#maincontainer .profile-page .rp-accolade-row { display: block; padding: 12px 0 12px 12px; border-radius: 0; background: transparent; border-left: 2px solid var(--hq-border); margin: 10px 0; }
#maincontainer .profile-page .rp-accolade-name { display: block; font-size: 12px; }
#maincontainer .profile-page .rp-accolade-date { display: block; margin: 4px 0 0; font-size: 11px; opacity: 1; color: var(--hq-text-muted); white-space: normal; }
#maincontainer .profile-page .rp-card-badges { display: grid; grid-template-columns: repeat(auto-fit, 44px); gap: 9px; justify-content: center; padding: 18px; }
#maincontainer .profile-page .rp-badge { width: 44px; height: 44px; border-radius: 9px; background: var(--hq-surface-alt); border-color: var(--hq-border); }
#maincontainer .profile-page .rp-badge img { image-rendering: pixelated; max-width: 36px; max-height: 36px; }
#maincontainer .profile-page .rp-badge:hover { transform: none; box-shadow: none; border-color: #408baf; }
#maincontainer .profile-page .rp-card-activity { padding: 4px 16px; }
#maincontainer .profile-page .rp-activity-item { padding: 14px 0; margin: 0; background: transparent; border-radius: 0; }
#maincontainer .profile-page .rp-activity-item + .rp-activity-item { border-top: 1px solid var(--hq-border); }
#maincontainer .profile-page .rp-activity-content a { white-space: normal; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#maincontainer .profile-page .rp-activity-content small { display: block; opacity: 1; color: var(--hq-text-muted); font-style: normal; margin-top: 4px; }
#maincontainer .profile-page .rp-activity-icon { color: var(--hq-accent); background: rgba(64,139,175,.12); }
#maincontainer .profile-page .rp-card-visitors { display: grid; grid-template-columns: repeat(auto-fit, minmax(55px, 1fr)); gap: 14px 8px; }
#maincontainer .profile-page .rp-visitor { width: auto; min-width: 0; color: var(--hq-text); text-decoration: none; }
#maincontainer .profile-page .rp-visitor-avatar { border-color: var(--hq-border); width: 44px; height: 44px; }
#maincontainer .profile-page .rp-visitor-name { opacity: 1; color: var(--hq-text-muted); font-size: 10px; margin-top: 6px; }
#maincontainer .profile-page :is(a, button, input, textarea):focus-visible { outline: 2px solid #408baf; outline-offset: 3px; }
#maincontainer .profile-page .profile-pagination { margin: 8px 0 24px; }
#maincontainer .profile-page .pagination { flex-wrap: wrap; gap: 4px; }
@media (max-width: 991.98px) {
    #maincontainer .profile-page { --profile-cover-height: 190px; }
    #maincontainer .profile-page .profile-sidebar { margin-top: 12px; }
}
@media (max-width: 575.98px) {
    #maincontainer .profile-page { --profile-cover-height: 150px; }
    #maincontainer .profile-page .rp-hero-content { padding: 0 18px 20px; margin-top: -32px; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; text-align: left; }
    #maincontainer .profile-page .rp-avatar { width: 80px; height: 80px; border-width: 4px; }
    #maincontainer .profile-page .rp-identity { padding-top: 44px; grid-column: 2; }
    #maincontainer .profile-page .rp-username { font-size: 23px; }
    #maincontainer .profile-page .profile-eyebrow { font-size: 9px; }
    #maincontainer .profile-page .profile-edit-link { grid-column: 1 / -1; justify-self: start; }
    #maincontainer .profile-page .rp-quickstats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #maincontainer .profile-page .rp-quickstat { grid-column: span 2; padding: 14px 6px; }
    #maincontainer .profile-page .rp-quickstat:nth-last-child(-n+2) { grid-column: span 3; border-top: 1px solid var(--hq-border); }
    #maincontainer .profile-page .rp-quickstat:nth-child(3) { border-right: 0; }
    #maincontainer .profile-page .rp-quickstat-value { font-size: 20px; }
    #maincontainer .profile-page .commentHolder { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; }
    #maincontainer .profile-page .commentHolder > .avatarHolder .smallAvatar { height: 30px; width: 30px; border-radius: 8px; }
    #maincontainer .profile-page .profile-compose-footer { flex-wrap: wrap; }
    #maincontainer .profile-page .profile-compose-footer .btn { width: 100%; }
    #maincontainer .profile-page .profile-feed-heading { gap: 8px; flex-wrap: wrap; }
    #maincontainer .profile-page .rp-card { padding: 16px; }
    #maincontainer .profile-page .rp-card-messages { padding: 0; }
}
/* Likes are replaced with fresh button markup by the existing AJAX handlers. */
#maincontainer .profile-page .commentHolder [id$="-likes-button"] button { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 7px; color: var(--hq-text-muted); }
#maincontainer .profile-page .commentHolder [id$="-likes-button"] button i { color: inherit !important; font-size: 12px; }
#maincontainer .profile-page .commentHolder [id$="-likes-button"] button:hover { background: var(--hq-surface-alt); color: var(--hq-text); }
#maincontainer .profile-page .commentHolder .profile-stat i { color: var(--hq-text-muted) !important; }

/* Shared home/profile feed entries; retain legacy hooks for AJAX actions. */
#maincontainer .home-feed-comment.feed-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; margin-bottom: 22px !important; }
#maincontainer .home-feed-comment.feed-entry > .avatarHolder { grid-column: 1; grid-row: 1 / span 2; float: none; width: auto; }
#maincontainer .home-feed-comment.feed-entry .avatarHolder .smallAvatar { width: 44px; height: 44px; border: 1px solid var(--hq-border); border-radius: 10px; box-shadow: none; }
#maincontainer .home-feed-comment.feed-entry > .contentHolder,
#maincontainer .home-feed-comment.feed-entry > .buttonsHolder { grid-column: 2; min-width: 0; width: auto; margin-left: 0; box-shadow: none; }
#maincontainer .home-feed-comment.feed-entry > .contentHolder { background: var(--hq-surface); color: var(--hq-text) !important; border: 1px solid var(--hq-border); border-radius: 12px 12px 0 0; min-height: 0; }
#maincontainer .home-feed-comment.feed-entry > .contentHolder.rounded { border-radius: 12px !important; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-author { min-width: 0; flex: 1; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-author > a { font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-time { display: inline-block; font-size: 11px; color: var(--hq-text-muted); line-height: 1.5; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-time::before { content: "\2022"; display: inline-block; margin: 0 6px; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; flex-shrink: 0; }
#maincontainer .home-feed-comment.feed-entry .commentButton,
#maincontainer .home-feed-comment.feed-entry [id$="-likes-button"] button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--hq-text-muted); padding: 0; cursor: pointer; }
#maincontainer .home-feed-comment.feed-entry .commentButton i,
#maincontainer .home-feed-comment.feed-entry [id$="-likes-button"] button i { color: inherit !important; font-size: 13px; }
#maincontainer .home-feed-comment.feed-entry .commentButton:hover,
#maincontainer .home-feed-comment.feed-entry [id$="-likes-button"] button:hover { background: var(--hq-surface-alt); color: var(--hq-text); }
#maincontainer .home-feed-comment.feed-entry .feed-entry-delete:hover { background: rgba(211,93,93,.12); color: var(--hq-danger); }
#maincontainer .home-feed-comment.feed-entry .feed-entry-body { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-body > :last-child { margin-bottom: 0; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-body img { max-width: 100%; height: auto; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-body pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reactions { background: var(--hq-surface-alt); border: 1px solid var(--hq-border); border-top: 0; border-radius: 0 0 12px 12px; color: var(--hq-text-muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; height: auto; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reactions .profile-stat { width: auto; height: auto; background: transparent; border: 0; padding: 0; margin: 0; color: var(--hq-text-muted) !important; font-size: inherit; }
#maincontainer .home-feed-comment.feed-entry > .feed-entry-replies,
#maincontainer .home-feed-comment.feed-entry > .feed-entry-editor { background: var(--hq-surface-alt); border-left: 3px solid var(--hq-border); border-radius: 10px !important; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reply-heading { margin: 0 0 10px; font-size: 11px; font-weight: 700; color: var(--hq-text-muted); }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reply { padding: 0 0 10px; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reply .feed-entry-header { margin-bottom: 6px; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reply + .feed-entry-reply { border-top: 1px solid var(--hq-border); padding-top: 10px; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reply:last-child { padding-bottom: 0; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reply-likes { margin-top: 4px; font-size: 11px; line-height: 1.6; color: var(--hq-text-muted); overflow-wrap: anywhere; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-reply-likes i { margin-right: 4px; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-editor > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 12px; color: var(--hq-text); }
#maincontainer .home-feed-comment.feed-entry .feed-entry-editor-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-editor .btn { border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 600; }
#maincontainer .home-feed-comment.feed-entry .feed-entry-editor .btn-primary { background: #357b9d; border-color: #357b9d; }
#maincontainer .home-feed-comment.feed-entry .form-control { background: var(--hq-surface); color: var(--hq-text); border: 1px solid var(--hq-border); border-radius: 8px; box-shadow: none; }
#maincontainer .home-feed-comment.feed-entry .wysibb { background: var(--hq-surface); border: 1px solid var(--hq-border); border-radius: 8px; box-shadow: none; }
#maincontainer .home-feed-comment.feed-entry .wysibb-toolbar { background: var(--hq-surface-alt); border-color: var(--hq-border); }
#maincontainer .home-feed-comment.feed-entry :is(a, button, textarea):focus-visible { outline: 2px solid #408baf; outline-offset: 3px; }
@media (max-width: 575.98px) {
    #maincontainer .home-feed-comment.feed-entry { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; }
    #maincontainer .home-feed-comment.feed-entry .avatarHolder .smallAvatar { width: 30px; height: 30px; border-radius: 8px; }
    #maincontainer .home-feed-comment.feed-entry .feed-entry-header { gap: 8px; }
    #maincontainer .home-feed-comment.feed-entry .feed-entry-actions { gap: 0; }
    #maincontainer .home-feed-comment.feed-entry .commentButton,
    #maincontainer .home-feed-comment.feed-entry [id$="-likes-button"] button { width: 30px; height: 32px; }
    #maincontainer .home-feed-comment.feed-entry .feed-entry-author { flex-basis: 100%; }
}

/* Homepage surfaces, editorial cards and community widgets. */
#maincontainer .home-refresh { color: var(--hq-text); }
#maincontainer .home-refresh .home-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; margin-bottom: 28px; border: 1px solid var(--hq-border); border-top: 3px solid #408baf; border-radius: 14px; background: linear-gradient(110deg, rgba(64,139,175,.08), transparent 70%), var(--hq-surface); }
#maincontainer .home-refresh .home-eyebrow { display: block; color: var(--hq-text-muted); text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .8px; margin-bottom: 8px; }
#maincontainer .home-refresh .home-welcome h1 { font-size: 25px; line-height: 1.4; font-weight: 700; color: var(--hq-text); margin: 0 0 7px; overflow-wrap: anywhere; }
#maincontainer .home-refresh .home-welcome p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--hq-text-muted); }
#maincontainer .home-refresh .home-welcome-actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; flex-wrap: wrap; }
#maincontainer .home-refresh .home-welcome-dismiss { background: rgba(0,0,0,.04); border: 1px solid var(--hq-border); color: var(--hq-text-muted); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 13px; padding: 0; transition: background .15s ease, color .15s ease, border-color .15s ease; }
#maincontainer .home-refresh .home-welcome-dismiss:hover { background: rgba(64,139,175,.12); border-color: #408baf; color: #357b9d; }
#maincontainer .home-refresh .home-welcome-dismiss:focus-visible { outline: 2px solid #408baf; outline-offset: 2px; }
#maincontainer .home-refresh .btn { border-radius: 8px; font-size: 12px; font-weight: 600; padding: 8px 12px; }
#maincontainer .home-refresh .btn-primary { background: #357b9d; border-color: #357b9d; box-shadow: none; }
#maincontainer .home-refresh .btn-primary:hover { background: #2b6785; border-color: #2b6785; }
#maincontainer .home-refresh .btn-outline-secondary { color: var(--hq-text); border-color: var(--hq-border); }
#maincontainer .home-refresh .home-section-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 16px; padding: 0; border: 0; }
#maincontainer .home-refresh .home-section-title { min-width: 0; }
#maincontainer .home-refresh .home-section-title h2 { font-size: 17px; line-height: 1.4; font-weight: 700; margin: 0 0 5px; color: var(--hq-text); }
#maincontainer .home-refresh .home-section-title p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--hq-text-muted); opacity: 1; }
#maincontainer .home-refresh .home-section-btn { flex-shrink: 0; background: var(--hq-surface); border: 1px solid var(--hq-border); color: var(--hq-text); }
#maincontainer .home-refresh .home-section-btn:hover { border-color: #408baf; background: var(--hq-surface-alt); }
#maincontainer .home-refresh .home-card { width: 100%; background: var(--hq-surface); border: 1px solid var(--hq-border); border-radius: 12px; box-shadow: none; overflow: hidden; margin-bottom: 26px; }
#maincontainer .home-refresh .home-media-row { margin-bottom: 8px; }
#maincontainer .home-refresh .home-media-row > .d-flex { margin-bottom: 18px !important; }
#maincontainer .home-refresh .home-media-row .home-card { margin-bottom: 0; }
#maincontainer .home-refresh .home-media-card { display: flex; flex-direction: column; width: 100%; height: 100%; color: var(--hq-text); text-decoration: none; }
#maincontainer .home-refresh .home-media-image-link { display: block; position: relative; flex-shrink: 0; }
#maincontainer .home-refresh .home-media-thumb { height: 142px; border-radius: 0; background-color: var(--hq-surface-alt); background-size: cover; background-position: center; }
#maincontainer .home-refresh .home-media-body { flex: 1; display: flex; flex-direction: column; padding: 16px; background: var(--hq-surface); color: var(--hq-text); }
#maincontainer .home-refresh .home-media-title { font-size: 14px; line-height: 1.6; margin: 0 0 14px; font-weight: 700; color: var(--hq-text); white-space: normal; overflow-wrap: anywhere; }
#maincontainer .home-refresh .home-media-title a { color: inherit; text-decoration: none; }
#maincontainer .home-refresh .home-media-title a:hover { color: var(--hq-accent); }
#maincontainer .home-refresh .home-media-meta { margin-top: auto; display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--hq-text-muted); }
#maincontainer .home-refresh .home-media-meta-line { margin: 0; font-size: 11px; color: var(--hq-text-muted); line-height: 1.5; }
#maincontainer .home-refresh .home-media-author { font-size: 11px; }
#maincontainer .home-refresh .home-media-meta-stats { display: flex; gap: 14px; padding-top: 9px; margin-top: 5px; border-top: 1px solid var(--hq-border); }
#maincontainer .home-refresh .home-media-badge { border: 1px solid var(--hq-border); background: var(--hq-surface); color: var(--hq-text); border-radius: 8px; box-shadow: none; }
#maincontainer .home-refresh .home-badges-grid { display: grid; grid-template-columns: repeat(auto-fit, 48px); justify-content: center; gap: 10px; }
#maincontainer .home-refresh .home-badge-item { height: 48px; width: 48px; border: 1px solid var(--hq-border); background: var(--hq-surface-alt); border-radius: 9px; }
#maincontainer .home-refresh .home-badge-item:not(.faded):hover { transform: none; border-color: #408baf; background: rgba(64,139,175,.1); }
#maincontainer .home-refresh .home-badge-item img { image-rendering: pixelated; max-height: 40px; max-width: 40px; }
#maincontainer .home-refresh .home-community-card { background: transparent; border: 0; overflow: visible; }
#maincontainer .home-refresh .home-feed-composer { padding: 18px; border: 1px solid var(--hq-border); border-radius: 12px; margin-bottom: 22px; background: var(--hq-surface); }
#maincontainer .home-refresh .home-feed-submit { width: auto; display: block; margin: 14px 0 0 auto; }
#maincontainer .home-refresh .home-feed-list { padding: 0 !important; }
#maincontainer .home-refresh .home-feed-login-prompt { background: var(--hq-surface); border: 1px solid var(--hq-border); border-radius: 12px; color: var(--hq-text-muted); margin-bottom: 18px; }
#maincontainer .home-refresh .home-empty-state { padding: 26px 20px; font-size: 12px; color: var(--hq-text-muted); line-height: 1.7; }
#maincontainer .home-refresh .home-empty-state > .bi { display: block; font-size: 24px; margin-bottom: 10px; }
#maincontainer .home-refresh .home-sidebar .home-section-title h2 { font-size: 15px; }
#maincontainer .home-refresh .home-sidebar .list-group-item { background: transparent; color: var(--hq-text); border-color: var(--hq-border); padding: 15px 18px; }
#maincontainer .home-refresh .home-spotlight-item { padding: 18px; gap: 12px; border-color: var(--hq-border); }
#maincontainer .home-refresh .home-spotlight-item:hover { background: var(--hq-surface-alt); }
#maincontainer .home-refresh .home-spotlight-avatar { width: 46px; height: 46px; min-width: 46px; border-radius: 10px; border: 1px solid var(--hq-border); }
#maincontainer .home-refresh .home-spotlight-content strong { color: var(--hq-text); font-size: 13px; }
#maincontainer .home-refresh .home-spotlight-label { display: block; font-size: 10px; text-transform: none; letter-spacing: 0; color: var(--hq-text-muted); margin-top: 4px; }
#maincontainer .home-refresh .home-spotlight-reason { color: var(--hq-text-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#maincontainer .home-refresh .home-event-info { min-width: 0; }
#maincontainer .home-refresh .home-event-name { display: block; font-size: 12px; font-weight: 600; color: var(--hq-text); line-height: 1.6; }
#maincontainer .home-refresh .home-event-info small { display: block; color: var(--hq-text-muted); font-size: 11px; opacity: 1; line-height: 1.6; margin-top: 4px; }
#maincontainer .home-refresh .home-forum-title { display: block; white-space: normal; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#maincontainer .home-refresh .home-forum-content small, #maincontainer .home-refresh .home-activity-time { font-size: 11px; color: var(--hq-text-muted); opacity: 1; }
#maincontainer .home-refresh .home-activity-item { font-size: 12px; line-height: 1.7; }
#maincontainer .home-refresh .home-activity-item > div { min-width: 0; overflow-wrap: anywhere; }
#maincontainer .home-refresh .home-activity-icon { color: var(--hq-accent); background: rgba(64,139,175,.1); }
#maincontainer .home-refresh .home-online-text { font-size: 12px; line-height: 2; }
#maincontainer .home-refresh .home-online-count { color: var(--hq-text); font-weight: 700; }
#maincontainer .home-refresh .home-featured-carousel { border: 1px solid var(--hq-border); border-radius: 12px; overflow: hidden; margin-bottom: 26px; }
#maincontainer .home-refresh .home-featured-slide { border-radius: 0; margin: 0; }
#maincontainer .home-refresh .home-feed-composer .wysibb { border: 1px solid var(--hq-border); border-radius: 8px; background: var(--hq-surface); box-shadow: none; }
#maincontainer .home-refresh .home-feed-composer .wysibb-toolbar { background: var(--hq-surface-alt); border-color: var(--hq-border); }
#maincontainer .home-refresh .home-feed-composer .wysibb-text { color: var(--hq-text); }
#maincontainer .home-refresh .home-feed-composer .form-control { background: var(--hq-surface-alt); color: var(--hq-text); border: 1px solid var(--hq-border); box-shadow: none; }
#maincontainer .home-refresh :is(a, button, input, textarea):focus-visible { outline: 2px solid #408baf; outline-offset: 3px; }
@media (max-width: 991.98px) {
    #maincontainer .home-refresh .home-welcome { flex-direction: column; align-items: flex-start; gap: 16px; }
    #maincontainer .home-refresh .home-sidebar { margin-top: 12px; }
}
@media (max-width: 575.98px) {
    #maincontainer .home-refresh .home-welcome { padding: 20px; margin-bottom: 24px; }
    #maincontainer .home-refresh .home-welcome h1 { font-size: 21px; }
    #maincontainer .home-refresh .home-section-title h2 { font-size: 16px; }
    #maincontainer .home-refresh .home-media-thumb { height: 180px; }
    #maincontainer .home-refresh .home-section-header { align-items: flex-start; }
    #maincontainer .home-refresh .home-feed-submit { width: 100%; }
}
