/*
 *  [ HTML & BODY ]
 */

html,
body {
    background: #f3f6fa;
}

body.pushable>.pusher {
    background: #f3f6fa;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#wrapper {
    margin-bottom: 1rem;
}

/*
   *  [ NAVIGATION BAR ]
   */

.ui.secondary.menu {
    background: #fff;
    padding: 10px;
    margin: 0;
}

.ui.secondary.menu .toc.item {
    display: none;
}

.ui.secondary.menu .toc.item i {
    margin: 0;
}

#navbar .item i {
    margin-right: 5px;
}

.ui.secondary.menu .ui.medium.label {
    padding: .68em 1em .5em .5em;
}

.ui.secondary.menu .ui.medium.label img {
    font-size: 1.09rem;
    margin: -.6em .5em -.6em -.5em;
}

.ui.secondary.inverted.menu .popup .list a.item {
    color: rgba(0, 0, 0, .87) !important;
}

@media only screen and (max-width: 768px) {

    .ui.secondary.menu .menu,
    .ui.secondary.menu .item {
        display: none;
    }

    .ui.secondary.menu .toc.item {
        display: block;
    }
}

.ui.secondary.menu .ui.popup {
    min-width: 200px;
}

.ui.secondary.menu .ui.popup a:not([href]) {
    cursor: default !important;
}

.ui.vertical.inverted.sidebar.menu.left .item .header span.icon {
    float: right;
}

/*
   *  [ HEADER ]
   */

.ui.masthead {
  /* Replaces the gradient with solid black */
  background: #000000; 

  /* Removes the huge top/bottom padding to make it slim */
  padding: 1rem 0; 

  /* Ensures it doesn't have a large minimum height */
  min-height: auto;

  /* Removes the space below the bar */
  margin-bottom: 0; 
  
  border-radius: 0;
  color: #fff;
}

.ui.masthead .connect-server {
    background: rgba(255, 255, 255, .2);
    width: fit-content;
    padding: 1rem 1.5rem;
    margin-left: auto;
    border-radius: .4rem;
    text-align: center;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .ui.masthead .ui.grid .ui.row .column>* {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

.ui.masthead .connect-server .ui.header {
    margin: 0;
    color: #fff;
}

/*
   *  -[ SEGMENT ]-
   */

.ui.segment {
    background: #fff;
    border-radius: .28571429rem;
    border: none;
    -webkit-box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
    box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
}

.ui.segment .ui.list .list>.item .header,
.ui.segment .ui.list>.item .header {
    display: inline-block;
}

.ui.secondary.segment.segment.segment.segment.segment:not(.inverted) {
    border-top: none;
}

/*
   *  [ NEWS POST ]
   */

#news-post .badge,
#news-post .ui.label {
    position: absolute;
    margin: 0;
    padding: .75em 1em;
    width: auto;
    top: 0;
    right: 0;
    text-transform: uppercase;
    border-radius: 0 .21428571rem 0 .28571429rem;
}

/*
   *  [ FORUM NODE ]
   */

#forum-node #last-post {
    width: 250px;
}

#forum-node #last-post .avatar {
    margin: 2px 10px 0 0;
}

/*
   *  [ FORUM PAGE ]
   */

#sticky-threads tbody tr td:last-child:not(:first-child),
#normal-threads tbody tr td:last-child:not(:first-child) {
    text-align: right;
}

#sticky-threads tbody tr td:last-child .ui.image.header .image,
#normal-threads tbody tr td:last-child .ui.image.header .image {
    float: right;
    margin-left: 1rem;
    margin-top: .24rem;
}

#sticky-threads .badge,
#sticky-threads .ui.label,
#normal-threads .badge,
#normal-threads .ui.label {
    position: relative;
    top: -1.2px;
    padding: .3rem .5rem;
    font-size: .7rem;
    margin: 0;
    margin-bottom: .1rem;
    margin-right: .2rem;
}

/*
   *  [ TOPIC PAGE ]
   */

#topic-post #post-sidebar .ui.small.image,
#topic-reply #reply-sidebar .ui.small.image {
    width: 120px;
}

#topic-post #post-sidebar h3,
#topic-reply #reply-sidebar h3 {
    margin: 1rem 0;
}

@media (max-width: 768px) {

    #topic-post #post-sidebar .ui.list,
    #topic-reply #reply-sidebar .ui.list {
        display: none;
    }
}

#topic-post #post-meta [class*="res right floated"] {
    margin-top: -5px;
}

@media (max-width: 576px) {
    #topic-post #post-meta {
        text-align: center;
    }

    #topic-post #post-meta [class*="res right floated"] {
        margin-top: 0;
    }
}

@media only screen and (min-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-right: solid 1px rgba(0, 0, 0, .1);
        margin-top: -1.5rem;
        margin-bottom: -1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #topic-post #post-sidebar:before,
    #topic-reply #reply-sidebar:before {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid rgba(0, 0, 0, .2);
        position: absolute;
        top: 75px;
        right: 0;
    }

    #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid #fff;
        position: absolute;
        top: 75px;
        right: -1px;
    }
}

@media only screen and (max-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-bottom: solid 1px rgba(0, 0, 0, .1);
    }
}

.ui.comments {
    max-width: none;
}

.ui.grid.segment.leaderboard_table {
    margin-top: 0;
}

.leaderboard_table .ui.list {
    margin-left: -10px;
}

.leaderboard_table .ui.list li a {
    display: block;
    height: 100%;
    width: 100%;
}

.leaderboard_table .middle.aligned.content {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;;
    white-space: nowrap;
}

.leaderboard_table ol li:before {
    display: none;
}

#reactions {
    margin-top: 1rem;
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
    font-size: 12px;
}

#topic-post #post-content {
    display: flex;
    flex-direction: column;
}

#topic-post #post-content {
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
}

#post-content #reactions {
    margin-top: auto;
}

.reaction-button, .reaction-button-selected {
    margin-left: 5px;
    margin-right: 5px;
}

.reaction-button {
    opacity: 50%;
}

.reaction-button:hover, .reaction-button-selected {
    opacity: 100%;
    cursor: pointer;
}

#modal-reactions .ui.menu {
    overflow-x: auto;
}

/** Reaction modal tab buttons display non-native emojis as 2.5em wide by default */
.ui.menu .item > img:not(.ui) {
    width: 1em;
}

#topic-post #post-meta {
    margin-right: 1.3em;
}

#topic-post #post-sidebar .groups {
    text-align: center;
}

.inline.fields.labels {
    flex-wrap: wrap;
}

.ui.form .inline.fields.labels .field {
    padding-bottom: 1em;
}

.blockquote {
    border-left: 2px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
}

/*
   *  [ ACCOUNT MESSAGES ]
   */

#view-message #message .header {
    font-size: 1.15rem;
    margin-top: 0.01rem;
}

#view-message #message .meta {
    line-height: 0.95rem;
}

@media (max-width: 768px) {
    #messages table thead tr th:first-child {
        width: 100%;
    }

    #messages table thead tr th:not(:first-child),
    #messages table tbody tr td:not(:first-child) {
        display: none;
    }
}

/*
   *  -[ 404 ERROR ]-
   */

#error-403 .ui.container,
#error-404 .ui.container,
#maintenance .ui.container {
    position: relative;
    min-height: 100vh;
}

#error-403 .ui.segment,
#error-404 .ui.segment,
#maintenance .ui.segment {
    position: absolute;
    transform: translate(-50%, -70%);
    top: 50%;
    left: 50%;
    width: 500px;
    text-align: center;
}

/*
   *  [ PROFILE PAGE ]
   */

#profile-header {
    background: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#profile-header .ui.header {
    margin: 8px 0;
}

#profile-header .ui.label {
    margin: 0;
}

#profile-header .actions {
    position: absolute;
    right: 1rem;
}

#profile a.ui.circular.image.avatar img {
    max-height: 35px;
}

/* Fix avatar images in labels being a few px from touching the top */
.ui.image.label img {
    vertical-align: top !important;
}

/*
   *  [ FORUM SEARCH ]
   */

#forum-search-result h3.ui.header {
    margin-top: 0;
    margin-bottom: 1rem;
}

/*
   *  [ SERVER PAGE ]
   */

[id*="server"] #server-players a:not(:last-child) {
    margin-right: .3rem;
}

/*
   *  [ WIDGETS ]
   */

[id*="widget"] .item .content {
    width: calc(100% - 40px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .content * {
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description {
    width: calc(100% - 120px) !important;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description * {
    overflow: hidden;
}

#widget-online-users .content {
    padding-bottom: .5rem;
}

#widget-online-users .ui.image.label {
    margin-bottom: .5rem;
}

#widget-online-staff .ui.list .item {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content .badge {
    margin-left: .35rem;
}

.fb-page {
    padding-bottom: 14px;
}

/*
==============================================
== THEME V3.2: Professional Tiered Footer
==============================================
*/

.site-footer {
    background-color: #1a1c1f; /* A slightly darker, richer black */
    color: #8e9297;
    padding: 50px 0 0 0; /* More top padding, no bottom padding */
    margin-top: auto;
    border-top: 4px solid #57A3FF;
}

/* Tier 1: The main three-column grid */
.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 30px;
    padding-bottom: 40px;
    text-align: left;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column .footer-logo {
    max-height: 45px;
    margin-bottom: 15px;
}

.footer-column p {
    margin: 0;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #8e9297;
    transition: color 0.2s ease;
}
.footer-column ul li a:hover {
    color: #ffffff;
}

.footer-column .creator-credit strong {
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 600;
}

/* Tier 2: The bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #2e3135;
    font-size: 0.9em;
}

.copyright-text {
    margin: 0;
}

/* This styles the NamelessMC link to be less visible */
.nameless-credit {
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.nameless-credit:hover {
    opacity: 1;
}
.nameless-credit a {
    color: #8e9297;
    font-weight: bold;
}


/* Responsive adjustments for the footer on mobile */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr; /* Stack columns vertically */
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column; /* Stack bottom items */
        gap: 10px;
    }
}

/*
   *  -[ GRID ]-
   */

.ui.grid+.grid {
    margin-top: 0.3rem;
}

.ui.row+.row {
    padding-top: 0.3rem;
}

.ui.padded.grid:not(.vertically):not(.horizontally) {
    margin: 0 -1rem 0 -1rem !important;
}

@media only screen and (max-width: 768px) {
    .ui.padded.grid:not(.vertically):not(.horizontally) {
        margin: 0 !important;
    }
}

/*
   *  [ LINK LIST ]
   */

.ui.link.list.list .item a:not(.ui):hover,
.ui.link.list.list a.item:hover {
    background: none;
}

.ui.link.list.list .ui.divider {
    margin: 0.5rem 0;
}

/*
   *  [ USES POPUP ]
   */

#user-popup .header {
    text-align: center;
}

#user-popup .header .ui.header {
    padding: .5rem 0;
}

#user-popup .header .ui.image {
    margin: auto;
}

/*
   *  [ COOKIE NOTICE ]
   */

.cc-window.cc-floating {
    padding: 1rem 1.5rem;
    background-color: #fff !important;
    color: rgba(0, 0, 0, .68) !important;
    -webkit-box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    border: none;
    border-radius: .28571429rem;
    cursor: default;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 18px;
    opacity: 1;
    transition: .5s all ease;
}

.cc-window.cc-floating .cc-highlight .cc-btn:first-child {
    color: rgba(0, 0, 0, .68);
}

.cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    -webkit-box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    background-color: #2185d0;
    border-color: #fff;
    border-radius: 5px;
    color: #fff;
}

.cc-revoke.cc-bottom.cc-right {
    color: #fff;
}

/*
   *  [ SPOILER ]
   */

#tinymce .spoiler,
.spoiler {
    color: rgba(0, 0, 0, .87);
    border-radius: .28571429rem;
    -webkit-box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    border: none;
}

#tinymce .spoiler-toggle,
.spoiler-toggle {
    color: rgba(0, 0, 0, .87);
}

#tinymce .spoiler-text,
.spoiler-text {
    color: rgba(0, 0, 0, .87);
}

/*
   *  [ MESSAGE ]
   */

.ui.message>.close.icon {
    right: .8em;
}

/*
   *  [ UPDATE MESSAGE ]
   */

#update-message {
    margin-bottom: 1rem;
}

#update-message>a {
    color: inherit;
    transition: all .2s ease;
}

#update-message>a:hover {
    filter: contrast(2);
}

#update-message>a>.icon {
    margin-right: .5em;
}

#update-message>a>.icon:not(.close) {
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    line-height: 1;
    font-size: 3em;
    opacity: .8;
}

/*
   *  [ PAGINATION ]
   */

.ui.mini.pagination.menu .item:first-child,
.ui.mini.pagination.menu .item:last-child {
    padding-top: .5rem;
}

/*
   *  -[ ALIGNMENTS ]-
   */

[class*="left aligned"] {
    text-align: left;
}

[class*="center aligned"] {
    text-align: center;
}

[class*="right aligned"] {
    text-align: right;
}

/*
   *  [ FLOATS ]
   */

[class*="left floated"],
[class*="res left floated"] {
    float: left;
}

[class*="right floated"],
[class*="res right floated"] {
    float: right;
}

[class*="right floated"]+.ui.segment,
[class*="res right floated"]+.ui.segment {
    margin-top: 1rem;
}

@media only screen and (max-width: 576px) {

    [class*="res right floated"],
    [class*="res left floated"] {
        margin-top: 1rem;
        float: none;
    }

    [class*="res right floated"] .button:not(.mini),
    [class*="res left floated"] .button:not(.mini) {
        width: 100%;
        text-align: center;
    }

    [class*="res right floated"] .button:not(:first-child),
    [class*="res left floated"] .button:not(:first-child) {
        margin-top: 0.5rem;
    }
}

/*
   *  [ DISPLAY ]
   */

[display="block"] {
    display: block !important;
}

[display="inline"] {
    display: inline !important;
}

[display="inline block"] {
    display: inline-block !important;
}

/*
   *  [ VISIBILITY ]
   */

@media only screen and (max-width: 576px) {

    [class*="mobile hidden"],
    [class*="tablet only"]:not(.mobile),
    [class*="computer only"]:not(.mobile),
    [class*="large screen only"]:not(.mobile),
    [class*="widescreen only"]:not(.mobile),
    [class*="or lower hidden"] {
        display: none !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 768px) {

    [class*="mobile only"]:not(.tablet),
    [class*="tablet hidden"],
    [class*="computer only"]:not(.tablet),
    [class*="large screen only"]:not(.tablet),
    [class*="widescreen only"]:not(.tablet),
    [class*="or lower hidden"]:not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {

    [class*="mobile only"]:not(.computer),
    [class*="tablet only"]:not(.computer),
    [class*="computer hidden"],
    [class*="large screen only"]:not(.computer),
    [class*="widescreen only"]:not(.computer),
    [class*="or lower hidden"]:not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1280px) {

    [class*="mobile only"]:not([class*="large screen"]),
    [class*="tablet only"]:not([class*="large screen"]),
    [class*="computer only"]:not([class*="large screen"]),
    [class*="large screen hidden"],
    [class*="widescreen only"]:not([class*="large screen"]),
    [class*="or lower hidden"]:not(.computer):not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 1280px) {

    [class*="mobile only"]:not([class*="widescreen"]),
    [class*="tablet only"]:not([class*="widescreen"]),
    [class*="computer only"]:not([class*="widescreen"]),
    [class*="large screen only"]:not([class*="widescreen"]),
    [class*="widescreen hidden"],
    [class*="widescreen or lower hidden"] {
        display: none !important;
    }
}

/*
   *  [ USER BADGES ]
   */

.badge {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 .14285714em;
    background-color: #e8e8e8;
    background-image: none;
    padding: 0.3em .3em;
    color: rgba(0, 0, 0, .6);
    text-transform: none;
    font-size: .85714286rem;
    font-weight: 700;
    border: 0 solid transparent;
    border-radius: .28571429rem;
    -webkit-transition: background .1s ease;
    transition: background .1s ease;
}

a.badge:hover,
a.badge:focus {
    text-decoration: none;
}

.badge:empty {
    display: none;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

a.badge-primary:hover,
a.badge-primary:focus {
    color: #fff;
    background-color: #0062cc;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

a.badge-secondary:hover,
a.badge-secondary:focus {
    color: #fff;
    background-color: #545b62;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

a.badge-success:hover,
a.badge-success:focus {
    color: #fff;
    background-color: #1e7e34;
}

.badge-info {
    color: #fff;
    background-color: #17a2b8;
}

a.badge-info:hover,
a.badge-info:focus {
    color: #fff;
    background-color: #117a8b;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

a.badge-warning:hover,
a.badge-warning:focus {
    color: #212529;
    background-color: #d39e00;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

a.badge-danger:hover,
a.badge-danger:focus {
    color: #fff;
    background-color: #bd2130;
}

.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}

a.badge-light:hover,
a.badge-light:focus {
    color: #212529;
    background-color: #dae0e5;
}

.badge-dark {
    color: #fff;
    background-color: #343a40;
}

a.badge-dark:hover,
a.badge-dark:focus {
    color: #fff;
    background-color: #1d2124;
}

/*
   *  [ OTHER ]
   */

select {
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    padding: 10px !important;
}

.ui.popup {
    z-index: 99999;
    text-align: left;
}

.ui.popup .ui.header {
    margin: 0;
}

.ui.message {
    margin: 0.5em 0;
}

.tox-tinymce {
    min-height: 300px;
}

.forum_post {
    word-wrap: break-word;
}

.forum_post img {
    overflow: auto;
    max-width: 100%;
    height: auto;
}

#post-content .forum_post {
    margin-bottom: 1rem;
}

.ui.checkbox .box:before {
    margin-top: 4px;
}

.ui.checkbox input:checked~.box:after {
    margin-top: 4px;
}

.ui.header .topic.title .label,
.ui.header .topic.title .badge {
    margin-top: -4px;
    vertical-align: middle;
}

#ie-message {
    display: none;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    #ie-message {
        display: initial;
    }
}

#darkmode {
    display: inline-block;
}

.darkmode-toggle {
    opacity: 0;
    position: absolute;
}

.darkmode-toggle:checked+.darkmode-toggle-label .darkmode-ball {
    transform: translateX(24px);
}

.darkmode-toggle-label {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    height: 26px;
    width: 50px;
    cursor: pointer;
}

.darkmode-ball {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 22px;
    width: 22px;
    transition: transform 0.2s linear;
}

.fa-moon {
    color: #f1c400;
}

.fa-sun {
    color: #f39c00;
}

/*
 Member list search images
 */
.ui.search>.results .result .image {
    border-radius: 0;
}

/*
 Make new members grid avatars fit nicer
 */
#new-members-grid {
    padding: 0.5em;
}

#new-members-grid .column {
    padding: 0.5em;
}

/*
 *  [ EMOJI SIZING ]
 */

.joypixels,
.twemoji {
    height: 1em;
    width: 1em;
    vertical-align: middle;
}

/*
   *  [ DARK MODE ]
   */

body.dark,
body.dark>.pusher,
body.dark .ui.pointing.dropdown>.menu:after {
    background: #222;
}

body.dark .ui.secondary.menu:not(.inverted) {
    background: #303030;
    color: #fff;
}

body.dark .ui.secondary.menu .item.active {
    color: #fff;
}

body.dark .ui.top.attached.menu:not(.inverted) {
    background: #282828;
    border: 1px solid #282828;
}

body.dark .ui.top.attached.menu:not(.inverted) .item {
    color: #fff;
}

body.dark .ui.form input:not(.button) {
    background-color: #303030 !important;
}

body.dark .ui.modal {
    background-color: #303030;
    border: none;
}

body.dark .ui.modal>.content {
    background-color: #303030;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff;
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.modal>.actions,
body.dark .ui.modal>.header {
    color: rgba(255, 255, 255, 0.6);
    background-color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.popup,
body.dark .ui.secondary.menu .ui.popup,
body.dark .ui.menu .dropdown.item .menu,
body.dark .ui.dropdown .menu {
    background-color: #222;
    border: 1px solid #444;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.default.button,
body.dark .ui.mini.icon.button,
body.dark .ui.top.right.attached.label {
    background-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.button.red {
    background-color: #db2828;
    color: #fff;
}

body.dark .ui.image.label,
body.dark .ui.selection.dropdown,
body.dark .ui.selection.visible.dropdown>.text:not(.default) {
    background-color: #282828;
    color: #fff;
}

body.dark .ui.selection.dropdown .ui.label {
    background-color: #303030;
    color: #fff;
}

body.dark .ui.form .ui.selection.dropdown input:not(.button) {
    background-color: #282828 !important;
}

body.dark .ui.form .field .ui.selection.active.dropdown .menu {
    border: 1px solid #282828;
}

body.dark .ui.form .field .ui.dropdown .menu .item {
    background-color: #282828;
    border-top: 1px solid #303030;
    color: #fff;
}

body.dark .ui.form .ui.text input:not(.button) {
    background-color: #282828 !important;
}

body.dark .ui.form .field input {
    background-color: #282828 !important;
}

body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    background-color: #303030;
    border: 1px solid rgba(0, 0, 0, 0.125);
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.vertical.menu .active.item {
    background-color: #464646;
}

body.dark .ui.vertical.pointing.menu .active.item:after {
    background-color: #464646;
    border-top: 1px solid #464646;
    border-right: 1px solid #464646;
}

body.dark .ui.segment#profile-header {
    border: none;
}

body.dark .ui.attached.tabular.menu {
    border-bottom: none;
}

body.dark .ui.attached.tabular.menu .item.active {
    background-color: #303030;
    border-color: transparent;
}

body.dark .ui.card .content.header {
    background-color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.card>.content>.description,
body.dark .ui.cards>.card>.content>.description,
body.dark .ui.card>.content>.description .list .right.floated,
body.dark .ui.card>.content>.header a,
body.dark .ui.segment a,
body.dark .ui.checkbox label,
body.dark .ui.checkbox+label,
body.dark .ui.list .list>.item .description,
body.dark .ui.list>.item .description,
body.dark .ui.vertical.menu .item.active,
body.dark .ui.vertical.menu .item:hover,
body.dark #user-popup .description,
body.dark .ui.search.dropdown.active>input.search,
body.dark .ui.search.selection.dropdown>input.search,
body.dark .ui.selection.dropdown .menu>.message,
body.dark .ui.attached.tabular.menu .item.active,
body.dark .ui.threaded.comments .comment .text {
    color: #fff;
}

body.dark .ui.segment .forum_post a,
body.dark .ui.comments .comment .forum_post a {
    color: #62b6f7;
}

body.dark .ui.card .meta,
.ui.cards>.card .meta,
body.dark .ui.header,
body.dark .ui.header .sub.header,
body.dark .ui.card>.content>.header,
body.dark .ui.cards>.card>.content>.header,
body.dark .ui.secondary.menu .item:not(.active),
body.dark .ui.card>.content>.description .list .item .text,
body.dark .ui.card>.extra,
body.dark .ui.cards>.card>.extra,
body.dark .ui.pointing.dropdown>.menu>.header,
body.dark .ui.dropdown .menu>.item,
body.dark .ui.breadcrumb .icon.divider,
body.dark .ui.vertical.menu .item,
body.dark .ui.segment,
body.dark .ui.form .field>label,
body.dark .ui.list .list>.item .header,
body.dark .ui.list>.item .header,
body.dark .ui.attached.tabular.menu .item,
body.dark .ui.comments .comment .metadata,
body.dark .ui.comments .comment .actions a,
body.dark .ui.card>.extra a:not(.ui),
body.dark .ui.cards>.card>.extra a:not(.ui),
body.dark .ui.relaxed.list .item .content,
body.dark .ui.horizontal.divider,
body.dark .ui.dropdown .menu>.header:not(.ui),
body.dark .ui.link.list.list .active.item,
body.dark .ui.link.list.list .active.item a:not(.ui) {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover {
    background-color: rgba(0, 0, 0, .05) !important;
}

body.dark .ui.secondary.inverted.menu .popup .list a.item,
body.dark .ui.pointing.dropdown>.menu>.item {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover,
body.dark .ui.dropdown .menu>.item:hover,
body.dark .ui.menu .ui.dropdown .menu>.item.active,
body.dark .ui.list>.item a.header,
body.dark .ui.link.list.list .active.item a:not(.ui):hover {
    color: #fff !important;
}

body.dark .ui.top.left.popup:before {
    background: #222;
    -webkit-box-shadow: 1px 1px 0 0 #444;
    box-shadow: 1px 1px 0 0 #444;
}

body.dark .ui.right.center.popup:before {
    background: #222;
    -webkit-box-shadow: -1px 1px 0 0 #444;
    box-shadow: -1px 1px 0 0 #444;
}

body.dark .ui.left.center.popup:before {
    background: #222;
    -webkit-box-shadow: 1px -1px 0 0 #444;
    box-shadow: 1px -1px 0 0 #444;
}

body.dark .ui.bottom.left.popup:before {
    background: #222;
    -webkit-box-shadow: 1px 1px 0 0 #222;
    box-shadow: 1px 1px 0 0 #222;
}

body.dark .ui.form textarea {
    background-color: #303030;
    border: 2px solid #282828;
    color: #fff;
}

body.dark .ui.form input:not([type]),
body.dark .ui.form input[type=date],
body.dark .ui.form input[type=datetime-local],
body.dark .ui.form input[type=email],
body.dark .ui.form input[type=file],
body.dark .ui.form input[type=number],
body.dark .ui.form input[type=password],
body.dark .ui.form input[type=search],
body.dark .ui.form input[type=tel],
body.dark .ui.form input[type=text],
body.dark .ui.form input[type=time],
body.dark .ui.form input[type=url] {
    color: #fff;
}

body.dark .ui.mini.message,
body.dark .ui.mini.info.message {
    background-color: #282828;
    box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
    -webkit-box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
}

body.dark .ui.pagination {
    background-color: #303030;
}

body.dark .ui.pagination.menu .item {
    color: #fff;
}

body.dark .ui.pagination.menu .item.active {
    background-color: #282828;
}

body.dark .ui.pagination .disabled.item {
    background-color: rgba(0, 0, 0, .05) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.table {
    background: #303030;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table thead th {
    background-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.top.attached.header {
    background-color: #282828;
    border-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table a {
    color: #fff;
}

body.dark .ui.selectable.table tbody tr:hover,
body.dark .ui.table tbody tr td.selectable:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

@media only screen and (min-width: 768px) {

    body.dark #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        border-right: none;
    }
}

body.dark .forum_post,
body.dark .ui.comments .forum_post.text {
    color: #fff;
}

body.dark .ui.comments .comment .author {
    color: #fff;
}

body.dark .tox .tox-toolbar {
    background-color: #222;
}

body.dark .tox .tox-tbtn {
    color: #fff;
}

body.dark .tox .tox-tbtn:hover,
body.dark .tox .tox-tbtn--enabled,
body.dark .tox .tox-split-button:focus,
body.dark .tox .tox-edit-area__iframe {
    color: #fff;
}

body.dark .tox .tox-tbtn svg {
    fill: #fff;
}

/* Override TinyMCE blue-ish dark theme with neutral dark theme */

body.dark .tox .tox-menu,
body.dark .tox .tox-statusbar,
body.dark .tox .tox-menubar,
body.dark .tox .tox-toolbar,
body.dark .tox .tox-toolbar__overflow,
body.dark .tox .tox-toolbar__primary,
body.dark .tox .tox-dialog,
body.dark .tox .tox-dialog__header,
body.dark .tox .tox-dialog__footer,
body.dark .tox .tox-listboxfield .tox-listbox--select,
body.dark .tox .tox-textarea,
body.dark .tox .tox-textfield,
body.dark .tox .tox-toolbar-textfield,
body.dark .tox .tox-selectfield select {
    background-color: #222;
}

body.dark .tox .tox-dialog-wrap__backdrop {
    background-color: rgba(34, 34, 34, 0.7);
}

body.dark .tox .tox-collection--list .tox-collection__item--enabled {
    background-color: #444;
}

body.dark .tox .tox-collection--list .tox-collection__item--active {
    background-color: #666;
}

body.dark .ui.cards>.green.card,
body.dark .ui.green.card,
body.dark .ui.green.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.cards>.red.card,
body.dark .ui.red.card,
body.dark .ui.red.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.tabular.menu {
    border-color: #282828;
}

body.dark .ui.tabular.menu .item {
    color: #fff;
}

body.dark .ui.tabular.menu .active.item {
    background-color: #282828;
    border-color: #282828;
}

body.dark .cc-window.cc-floating {
    -webkit-box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    background-color: #303030 !important;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff !important;
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn:first-child,
body.dark .cc-window.cc-floating .cc-link {
    color: rgba(255, 255, 255, 0.6);
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    background-color: #282828;
    border-color: transparent;
}

body.dark #reactions.ui.mini.message span {
    color: #fff;
}

body.dark #modal-reactions .ui.menu {
    background-color: #282828;
}

body.dark #modal-reactions .ui.menu .item {
    color: #fff;
}

body.dark #modal-reactions .ui.menu .item.active {
    background-color: #222;
}

body.dark #modal-reactions .ui.large.selection.divided.list.middle.aligned .item .content {
    color: #fff;
}

body.dark ::-webkit-scrollbar-corner {
    background-color: transparent;
}

/*
 * Colours
 */

body.dark .white {
    color: #fff;
}

/*
 * Accessiblity
 */

.screenreader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/*
    ================================================
    === CUSTOM STYLING FOR LAPS NETWORK          ===
    ================================================
*/

/*
    Part 1: Slim down the top navigation bar and make it black
*/
.ui.secondary.menu {
    background: #000000;      /* Set background to solid black */
    padding: 5px 0;           /* Reduce top/bottom padding to make it slim */
    margin-bottom: 0 !important; /* Remove the space below the navbar */
    border-radius: 0;         /* Ensure it's a sharp rectangle */
    border: none;             /* Remove any existing border */
}

/*
    Part 2: Hide the "Laps Network - Mall Craft" site name text.
    This targets the first item in the navbar, which is typically the site name.
*/
.ui.secondary.menu>.item:first-child {
    display: none;
}

/*
    Part 3: The magic to make the banner full-width
    This targets the ".ui.masthead" element which contains your server connect info.
    We will transform it into the full-width banner.
*/
.ui.masthead {
    /* Full-width magic */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    
    /* Remove old styles and set new ones */
    margin-top: 0 !important;
    background: none !important; /* Remove the default blue gradient */
    padding: 0 !important; /* Remove default padding */
    border-radius: 0;
    height: 450px; /* You can change this height */
}

/*
    Part 4: Create a new container for the image and logo inside the masthead
*/
.full-width-hero {
  height: 50vh; /* Changed from 100% to 50% of viewport height */
  background-image: url('https://i.postimg.cc/HW9WftKr/2025-06-28-14-16-04.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  /* --- THIS IS THE FULL-WIDTH CODE --- */
  width: 100vw; 
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* This creates the dark overlay on the image */
.full-width-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1.0); /* The last number is the darkness */
    z-index: 1;
}

/* This is where your logo will go */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  /* --- NEW FLEXBOX CENTERING --- */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/*
    Part 5: Hide the default "Connect with..." box from the masthead
*/
.ui.masthead .connect-server {
    display: none;
}

/*
==============================================
== MODERN HOMEPAGE SIDEBAR STYLING
==============================================
*/

/* Main container for the entire sidebar */
.left-sidebar-container {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid #e9e9e9;
}

/* Find the existing .user-profile-block and replace it with this */
.user-profile-block {
  display: flex;
  align-items: center;
  gap: 15px; /* Adds space between avatar and info */
  padding: 20px 25px;
  background: #f0f4f9; /* A slightly darker, distinct background */
  border-bottom: 1px solid #e1e8f0;
}

.user-profile-block img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.user-profile-block .user-info {
  display: flex;
  flex-direction: column;
}

.user-profile-block .user-info .username {
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

.user-profile-block .user-info .view-profile {
  font-size: 0.9em;
  color: #555;
}

/* A generic button for the sidebar */
.sidebar-button {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1em;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #f4f6f9;
  color: #4b5563;
}

.sidebar-button:first-child {
    margin-top: 0;
}

.sidebar-button:hover {
  background-color: #6366f1; /* A nice modern purple */
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-button i.icon {
    margin-right: 10px !important; /* Add space between icon and text */
}

/* A primary button for important actions like Login */
.sidebar-button.primary {
    background-color: #6366f1;
    color: #ffffff;
}
.sidebar-button.primary:hover {
    background-color: #4f46e5; /* Darker purple on hover */
}

/* A danger button for actions like Logout */
.sidebar-button.danger {
    background-color: #fee2e2;
    color: #ef4444;
}
.sidebar-button.danger:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* Styling for the server list box on the right. */
.server-list-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid #e9e9e9;
  min-height: 200px; /* Give it some height for now */
}

/*
==============================================
== HOMEPAGE ATMOSPHERE & TRANSITIONS (v4)
==============================================
*/

body.pushable>.pusher {
  /* This ensures the gradient covers the entire page smoothly */
  background: linear-gradient(180deg, #4A8ADF 0%, #57A3FF 100%); 
}

/* Update the hero section for new spacing
.full-width-hero {
  height: 75vh;
  background-image: url('https://i.postimg.cc/HW9WftKr/2025-06-28-14-16-04.png');
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  /* This moves the content to the bottom */
  /*align-items: flex-end;
  justify-content: center;
  /* This adds some space from the absolute bottom */
  /*padding-bottom: 8vh;
  width: 100vw; 
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* === ADD THESE TWO LINES FOR THE FADE EFFECT === */
  /*-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
} */

/* This is the main container that holds everything and defines the size */
.hero-container {
    position: relative;
    width: 100vw; 
    /* Increase the height from 60vh to 70vh */
    height: 70vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* This is the layer for the background image and the fade-out mask */
.hero-background {
    position: absolute; /* Takes it out of the normal document flow */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.postimg.cc/HW9WftKr/2025-06-28-14-16-04.png');
    background-size: cover;
    background-position: center center;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    z-index: 1; /* Sits at the back */
}

/* === ADD THIS RULE TO RESTORE THE DARK OVERLAY === */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2; /* Sits on top of the image, but below the foreground */
}

/* This is the layer for the logo and buttons */
.hero-foreground {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* Increase the padding from 5vh to 12vh to push the content down */
    padding-bottom: 12vh;
    z-index: 3;
}

/* The hero-content div is still needed inside the foreground */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Dark overlay on the hero image for contrast and mood */
.full-width-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.8) 100%);
  z-index: 1; 
}

/* The final, seamless gradient using your exact color code
.full-width-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 350px;
  background: linear-gradient(to top, #4A8ADF 25%, rgba(74, 138, 223, 0));
  z-index: 2;
}*/



/*
==============================================
== HERO SECTION BUTTONS
==============================================
*/
.hero-buttons-container {
  margin-top: 30px;
  display: flex;
  gap: 15px; /* Creates space between the buttons */
  justify-content: center; /* This centers the buttons */
}

.hero-button {
  padding: 15px 0; /* Adjust padding for the fixed width */
  width: 200px; /* This makes both buttons the same width */
  text-align: center; /* Ensures text is centered within the button */
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Primary Button Style (Add Server) */
.hero-button.primary {
  background-color: #ffffff;
  color: #333333;
}
.hero-button.primary:hover {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

/* Secondary Button Style (Discover) */
.hero-button.secondary {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}
.hero-button.secondary:hover {
  background-color: #ffffff;
  color: #333333;
}



/*
==============================================
== FOCUSED CREATOR FORM
==============================================
*/
.focused-form-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
  padding: 50px;
}

.focused-form-container .form-header {
    margin-bottom: 40px;
}

.ui.form .field {
    margin-bottom: 1.25em !important;
}

.ui.horizontal.divider.header {
  font-size: 1.2em !important;
  color: #555 !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

.ui.form .ui.pointing.label {
    margin-top: 8px !important;
}

.form-submit-section {
  text-align: center;
  margin-top: 40px;
}

.banner-preview-image {
  width: 100%;
  max-width: 468px; /* Standard banner width */
  height: 60px;     /* Standard banner height */
  object-fit: cover; /* This is the magic: it crops, never stretches */
  border-radius: 6px;
  border: 1px solid #ddd;
  display: block;
  margin-top: 5px;
}

.final-submit-button {
  background: linear-gradient(45deg, #6366f1, #a855f7);
  color: #fff;
  font-weight: bold;
  padding: 20px 45px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.final-submit-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(99, 102, 241, 0.4);
}

.final-submit-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(99, 102, 241, 0.4);
}


/*
==============================================
== SERVER VIEW PAGE - DESCRIPTION STYLING
==============================================
*/
.server-description-content {
  line-height: 1.6;
  font-size: 1.1em;
  color: #333;
  word-wrap: break-word; /* Prevents long text from overflowing */
}

.server-description-content h1,
.server-description-content h2,
.server-description-content h3 {
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.server-description-content p {
  margin-bottom: 1em;
}

.server-description-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}


/*
==============================================
== SUBMIT BUTTON HOVER EFFECT
==============================================
*/
#final-submit-button-id:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 25px rgba(99, 102, 241, 0.4) !important;
}

/*
==============================================
== FINAL SERVER LIST SHOWCASE (Corrected v2 Layout)
==============================================
*/

.server-list-wrapper {
  max-width: 900px; /* Or whatever width you think looks best */
  margin: 0 auto;   /* The magic for horizontal centering */
}

.showcase-server-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.showcase-card-v2 {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px -5px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.showcase-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.15);
}

/* THIS IS THE BANNER FIX */
.showcase-banner-v2 {
  background-color: #1c1c1c; /* Dark fallback color */
  background-size: cover; /* This makes the image fill the container */
  background-position: center; /* This centers the image */
  border-radius: 11px 11px 11px 11px; /* Match card radius */
  align-items: center;
  /*width: 936px;*/
  aspect-ratio: 468 / 60
}

.showcase-content-v2 {
  display: flex;
  align-items: center;
  padding: 20px;
}

.showcase-info-v2 { flex-grow: 1; }
.showcase-info-v2 .name { font-size: 1.5em; font-weight: 700; color: #333; }
.showcase-info-v2 .motd { color: #777; }

.showcase-stats-v2 { 
  text-align: right;
  min-width: 75px;
}
.showcase-stats-v2 .status { font-weight: bold; }
.showcase-stats-v2 .status.online { color: #22c55e; }
.showcase-stats-v2 .status.offline { color: #ef4444; }
.showcase-stats-v2 .players { color: #777; }

.showcase-actions-v2 {
  display: flex;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 11px 11px;
  overflow: hidden;
}

.showcase-ip-copy {
  flex-grow: 1;
  padding: 15px 20px;
  font-family: monospace;
  background: #f9f9f9;
  cursor: pointer;
}
.showcase-ip-copy:hover { background: #f1f1f1; }

/* This rule now targets any element with the class 'vote-button' */
.vote-button {
  background: linear-gradient(45deg, #6366f1, #a855f7);
  color: #fff;
  padding: 15px 45px;
  font-weight: bold;
  border-radius: 11px; /* Simplified border-radius */
  width: 300px;
  text-align: center;
  border: none; /* Add this to remove default button border */
  cursor: pointer; /* Add this to show a pointer on hover */
  transition: all 0.2s ease-in-out; /* Match other hover effects */
}

/* We also need to update the hover rule */
.vote-button:hover {
    filter: brightness(110%);
    transform: scale(1.02);
}

/*
==============================================
== FINAL SERVER VIEW PAGE STYLING (Corrected)
==============================================
*/

/* The simple, rectangular banner image */
.spotlight-banner-final {
  display: block; /* Ensures it behaves like a block element */
  width: 100%;
  max-width: 468px; /* Standard banner width */
  height: 60px;     /* Standard banner height */
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 20px auto; /* Centers the banner horizontally */
  background-color: #333; /* A fallback color if the image is missing */
}

/* The title/tagline section below the banner */
.server-title-final {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.server-title-final h2 {
  font-size: 2.2em;
  margin: 0;
}
.server-title-final p {
  font-size: 1.1em;
  color: #666;
  margin-top: 5px;
}

/* Styles for all the cards on the page */
.spotlight-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px -5px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}
.spotlight-card .ui.header {
  margin-top: 0;
}

/* Styles for the data table and tags */
.data-table.ui.definition.table tr > td:first-child { font-weight: bold; background: #f9fafb; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-label.ui.label { background-color: #e9e9e9 !important; color: #555 !important; }

/* The Vote Now button */
.spotlight-vote-button.fluid {
    display: block; width: 100%; padding: 18px; text-align: center;
    font-size: 1.2em; font-weight: bold; border-radius: 8px; color: #fff;
    background: linear-gradient(45deg, #6366f1, #a855f7);
    transition: all 0.3s ease;
}
.spotlight-vote-button.fluid:hover {
    color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/*
==============================================
== THEME V2.5: Polished Page Headers
==============================================
*/

.server-list-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 20px;
}

.server-list-header h2 {
  font-size: 3.5em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* This is the key: a beautiful text gradient that works on your blue background */
  background: linear-gradient(45deg, #ffffff, #c0d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  line-height: 1.2;
  /* Add a subtle shadow to make it pop from the background */
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.server-list-header p {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.8); /* A soft, semi-transparent white */
  letter-spacing: 0.5px;
  max-width: 600px; /* Prevent it from being too wide on large screens */
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustment for mobile to ensure it looks good on all screen sizes */
@media (max-width: 768px) {
    .server-list-header h2 {
        font-size: 2.5em;
    }
    .server-list-header p {
        font-size: 1.1em;
    }
}

/*
==============================================
== MY SERVERS DASHBOARD
==============================================
*/
.my-servers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.my-servers-header .title-group {
  display: flex;
  align-items: center;
}
.my-servers-header .title-group i {
  font-size: 1.5em;
  margin-right: 10px;
  color: #555;
}
.my-servers-header .title-group h3 {
  font-size: 1.5em;
  margin: 0;
}

.my-servers-list {
  margin-top: 20px;
}

.my-server-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* 3 columns for info, status, actions */
  gap: 20px;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.my-server-item:last-child {
  border-bottom: none;
}
.my-server-item:hover {
  background-color: #f9f9f9;
  border-radius: 8px;
}

.my-server-item .server-info .server-name {
  font-weight: bold;
  font-size: 1.1em;
  display: block;
}
.my-server-item .server-info .server-address {
  font-size: 0.9em;
  color: #777;
}

.my-server-item .server-status {
    text-align: center;
}

.my-server-item .server-actions {
  text-align: right;
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
    .my-server-item {
        grid-template-columns: 1fr; /* Stack everything on mobile */
        gap: 10px;
    }
    .my-server-item .server-status,
    .my-server-item .server-actions {
        text-align: left;
    }
}

/*
==============================================
== POWERED BY LOGO
==============================================
*/

/*
==============================================
== HERO LOGO STYLING (Desktop First)
==============================================
*/

.hero-logo {
  max-height: 250px;
  max-width: 90%;
  width: auto;
  height: auto;
  margin-bottom: 20px;
  /* This tells the browser to animate any changes to the 'transform' property over 0.3 seconds */
  transition: transform 0.3s ease-in-out;
}

/* This rule applies ONLY when the user's mouse is over the logo */
.hero-logo:hover {
  /* This makes the logo 5% larger */
  transform: scale(1.1);
}


/*
==============================================
== HERO LOGO RESPONSIVE STYLES (Mobile)
==============================================
*/

/* This rule applies ONLY to screens 768px wide or smaller */
@media (max-width: 768px) {
  .hero-logo {
    /* On mobile, we switch to a fluid, percentage-based width */
    width: 80%;
    max-width: 600px; /* Still have a max-width safety net */
    
    /* Reset max-height so the width property takes control */
    max-height: none; 
  }
}

.powered-by-container {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.7); /* Semi-transparent white text */
  font-size: 0.9em;
}

.powered-by-logo {
  max-height: 40px; /* Adjust the size of the partner logo */
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.powered-by-logo:hover {
  opacity: 1;
}

/*
==============================================
== HERO & HOMEPAGE RESPONSIVE STYLES (MOBILE)
==============================================
*/

/* This rule applies to any screen with a max-width of 768px (tablets and phones) */
@media (max-width: 768px) {

  /* Make the main hero section shorter on mobile */
  .full-width-hero {
    height: 60vh; /* Shorter than the 75vh on desktop */
  }

  
  /* This is the key change: it makes the buttons stack */
  .hero-buttons-container {
    flex-direction: column; /* Change from horizontal to vertical */
    width: 80%; /* Make the container take up most of the screen width */
    max-width: 350px; /* But don't let it get too wide */
  }
  
  /* Target the individual buttons inside the container */
  .hero-buttons-container .hero-button {
    width: 100%; /* Make each button take the full width of the container */
  }
  
  /* Make the "Powered by" logo a bit smaller on mobile */
  .powered-by-logo {
      max-height: 30px;
  }

}

/*
==============================================
== MASTER SERVER CARD & HOMEPAGE LAYOUT
==============================================
*/

/* --- Homepage Grid --- */
.homepage-grid {
  display: grid;
  /* This creates the two-column layout on desktop */
  grid-template-columns: 38% 1fr;
  gap: 30px;
  align-items: start; /* Aligns items to the top of the grid cell */
}

/* --- Mobile & Tablet Responsive Styles --- */
@media (max-width: 992px) {
  .homepage-grid {
    /* On smaller screens, stack the sidebar and content */
    grid-template-columns: 1fr;
  }
}

/* This targets an even smaller screen size for the card's internal layout */
@media (max-width: 768px) {
  /* This is the key change for the card's inner content */
  .showcase-content-v2 {
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    gap: 10px;
  }

  .showcase-stats-v2 {
    text-align: left; /* Align stats to the left */
    margin-top: 10px;
    width: 100%; /* Make it take full width */
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
  }

  /* This will stack the IP copy and Vote button */
  .showcase-actions-v2 {
    flex-direction: column;
  }

  /* Make the vote button full-width for a better mobile experience */
  .showcase-actions-v2 > a.vote-button {
      text-align: center;
  }
}

/*
==============================================
== THEME V2: Professional Blue
==============================================
*/

/* --- New Content Container Styling --- */
.content-box {
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 25px -5px rgba(0,0,0,0.1);
    overflow: hidden; /* This is important for the rounded corners on the header */
}

.content-box-header {
    padding: 20px 25px;
    background: #f7f9fc;
    border-bottom: 1px solid #e1e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-box-header i.icon {
    font-size: 1.2em;
    color: #57A3FF; /* Use our new theme blue */
}

.content-box-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50; /* A professional, dark text color */
}

.content-box-content {
    padding: 25px;
}

/* --- Refine the Sidebar to use the new style --- */
.left-sidebar-container {
    padding: 0; /* Remove old padding */
    background: none; /* Remove old background */
    box-shadow: none; /* Remove old shadow */
    border: none; /* Remove old border */
}

.left-sidebar-container .user-profile-block {
    padding: 20px 25px;
}

/* --- Refine Server Card for the New Theme --- */
.showcase-card-v2 {
    border-color: #e1e8f0;
    box-shadow: 0 4px 15px -5px rgba(0,0,0,0.08);
}
.showcase-card-v2:hover {
    box-shadow: 0 8px 25px -8px rgba(0,0,0,0.12);
}

.showcase-info-v2 .name {
    color: #2c3e50;
}

/* Change the IP Copy section to match the theme */
.showcase-ip-copy {
    background: #f7f9fc;
    border-top: 1px solid #e1e8f0;
}
.showcase-ip-copy:hover { 
    background: #eef2f8; 
}

/* Update the vote button hover effect */
.showcase-actions-v2 > a.vote-button:hover {
    filter: brightness(110%);
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}

/*
==============================================
== THEME V2.1: Final Polish
==============================================
*/

/* --- New Reworked Profile Block --- */
.user-profile-block .profile-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.user-info-v2 {
    display: flex;
    flex-direction: column;
}

.user-info-v2 .username {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.user-info-v2 .role {
    font-size: 0.9em;
    color: #576574; /* A soft, secondary text color */
}

/* --- Tweak Content Box Header --- */
.content-box-header h3 {
    text-transform: uppercase;
    font-size: 1.1em;
    letter-spacing: 1px;
    color: #576574;
}

.content-box-header i.icon {
    color: #8395a7;
}

/*
==============================================
== THEME V2.2: Main Server Status Widget
==============================================
*/

.main-server-status-widget {
    padding: 20px 25px;
    border-top: 1px solid #e1e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}

.status-widget-title {
    font-weight: 600;
    color: #2c3e50;
	font-size: 1.5em
}

.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-count {
    color: #576574;
    background-color: #f0f4f9;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.status-indicator {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
}

.status-indicator::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-indicator.status-online {
    color: #2ed573;
}
.status-indicator.status-online::before {
    background-color: #2ed573;
    box-shadow: 0 0 5px #2ed573;
}

.status-indicator.status-offline {
    color: #ff4757;
}
.status-indicator.status-offline::before {
    background-color: #ff4757;
}

/*
==============================================
== THEME V2.3: Sub-Page Hero Section
==============================================
*/

/* This targets the hero section on ANY page that is NOT the homepage */
body:not(#page-index) .hero-container {
    height: 35vh; /* Make it much shorter */
}

/* Adjust the foreground content alignment on sub-pages */
body:not(#page-index) .hero-foreground {
    align-items: center; /* Vertically center the logo */
    padding-bottom: 0; /* Remove the extra padding */
}

/* Make the logo a bit smaller on the shorter banner */
body:not(#page-index) .hero-logo {
    max-height: 120px;
    margin-bottom: 0; /* Remove the margin that was for the buttons */
}

/*
==============================================
== THEME V2.4: Beautiful Vote Page
==============================================
*/

.vote-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.vote-server-banner {
    display: block;
    max-width: 100%;
    width: 468px; /* Standard banner width */
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 20px auto; /* Center the banner */
    background-color: #333;
    border: 1px solid #e1e8f0;
}

.vote-server-name {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.vote-server-prompt {
    font-size: 1.1em;
    color: #576574;
}

/* Ensure the form has some vertical space */
.focused-form-container .ui.form {
    margin-top: 20px;
}

/*
==============================================
== THEME V2.6: Enhanced Server Cards
==============================================
*/

.showcase-details-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #f7f9fc;
    color: #576574;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #e1e8f0;
}

.detail-item i.icon {
    color: #8395a7;
    font-size: 1.1em;
}

/*
==============================================
== THEME V2.7: Beautiful & Polished Filter Bar
==============================================
*/

.filter-bar {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px -5px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e1e8f0;
}

.filter-form {
    display: grid;
    grid-template-columns: 2fr 1fr auto; /* Columns for search, sort, button */
    gap: 15px;
    align-items: center;
}

/* This targets the search input and the dropdown container */
.filter-search, .filter-sort {
    position: relative;
}

/* Style for the search icon inside the input box */
.filter-search .icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #8395a7;
    font-size: 1.1em;
    pointer-events: none; /* Make the icon non-clickable */
}

/* Base styles for the search input and the sort dropdown button */
.filter-search input,
.filter-sort .ui.dropdown.button {
    width: 100%;
    height: 48px;
    border: 1px solid #dbe1e8 !important;
    border-radius: 8px !important;
    background-color: #f7f9fc !important;
    padding: 0 15px;
    font-size: 1em;
    transition: all 0.2s ease;
    color: #2c3e50 !important;
	/* === ADD THESE 3 LINES TO CENTER THE CONTENT === */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Specific padding for the search input to not overlap the icon */
.filter-search input {
    padding-left: 45px;
}

/* Hover and focus effects for a premium feel */
.filter-search input:focus,
.filter-sort .ui.dropdown.button:hover {
    border-color: #57A3FF !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(87, 163, 255, 0.2);
}

/* Style the dropdown menu itself */
.filter-sort .ui.dropdown .menu {
    border-radius: 8px !important;
    border-color: #dbe1e8 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    margin-top: 5px !important;
}
.filter-sort .ui.dropdown .menu .item {
    padding: 10px 15px !important;
}
.filter-sort .ui.dropdown .menu .item:hover {
    background-color: #f7f9fc !important;
    color: #2c3e50 !important;
}

/* Style the search button */
.filter-submit .button {
    height: 48px;
    border-radius: 8px !important;
    background: linear-gradient(45deg, #6366f1, #a855f7);
    color: #fff;
    padding: 0 30px;
    font-weight: 600;
}
.filter-submit .button:hover {
    filter: brightness(110%);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr; /* Stack everything vertically */
    }
    .filter-sort .ui.dropdown.button {
        justify-content: center; /* Center the text in the dropdown button */
    }
}

/*
==============================================
== THEME V2.8: Interactive Tag Selector
==============================================
*/

#tag-selector-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 15px;
    background-color: #f7f9fc;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
}

.tag-button {
    padding: 8px 15px;
    background-color: #ffffff;
    border: 1px solid #dbe1e8;
    border-radius: 50px; /* Makes it a "pill" shape */
    font-weight: 500;
    color: #576574;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none; /* Prevents text selection on click */
}

.tag-button:hover {
    border-color: #57A3FF;
    color: #57A3FF;
}

.tag-button.selected {
    background-color: #57A3FF;
    border-color: #57A3FF;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(87, 163, 255, 0.3);
}

/*
==============================================
== Fomantic Card Tag Styling
==============================================
*/
.ui.card .content .description {
    /* Give the description area some space for the tags */
    margin-top: 1em;
}

.card-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px; /* A little space between tags */
}

.card-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f3f4f6; /* A light grey background */
    border-radius: 5px;
    font-size: 0.85em;
    color: #4b5563; /* A dark grey text color */
}

.card-tag-item i.icon {
    opacity: 0.7;
}

/*
==============================================
== Custom Card Tag Styling
==============================================
*/
.card-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f3f4f6;
    border-radius: 5px;
    font-size: 0.85em;
    color: #4b5563;
    border: 1px solid #e1e8f0;
}

.card-tag-item i.icon {
    opacity: 0.7;
}

/*
==============================================
== THEME V3.6: High-Energy "Join Us" Banner (Final Layout)
==============================================
*/

/* Animations remain the same */
@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes icon-shimmer {
    0%, 100% { filter: brightness(1); text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { filter: brightness(1.7); text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

.join-us-banner-container {
    padding: 25px 1rem;
}

.join-us-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 25px;
    align-items: center;
    max-width: 1127px;
    margin: 0 auto;
    padding: 20px 25px;
    color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #6366f1, #a855f7, #ec4899, #a855f7, #6366f1);
    background-size: 400% 400%;
    animation: animated-gradient 10s ease infinite;
}

/* Text and Icon styles remain the same */
.join-us-icon .icon { font-size: 3em; opacity: 0.9; animation: icon-shimmer 4s infinite ease-in-out; }
.join-us-text h3 { margin: 0 0 5px 0; font-size: 2.2em; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(236, 72, 153, 0.4); }
.join-us-text p { margin: 0; opacity: 1; font-size: 1.2em; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }


/* === START: FINAL ACTION STYLES === */

.join-us-buttons {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the text and the button */
}

/* Find this rule and add the 3 new lines */
.join-us-discover-text {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 700;
    opacity: 0.7;
    /* === ADD THESE 3 LINES FOR ALIGNMENT === */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* The IP copy button */
.join-us-action {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.join-us-action:hover {
    background-color: rgba(0, 0, 0, 0.4);
}
/* === END: FINAL ACTION STYLES === */


/* Responsive adjustments */
@media (max-width: 768px) {
    .join-us-banner { grid-template-columns: 1fr; text-align: center; gap: 15px; }
    .join-us-icon { display: none; }
    .join-us-text h3 { font-size: 1.7em; }
    .join-us-text p { font-size: 1.1em; }
    
    .join-us-buttons {
        justify-content: center; /* Center the group on mobile */
    }
}

/*
==============================================
== THEME V3.2: Hub Registration Form
==============================================
*/

.hub-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f9fc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

.hub-toggle-label {
    font-weight: 600;
    color: #2c3e50;
}

/* The switch - a checkbox-based toggle */
.ui-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.ui-switch input { opacity: 0; width: 0; height: 0; }
.ui-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 28px; }
.ui-switch .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
.ui-switch input:checked + .slider { background-color: #57A3FF; }
.ui-switch input:focus + .slider { box-shadow: 0 0 1px #57A3FF; }
.ui-switch input:checked + .slider:before { transform: translateX(22px); }

#hub-customization-section {
    padding: 20px;
    margin-top: 15px;
    border: 1px dashed #dbe1e8;
    border-radius: 8px;
}

#gradient-colors-wrapper .field {
    margin-bottom: 10px !important;
}

/*
==============================================
== THEME V6.1: Min/Max Version Stepper (Stacked Layout)
==============================================
*/

/* --- Main Container --- */
.version-platform-component {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 1rem;
}

/* --- Platform Toggles Section (No changes here) --- */
.platform-selector-container .field-label,
.version-selector-container .field-label {
    font-size: 1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
}
.platform-toggles { display: flex; gap: 15px; }
.platform-toggle {
    flex-grow: 1; padding: 20px; border: 2px solid #dbe1e8; border-radius: 10px;
    cursor: pointer; transition: all 0.2s ease-in-out; text-align: center; background-color: #f7f9fc;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.platform-toggle:hover { border-color: #a8b9ce; transform: translateY(-2px); }
.platform-toggle.active {
    border-color: #57A3FF; background-color: #edf5ff;
    box-shadow: 0 4px 15px -5px rgba(87, 163, 255, 0.5); transform: translateY(-2px);
}
.platform-toggle .icon { font-size: 2.2em !important; color: #8395a7; transition: color 0.2s ease; margin: 0 !important; }
.platform-toggle.active .icon { color: #57A3FF; }
.platform-toggle .toggle-name { font-size: 1.2em; font-weight: 700; color: #576574; transition: color 0.2s ease; }
.platform-toggle.active .toggle-name { color: #2c3e50; }


/* --- Version Stepper UI Layout --- */

/* THIS IS THE KEY CHANGE: 1 column means items stack vertically */
.version-selectors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px; /* The vertical space between the "Minimum" and "Maximum" steppers */
}

.version-stepper-group .field-label {
    font-size: 0.9em;
    font-weight: 500;
    color: #576574;
    text-align: left; /* Aligns "Minimum" and "Maximum" labels to the left */
    margin-bottom: 8px;
}

.version-stepper-ui {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns the stepper itself to the left */
    gap: 5px;
    background-color: #f0f4f9;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
}

/* Stepper button/value styles (No changes here) */
.version-stepper-static {
    font-size: 2em;
    font-weight: 700;
    color: #8395a7;
    padding: 0 10px;
}
.version-stepper { display: flex; align-items: center; gap: 10px; }
.stepper-btn {
    width: 36px; height: 36px; border: 1px solid #dbe1e8; background-color: #fff;
    border-radius: 50%; font-size: 1.5em; color: #576574; cursor: pointer;
    transition: all 0.2s ease; display: flex; align-items: center;
    justify-content: center; line-height: 1;
}
.stepper-btn:hover { background-color: #57A3FF; color: #fff; border-color: #57A3FF; }
.stepper-value { font-size: 2em; font-weight: 700; color: #2c3e50; width: 40px; text-align: center; }


/* --- Responsive --- */
@media (max-width: 992px) {
    /* On medium screens, stack the Platform and Version sections */
    .version-platform-component {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/*
==============================================
== PAGINATION STYLING (V3.2 - Final Centering Fix)
==============================================
*/

.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.ui.pagination.menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

/* This targets ALL items (links and disabled items) */
.ui.pagination.menu .item {
    color: #555;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border-left: 1px solid #f0f0f0;
    
    /* --- THE DEFINITIVE FIX with !important --- */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important; /* Set a specific horizontal padding */
    height: 40px;
}


.ui.pagination.menu .item:first-child {
    border-left: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.ui.pagination.menu .item:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ui.pagination.menu .item:not(.active):not(.disabled):hover {
    background-color: #f8f9fa;
    color: #4f46e5;
}

.ui.pagination.menu .item.active {
    background: linear-gradient(45deg, #4f46e5, #818cf8);
    color: #ffffff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.ui.pagination.menu .item.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background-color: #f9fafb;
}

/*
==============================================
== THEME V3.8: Premium Verified Badge (Corrected)
==============================================
*/

.verified-badge {
    /* Set up font styling and alignment */
    font-size: 0.6em; /* <-- Made smaller */
    font-weight: 700;
    vertical-align: baseline; /* <-- Changed from middle */
    margin-left: 8px;
    
    /* --- NEW: Fine-tune vertical position --- */
    position: relative;
    top: -1px;
}

.verified-badge .icon {
    /* Style the star icon (unchanged) */
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Find this rule in your CSS file */
.verified-badge .text {
    /* This is the key part: the text gradient */
    background: linear-gradient(45deg, #ffd700, #F0E68C, #ffd700); /* New, richer gold gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* Add a slightly stronger shadow to make it pop */
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0);
}

/*
==============================================
== THEME V3.9: Clickable Server Cards
==============================================
*/

/* This is the new wrapper for the card that will be a link */
.showcase-card-link {
    display: block; /* Make the <a> tag behave like a div */
    position: relative; /* This is crucial for the "stretched link" effect */
    color: inherit; /* Make sure text inside the link doesn't turn blue */
    text-decoration: none; /* Remove the underline from the link */
}

/* This makes sure the link doesn't get a weird color on hover */
.showcase-card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Make sure the main card inside the link behaves correctly */
.showcase-card-link .showcase-card-v2 {
    width: 100%; /* The card should fill the link wrapper */
}

/* This is the most important part.
   We make sure the IP Copy and Vote button sections are "on top"
   of the main card link, so they are still clickable.
*/
.showcase-actions-v2 {
    position: relative; /* This gives it a "z-index" context */
    z-index: 2; /* This puts it on a higher layer than the card link */
}

/* This ensures the server name link inside still works fine and
   doesn't get overridden by the larger card link.
*/
.showcase-info-v2 a.name {
    position: relative;
    z-index: 3; /* Give it the highest priority */
}

/*
==============================================
== REVIEW SYSTEM STYLING
==============================================
*/

/* Main container for the reviews and form sections */
.spotlight-card.review-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Style for the "Recent Reviews" / "Leave a Review" titles */
.spotlight-card.review-section .ui.header {
    color: #374151;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Individual Review Styling --- */
.ui.comments .comment {
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ui.comments .comment:last-child {
    border-bottom: none;
}
.ui.comments .comment .author {
    font-weight: 600;
    color: #4f46e5; /* Match theme purple */
}
.ui.comments .comment .metadata .rating {
    color: #f59e0b; /* A nice gold color for stars */
}
.ui.comments .comment .text {
    color: #4b5563;
    line-height: 1.6;
}

/* --- Review Form Styling --- */
.review-form .form-group {
    margin-bottom: 1.5rem;
}
.review-form .form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.review-form .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

/* --- Submit Button Styling --- */
.review-form .btn-primary {
    background: linear-gradient(45deg, #6965F2, #A656F7);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.review-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

/*
==============================================
== SERVER LISTING FORM STYLING (V2 - Corrected)
==============================================
*/

/* === Final Submit Button Gradient === */
/* Targets the main "Launch Server Profile" button */
.final-submit-button {
    background: linear-gradient(45deg, #736FFF, #B25FFF) !important; /* Use !important to override Fomantic UI */
    color: #fff !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(115, 111, 255, 0.3);
    font-weight: bold;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

/* Add a hover effect */
.final-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 95, 255, 0.4);
}

/* === Platform & Tag Selection === */
/* This targets the selected blue state for Platform toggles and Game Tags */
.platform-toggle.active,
.tag-button.selected {
    background: linear-gradient(45deg, #736FFF, #B25FFF);
    color: #fff;
    border-color: transparent;
}

/* === Version Stepper Button Focus === */
/* This makes the plus/minus buttons glow with your theme color */
.version-stepper .stepper-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(115, 111, 255, 0.3);
}

/* === General Input Field Focus Glow === */
/* This makes text boxes glow with your gradient color when selected */
.ui.form input[type="text"]:focus,
.ui.form input[type="number"]:focus,
.ui.form input[type="url"]:focus,
.ui.form textarea:focus {
    border-color: #A06FFF !important;
    box-shadow: 0 0 8px rgba(115, 111, 255, 0.3) !important;
}

/* === In-Game Hub Radio Buttons === */
/* This styles the custom radio buttons for the hub feature */
.ui.radio.checkbox input:checked~.box:after, 
.ui.radio.checkbox input:checked~label:after {
    background-color: #8A2BE2 !important; /* A solid color from the gradient */
}