/* ================================================
   LAYOUT OVERRIDES - Extracted from inline styles
   Play-Merciless Silk Road Online Theme
   ================================================ */

/* Base HTML/Body */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body.header-fixed {
    padding-top: 80px;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #0b0b0b 0%, #0f0f0f 100%);
    color: #f2f2f2;
}

/* Emoji/Smiley Styling */
img.wp-smiley,
img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 1em !important;
    width: 1em !important;
    margin: 0 .07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}

/* Global Link Styling */
a {
    color: #ff8c00;
    text-decoration: none;
}

/* ================================================
   LOGO STYLING
   ================================================ */

.logo-text {
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb347;
    text-shadow: none;
}

.logo-text::before {
    content: none;
}

/* ================================================
   HEADER NAVIGATION LAYOUT
   ================================================ */

header .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.nav-control {
    overflow: hidden !important;
    max-height: none !important;
    height: auto !important;
}

/* ================================================
   JOIN MODAL (GUEST PROMPT)
   ================================================ */

.join-modal .modal-dialog {
    max-width: 820px;
}

.join-modal__content {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid rgba(255, 168, 76, 0.35);
    background:
        linear-gradient(145deg, rgba(10, 12, 18, 0.98), rgba(18, 12, 20, 0.96));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.75),
        0 0 60px rgba(255, 140, 0, 0.25);
    animation: joinModalRise 0.6s ease both;
}

.join-modal__close {
    position: absolute;
    right: 16px;
    top: 16px;
    filter: invert(1);
    opacity: 0.8;
    z-index: 5;
}

.join-modal__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.join-modal__sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 24% 32%, rgba(190, 220, 255, 0.8), transparent),
        radial-gradient(1px 1px at 38% 14%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 52% 26%, rgba(255, 220, 170, 0.75), transparent),
        radial-gradient(1px 1px at 66% 18%, rgba(200, 230, 255, 0.75), transparent),
        radial-gradient(1px 1px at 78% 12%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 18% 62%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 32% 70%, rgba(200, 230, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 66%, rgba(255, 220, 170, 0.6), transparent),
        radial-gradient(1px 1px at 64% 60%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 80% 68%, rgba(180, 220, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90% 58%, rgba(255, 255, 255, 0.6), transparent),
        linear-gradient(180deg, #04060b 0%, #0a101c 45%, #0f0d16 100%);
    opacity: 0.9;
}

.join-modal__mountains {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 22%;
    height: 42%;
    background: linear-gradient(180deg, rgba(30, 35, 55, 0.9), rgba(8, 10, 16, 0.95));
    clip-path: polygon(0% 100%, 8% 62%, 18% 78%, 28% 52%, 38% 70%, 50% 40%, 62% 66%, 72% 48%, 84% 70%, 94% 58%, 100% 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.join-modal__grass {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    background:
        linear-gradient(180deg, rgba(22, 40, 26, 0.9), rgba(8, 18, 12, 0.98)),
        repeating-linear-gradient(90deg, rgba(30, 80, 40, 0.5) 0px, rgba(30, 80, 40, 0.5) 1px, transparent 1px, transparent 4px);
    opacity: 0.9;
}

.join-modal__glow {
    position: absolute;
    inset: -45% -15% auto -15%;
    height: 65%;
    background: radial-gradient(circle at 50% 60%, rgba(255, 190, 120, 0.35), rgba(255, 190, 120, 0));
    pointer-events: none;
    animation: joinGlowPulse 3.2s ease-in-out infinite;
    z-index: 1;
}


.join-modal__body {
    position: relative;
    padding: 36px 54px 132px;
    text-align: left;
    z-index: 2;
}


.join-modal__title {
    font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
    font-size: 34px;
    font-weight: 800;
    color: #ffe2b8;
    margin-bottom: 10px;
    margin-top: -6px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.join-modal__subtitle {
    font-size: 15px;
    color: #d8c3a8;
    margin-bottom: 26px;
}

.join-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.join-modal__perk {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 180, 90, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
    animation: joinPerkFloat 3.5s ease-in-out infinite;
    min-height: 72px;
}

.join-modal__perk:nth-child(2) {
    animation-delay: 0.5s;
}

.join-modal__perk:nth-child(3) {
    animation-delay: 0.9s;
}

.join-modal__perk-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffb468;
    margin-bottom: 6px;
}

.join-modal__perk-value {
    font-size: 13px;
    color: #f0e2cf;
}

.join-modal__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.join-modal__cta {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 22px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(8, 18, 12, 0.6);
    border: 1px solid rgba(120, 170, 90, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.join-modal__discord-row {
    margin-top: 14px;
}

.join-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.join-modal__btn--primary {
    background: linear-gradient(135deg, #ffb34d, #ff7b2e);
    color: #1b0e04;
    box-shadow: 0 12px 24px rgba(255, 129, 38, 0.35);
}

.join-modal__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(255, 129, 38, 0.5);
}

.join-modal__btn--ghost {
    border: 1px solid rgba(255, 180, 110, 0.4);
    color: #ffd1a3;
    background: rgba(15, 12, 18, 0.6);
}

.join-modal__btn--ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(120, 190, 255, 0.2);
}

.join-modal__btn--discord {
    border: 1px solid rgba(120, 190, 255, 0.55);
    color: #cfe7ff;
    background: rgba(20, 24, 36, 0.8);
}

.join-modal__btn--discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(120, 190, 255, 0.35);
}

.join-modal__fineprint {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(235, 210, 180, 0.7);
}

@keyframes joinModalRise {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes joinGlowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}



@keyframes joinPerkFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 600px) {
    .join-modal__body {
        padding: 28px 28px 148px;
    }

    .join-modal__title {
        font-size: 24px;
    }

    .join-modal__actions {
        flex-direction: column;
    }

    .join-modal__btn {
        width: 100%;
    }

    .join-modal__cta {
        left: 22px;
        right: 22px;
        bottom: 18px;
    }
}

.nav-control ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden !important;
    max-height: none !important;
    height: auto !important;
    white-space: nowrap;
}

.nav-control ul li {
    flex-shrink: 0;
    min-width: 0;
}

.nav-control ul li a {
    display: block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    color: #f2f2f2;
    padding: 6px 10px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-control ul li a:hover,
.nav-control ul li a:focus {
    color: #ffb347;
    background: rgba(255, 140, 0, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 140, 0, 0.3);
}

.nav-control ul li.active a {
    color: #0b0b0b;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.nav-control ul li.active a:hover,
.nav-control ul li.active a:focus {
    color: #0b0b0b;
    background: linear-gradient(135deg, rgba(255, 200, 120, 1) 0%, rgba(255, 140, 0, 0.95) 100%);
}

.nav-right {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-right a {
    color: #f2f2f2;
}

/* ================================================
   TABLE STYLING
   ================================================ */

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #4f3637;
}

.navbar.navbar-default {
    float: unset;
}

.sidebar-nav .navbar li a {
    padding-top: unset;
    padding-bottom: unset;
}

/* ================================================
   BUTTON STYLING
   ================================================ */

.btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6a00 100%);
    border: 1px solid rgba(255, 140, 0, 0.65);
    color: #fff;
    font-size: 15px;
    padding: 10px 22px;
    margin-top: 15px;
    font-weight: 700;
    text-shadow: none;
    transition: all 0.3s ease;
    border-radius: 999px;
}

.btn:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
    border-color: #ff8c00;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:focus,
.btn:active:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.25);
}

.navbar-brand {
    background: unset;
}

.down-block {
    border: #d4a444 solid;
    padding: 15px;
}

/* ================================================
   HEADER STRUCTURE
   ================================================ */

header {
    position: relative;
    background: transparent !important;
    height: 120px;
    margin-bottom: 0px;
    overflow: hidden;
    border-radius: 18px;
}

body.is-home header {
    height: 66vh;
}

body:not(.is-home) header {
    height: 80px;
}

.page-hero {
    margin-top: 0px;
}

.page-hero .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.page-hero h1 {
    text-align: center;
}

.page-hero p {
    text-align: center;
}

.header-fixed header {
    position: relative !important;
}

.header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
    box-sizing: border-box;
    border-radius: 18px;
    
    /* Electrifying scorched earth border effect */
    border: 2px solid transparent;
    background-image: 
        linear-gradient(rgba(8, 8, 8, 0.85), rgba(8, 8, 8, 0.85)),
        linear-gradient(90deg, 
            #ff4500 0%, 
            #ff8c00 15%, 
            #ffd700 30%, 
            #ff4500 45%,
            #8b0000 60%,
            #ff8c00 75%,
            #ff4500 90%,
            #ff8c00 100%
        );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        /* Subtle inner glow only */
        inset 0 0 8px rgba(255, 69, 0, 0.2),
        /* Light outer glow - no boxy shadows */
        0 0 15px rgba(255, 140, 0, 0.3),
        0 0 25px rgba(255, 69, 0, 0.15);
    animation: electricPulse 3s ease-in-out infinite;
}

@keyframes electricPulse {
    0%, 100% {
        box-shadow: 
            inset 0 0 8px rgba(255, 69, 0, 0.2),
            0 0 15px rgba(255, 140, 0, 0.3),
            0 0 25px rgba(255, 69, 0, 0.15);
    }
    50% {
        box-shadow: 
            inset 0 0 12px rgba(255, 69, 0, 0.3),
            0 0 20px rgba(255, 140, 0, 0.4),
            0 0 35px rgba(255, 69, 0, 0.2);
    }
}

header .container {
    position: relative;
    z-index: 2;
}

/* ================================================
   FIXED NAVIGATION BAR (Glass Effect)
   ================================================ */

header .container.top-nav-fixed {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: calc(100vw - 40px);
    z-index: 9999;
    background: rgba(8, 8, 8, 0.85);
    padding: 10px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 140, 0, 0.25);
    box-shadow:
        0 2px 8px rgba(0,0,0,0.15),
        0 6px 20px rgba(0,0,0,0.25),
        0 12px 35px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.25);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

header .container.top-nav-fixed .nav-profile .dropdown-menu {
    background: rgba(12, 12, 12, 0.98);
    color: #f2f2f2;
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 0, 0.25);
    box-shadow:
        0 2px 6px rgba(0,0,0,0.1),
        0 6px 20px rgba(0,0,0,0.25),
        0 12px 30px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.5);
    min-width: 220px;
    padding: 8px 0;
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

header .container.top-nav-fixed .nav-profile .dropdown-menu > li > a {
    color: #f2f2f2 !important;
}

body:not(.is-home) .header-canvas,
body:not(.is-home) .banner-background {
    display: none;
}

header .container.top-nav-fixed .nav-profile .dropdown-menu > li > a:hover {
    background: rgba(255, 140, 0, 0.12);
    color: #ffb347 !important;
}

/* ================================================
   HAMBURGER MENU
   ================================================ */

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    z-index: 10001;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #ff8c00;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 0 0 10px 10px;
    padding: 15px 0;
    margin-top: 5px;
    z-index: 9998;
    flex-direction: column;
}

.mobile-nav-menu.active {
    display: flex;
}

.mobile-nav-menu a {
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu a.active {
    background: rgba(255, 140, 0, 0.2);
    color: #ffb347;
}

/* ================================================
   VOTE NOTIFICATION STYLING
   ================================================ */

/* Vote Toast (clean + attention-grabbing) */
.vote-toast {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 9999;
    width: 360px;
    background: rgba(12, 12, 16, 0.95);
    border: 1px solid rgba(255, 122, 24, 0.35);
    border-radius: 16px;
    padding: 14px 16px 16px;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(255, 122, 24, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: toastSlideIn 0.4s ease-out;
}

.vote-toast::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    border: 1px solid rgba(255, 122, 24, 0.2);
    box-shadow: 0 0 24px rgba(255, 122, 24, 0.25);
    pointer-events: none;
    animation: toastPulse 2.6s ease-in-out infinite;
}

.vote-toast__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-toast__text {
    flex: 1;
}

.vote-toast__title {
    color: var(--ember-accent-bright);
    font-family: "Oxanium", "Space Grotesk", sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.vote-toast__subtitle {
    color: var(--ember-muted);
    font-size: 12px;
    margin-top: 4px;
}

.vote-toast__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffb56b 0%, #ff7a18 100%);
    color: #0b0b0d;
    border: 1px solid rgba(255, 122, 24, 0.75);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.vote-toast__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 122, 24, 0.35);
}

.vote-toast__dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(12, 12, 16, 0.7);
    border: 1px solid rgba(255, 122, 24, 0.2);
    color: var(--ember-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-toast__dismiss:hover {
    color: var(--ember-accent-bright);
    border-color: rgba(255, 122, 24, 0.6);
}

.vote-toast--hidden {
    display: none !important;
}

@keyframes toastSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .vote-toast {
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* ================================================
   BANNER BACKGROUND
   ================================================ */

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0px;
    background: rgba(8, 8, 8, 0.35);
    z-index: 1;
    border-radius: 0;
    pointer-events: none;
}

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

@media (max-width: 1399px) {
    .hamburger-menu {
        display: flex;
    }
    .nav-control #vote {
        display: none;
    }
}

@media (max-width: 1329px) {
    .nav-control #donate {
        display: none;
    }
}

@media (max-width: 1249px) {
    .nav-control #events {
        display: none;
    }
}

@media (max-width: 1299px) {
    .hamburger-menu {
        display: flex;
    }
    header .container.top-nav-fixed {
        padding: 8px 15px;
        gap: 12px;
    }
    header .container {
        gap: 15px;
    }
    .nav-control ul {
        gap: 0.6rem;
    }
}

@media (max-width: 1179px) {
    .nav-control #guides {
        display: none;
    }
    header .container.top-nav-fixed {
        padding: 8px 12px;
        gap: 10px;
    }
    .nav-control ul {
        gap: 0.5rem;
    }
}

@media (max-width: 1059px) {
    .nav-control #rules {
        display: none;
    }
    header .container.top-nav-fixed {
        padding: 7px 12px;
        gap: 8px;
    }
    .nav-control ul {
        gap: 0.4rem;
    }
}

@media (max-width: 949px) {
    .nav-control #faq {
        display: none;
    }
    header .container.top-nav-fixed {
        padding: 6px 12px;
        gap: 8px;
    }
    .nav-control ul {
        gap: 0.35rem;
        font-size: 13px;
    }
}

@media (max-width: 849px) {
    .nav-control #ranking {
        display: none;
    }
    header .container.top-nav-fixed {
        padding: 6px 12px;
        gap: 6px;
    }
    .nav-control ul {
        gap: 0.3rem;
        font-size: 12px;
    }
}

@media (max-width: 749px) {
    .nav-control #download {
        display: none;
    }
    .nav-right {
        display: none;
    }
    header .container.top-nav-fixed {
        padding: 6px 12px;
        width: calc(100% - 24px);
        max-width: calc(100vw - 24px);
        gap: 5px;
    }
    header .container {
        gap: 10px;
    }
    .nav-control ul {
        gap: 0.25rem;
        font-size: 12px;
    }
}

@media (max-width: 649px) {
    .nav-control {
        display: none;
    }
    .mobile-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 10px;
        right: 10px;
        width: auto;
    }
    .mobile-nav-menu.active {
        display: flex;
    }
    header .container.top-nav-fixed {
        padding: 5px 10px;
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
        top: 8px;
    }
    header .container {
        gap: 8px;
    }
    .logo-text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    header .container.top-nav-fixed {
        padding: 5px 10px;
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
    }
    header .container {
        gap: 8px;
    }
    .nav-control ul {
        gap: 0.4rem;
        font-size: 12px;
    }
    .nav-right {
        gap: 0.3rem;
    }
    .logo-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    header {
        height: 200px;
    }
    body:not(.is-home) header {
        height: 70px;
    }
    .page-hero {
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    header {
        height: 150px;
    }
    body:not(.is-home) header {
        height: 60px;
    }
}


/* ================================================
   MODERN GAMING SHELL OVERRIDES
   ================================================ */

@media (min-width: 1200px) {
    .container {
        width: 100%;
        max-width: 1320px;
    }
}

.site-main-row {
    margin-left: -18px;
    margin-right: -18px;
}

.site-main-row > [class*="col-"] {
    padding-left: 18px;
    padding-right: 18px;
}

.page-hero {
    background: linear-gradient(160deg, rgba(16, 16, 16, 0.96), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
    padding: 28px 24px;
    margin-bottom: 24px;
}

.page-hero h1 {
    color: #ffb347;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 32px;
}

.page-hero p {
    color: #b9b9b9;
    font-size: 16px;
}

.blog-box,
.blog-post {
    background: linear-gradient(160deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.92));
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.blog-post.standard-post {
    margin-bottom: 24px;
}

/* Home news wrapper cleanup */
.blog-box {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 24px;
}

.blog-box .blog-post {
    margin-bottom: 0;
}

.blog-post .post-content h2 {
    color: #ffb347;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.post-meta {
    color: #b9b9b9;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.widget {
    background: linear-gradient(160deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.92));
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.widget .title {
    color: #ffb347;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 700;
}

.widget hr {
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.vote-notification {
    border-radius: 16px;
}

.vote-notification-text h4 {
    color: #ffb347;
}

.vote-notification-text p {
    color: #b9b9b9;
}

.vote-notification-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6a00 100%);
    border-color: #ff8c00;
}

/* ================================================
   MERCILESS MODERN THEME (BLACK / ORANGE)
   ================================================ */

:root {
    --sr-gold-light: #ffd19a;
    --sr-gold-mid: #ff9a3c;
    --sr-gold-dark: #ff7a18;
    --sr-accent-red: #ff7a18;
    --sr-bg-dark: #0b0b0d;
    --sr-bg-panel: rgba(16, 16, 20, 0.92);
    --sr-bg-translucent: rgba(6, 6, 8, 0.7);
    --sr-border-gold: rgba(255, 122, 24, 0.32);
    --sr-shadow-gold: rgba(255, 122, 24, 0.2);
    --sr-text-gold: #ffb36b;
    --sr-text-muted: #a9afbd;
    --ember-900: #0a0a0d;
    --ember-850: #0f0f13;
    --ember-800: #15151c;
    --ember-700: #1d1d26;
    --ember-600: #2a2a34;
    --ember-500: #3a3a46;
    --ember-ink: #f5f6f8;
    --ember-muted: #b7bcc8;
    --ember-accent: #ff7a18;
    --ember-accent-soft: #ff9a3c;
    --ember-accent-bright: #ffb56b;
    --ember-glow: rgba(255, 122, 24, 0.45);
}

body.header-fixed {
    background:
        radial-gradient(1200px 700px at 90% -10%, rgba(255, 122, 24, 0.22), transparent 60%),
        radial-gradient(900px 500px at 5% 0%, rgba(255, 90, 0, 0.18), transparent 55%),
        linear-gradient(180deg, #070709 0%, #0c0c10 45%, #0b0b10 100%);
    color: var(--ember-ink);
    font-family: "Space Grotesk", "Manrope", sans-serif;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 120px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

header,
section,
footer {
    position: relative;
    z-index: 1;
}

section {
    padding: 18px 0 42px;
}

body:not(.is-home) section {
    padding-top: 6px;
}

body.is-home section {
    padding-top: 0px;
}

a {
    color: var(--ember-accent);
}

a:hover,
a:focus {
    color: var(--ember-accent-bright);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Oxanium", "Space Grotesk", sans-serif;
    letter-spacing: 0.03em;
}

header .container.top-nav-fixed {
    background: rgba(7, 7, 9, 0.88);
    border: 1px solid rgba(255, 122, 24, 0.32);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

.logo-text {
    font-family: "Oxanium", "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffb56b;
    background: linear-gradient(90deg, #ffd8a8 0%, #ff9a3c 45%, #ff7a18 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-control ul li a {
    color: var(--ember-ink);
    border-radius: 999px;
    padding: 7px 14px;
    border: 1px solid transparent;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
}

/* Allow active glow to extend beyond nav container */
.nav-control,
.nav-control ul {
    overflow: visible !important;
}

.nav-control ul li a:hover,
.nav-control ul li a:focus {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 122, 24, 0.35);
    color: var(--ember-accent-bright);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.nav-control ul li.active a {
    position: relative;
    z-index: 0;
    color: #0b0b0d;
    background: linear-gradient(135deg, #ffb56b 0%, #ff7a18 100%);
    border-color: rgba(255, 122, 24, 0.65);
    box-shadow: 0 10px 24px rgba(255, 122, 24, 0.35);
}


.nav-control ul li.active a::after {
    content: "";
    position: absolute;
    inset: -8px -12px;
    background: radial-gradient(circle, rgba(255, 122, 24, 0.6) 0%, rgba(255, 122, 24, 0.15) 45%, transparent 70%);
    filter: blur(10px);
    opacity: 0.85;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.nav-right a {
    color: var(--ember-ink);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 24, 0.2);
    background: rgba(12, 12, 16, 0.6);
    transition: all 0.2s ease;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-right a:hover {
    border-color: rgba(255, 122, 24, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: var(--ember-accent-bright);
}

.nav-user-info .user-welcome strong {
    color: var(--ember-accent-bright);
}

.nav-user-info .user-silk {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.16) 0%, rgba(255, 154, 60, 0.1) 100%);
    border: 1px solid rgba(255, 122, 24, 0.35);
    color: var(--ember-accent-bright);
}

.nav-profile > a.dropdown-toggle i.fa {
    color: var(--ember-accent);
}

header .container.top-nav-fixed .nav-profile .dropdown-menu {
    background: rgba(10, 10, 12, 0.98);
    border: 1px solid rgba(255, 122, 24, 0.3);
}

header .container.top-nav-fixed .nav-profile .dropdown-menu > li > a:hover {
    background: rgba(255, 122, 24, 0.12);
    color: var(--ember-accent-bright) !important;
}

.mobile-nav-menu {
    background: rgba(10, 10, 12, 0.98);
    border: 1px solid rgba(255, 122, 24, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.mobile-nav-menu a {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.page-hero {
    background:
        radial-gradient(120% 140% at 20% 0%, rgba(255, 122, 24, 0.2), transparent 60%),
        linear-gradient(160deg, rgba(18, 18, 22, 0.96), rgba(10, 10, 14, 0.92));
    border: 1px solid rgba(255, 122, 24, 0.35);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 32px 28px;
}

.page-hero h1 {
    font-size: 34px;
    color: var(--ember-accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.page-hero p {
    color: var(--ember-muted);
    font-size: 16px;
}

.blog-post,
.widget,
.download-box,
.info-panel,
.content-page,
.ranking-table,
.events-list,
.down-block {
    background: linear-gradient(160deg, rgba(18, 18, 22, 0.96), rgba(10, 10, 14, 0.92));
    border: 1px solid rgba(255, 122, 24, 0.28);
    border-radius: 18px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blog-post::before,
.widget::before,
.download-box::before,
.info-panel::before,
.content-page::before,
.ranking-table::before,
.events-list::before,
.down-block::before {
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.95) 0%, rgba(255, 181, 107, 0.7) 50%, rgba(255, 122, 24, 0.4) 100%);
}

.blog-post .post-content h2 {
    color: var(--ember-accent-bright);
    font-size: 22px;
    letter-spacing: 0.05em;
}

/* Modern typography overrides (reduce ornate Cinzel look) */
.blog-post .post-content h2,
.widget .title,
.page-hero h1,
.page-hero p,
.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4,
.content-page h5,
.info-panel h3,
.info-panel h4,
.info-panel h5,
.download-box h4,
.classic-title span,
.events-title,
.ranking-table thead tr.main-tr th,
.table > thead > tr > th {
    font-family: "Oxanium", "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: 0.08em;
}

.blog-post .post-content h2,
.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4,
.content-page h5,
.info-panel h3,
.info-panel h4,
.info-panel h5,
.events-title,
.classic-title span,
.download-box h4 {
    text-transform: uppercase;
    font-weight: 700;
}

.page-hero p,
.content-page p,
.content-page ul,
.content-page ol,
.widget p,
.blog-post .post-content p {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: 0.01em;
}

/* Remove decorative diamond markers from legacy theme */
.blog-post .post-content h2::before,
.widget .title::before,
.content-page h2::before,
.content-page h3::before,
.info-panel h3::before,
.info-panel h4::before,
.classic-title span::before {
    content: none !important;
}

/* Softer modern weight for widget titles */
.widget .title {
    font-size: 12px;
    font-weight: 600;
}

/* Layout spacing */
.site-main,
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.content-shell {
    width: 100%;
}

.content-shell--wide {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Donate page width override */
.donate-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .content-shell--wide {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

/* Card polish */
.blog-post,
.widget,
.download-box,
.info-panel,
.content-page,
.down-block,
.events-list,
.ranking-table {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover,
.widget:hover,
.download-box:hover,
.info-panel:hover,
.content-page:hover,
.down-block:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.blog-post,
.info-panel,
.content-page,
.download-box,
.down-block {
    padding: 24px 26px;
}

.blog-post.standard-post {
    margin-bottom: 0;
}

.blog-post::after,
.widget::after,
.download-box::after,
.info-panel::after,
.content-page::after,
.down-block::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    border: 1px solid rgba(255, 122, 24, 0.08);
    pointer-events: none;
}

.page-hero {
    position: relative;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 100% at 85% 0%, rgba(255, 122, 24, 0.2), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

/* Modern ranking menu + search */
.ranking-menu-btn {
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 122, 24, 0.18);
    color: var(--ember-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 12px;
}

.ranking-menu-btn:hover {
    background: rgba(255, 122, 24, 0.08);
    border-color: rgba(255, 122, 24, 0.4);
}

.ranking-menu-btn.active {
    background: linear-gradient(135deg, #ffb56b 0%, #ff7a18 100%);
    border-color: rgba(255, 122, 24, 0.8);
    color: #0b0b0d;
}

.ranking-menu-icon {
    color: var(--ember-accent);
    margin-right: 6px;
}

#searchForm .form-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.ranking-search-input {
    flex: 1;
    min-width: 0;
}

.ranking-table {
    color: var(--ember-ink);
}

.ranking-name {
    color: var(--ember-accent-bright);
    font-weight: 700;
}

.ranking-points {
    color: var(--ember-accent-bright);
    font-weight: 700;
}

.muted-text {
    color: var(--ember-muted);
}

.sort-link {
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 122, 24, 0.25);
    color: var(--ember-accent-bright);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
}

.sort-link:hover {
    background: rgba(255, 122, 24, 0.12);
}

.sort-link.active {
    background: linear-gradient(135deg, #ffb56b 0%, #ff7a18 100%);
    border-color: rgba(255, 122, 24, 0.8);
    color: #0b0b0d;
}

.hidden {
    display: none !important;
}

/* Events list polish */
.events-title {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 14px;
}

.events-list {
    padding: 14px;
}

.events-header {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    background: rgba(255, 122, 24, 0.08);
    border-radius: 12px;
}

.event-row {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 122, 24, 0.12);
    background: rgba(10, 10, 14, 0.7);
}

.event-row:hover {
    background: rgba(255, 122, 24, 0.08);
}

.status-badge {
    border-radius: 999px;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #7dffb2;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-inactive {
    background: rgba(148, 163, 184, 0.12);
    color: #d0d5dd;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* System requirements title */
.classic-title {
    background: rgba(12, 12, 16, 0.9);
    border: 1px solid rgba(255, 122, 24, 0.35);
    border-radius: 14px;
    padding: 14px 22px;
}

@media (prefers-reduced-motion: reduce) {
    .blog-post,
    .widget,
    .download-box,
    .info-panel,
    .content-page,
    .down-block {
        transition: none;
    }
}

.post-meta {
    color: var(--ember-muted);
}

.widget .title {
    background: rgba(10, 10, 12, 0.95);
    color: var(--ember-accent-bright);
    font-family: "Oxanium", "Space Grotesk", sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border-bottom: 1px solid rgba(255, 122, 24, 0.25);
}

/* Sidebar stats modernization */
.widget--stats {
    padding: 18px;
}

.widget--stats .title {
    margin: -18px -18px 16px;
    padding: 16px 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card {
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 122, 24, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-label {
    color: var(--ember-muted);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stat-value {
    color: var(--ember-accent-bright);
    font-weight: 700;
    font-size: 18px;
    margin-top: 6px;
}

.stat-value span {
    color: var(--ember-muted);
    font-size: 12px;
    margin-left: 6px;
    font-weight: 600;
}

.stat-meta {
    color: var(--ember-muted);
    font-size: 11px;
    margin-top: 6px;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}

.stat-bar__fill {
    height: 100%;
    background: linear-gradient(135deg, #ffb56b 0%, #ff7a18 100%);
    box-shadow: 0 0 12px rgba(255, 122, 24, 0.4);
}

.stats-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.stats-list__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: rgba(12, 12, 16, 0.7);
    border: 1px solid rgba(255, 122, 24, 0.15);
    border-radius: 12px;
}

.stats-list__item i {
    color: var(--ember-accent);
    font-size: 14px;
    margin-top: 2px;
}

.stats-list__label {
    color: var(--ember-ink);
    font-size: 12px;
    font-weight: 600;
}

.stats-list__value {
    color: var(--ember-muted);
    font-size: 11px;
    margin-top: 4px;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar widgets polish */
.site-sidebar .widget > hr {
    display: none;
}

.site-sidebar .widget > p,
.site-sidebar .widget > ul,
.site-sidebar .widget > div:not(.title),
.site-sidebar .widget > iframe {
    padding-left: 18px;
    padding-right: 18px;
}

.site-sidebar .widget > p:first-of-type,
.site-sidebar .widget > ul:first-of-type,
.site-sidebar .widget > div:not(.title):first-of-type {
    padding-top: 16px;
}

.site-sidebar .widget > p:last-child,
.site-sidebar .widget > ul:last-child,
.site-sidebar .widget > div:not(.title):last-child {
    padding-bottom: 18px;
}

.site-sidebar .widget ul.list-unstyled li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 122, 24, 0.12);
}

.site-sidebar .widget ul.list-unstyled li:last-child {
    border-bottom: none;
}

.site-sidebar .widget strong {
    color: var(--ember-ink);
}

.site-sidebar .widget p {
    color: var(--ember-muted);
}

.widget--servertime .timerCountdown,
.widget--servertime #idTimerClock {
    color: var(--ember-accent-bright) !important;
    font-weight: 600;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 18px 18px;
}

.time-card {
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 122, 24, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
}

.time-card--main {
    grid-column: span 2;
}

.time-label {
    color: var(--ember-muted);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.time-value {
    color: var(--ember-accent-bright);
    font-weight: 700;
    font-size: 14px;
    margin-top: 6px;
}

.time-value--muted {
    color: var(--ember-muted);
    font-weight: 600;
}

@media (max-width: 991px) {
    .time-grid {
        grid-template-columns: 1fr;
    }
    .time-card--main {
        grid-column: auto;
    }
}

.widget--fortress span,
.widget--kills span {
    color: var(--ember-muted) !important;
}

.widget--discord {
    padding-bottom: 8px;
}

.discord-embed {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 122, 24, 0.2);
    overflow: hidden;
}

.widget hr {
    border-top: 1px solid rgba(255, 122, 24, 0.2);
}

.btn {
    background: linear-gradient(135deg, #ff7a18 0%, #ff9a3c 100%);
    border: 1px solid rgba(255, 122, 24, 0.6);
    color: #0b0b0d;
    font-size: 13px;
    padding: 11px 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 12px;
    box-shadow:
        0 6px 18px rgba(255, 122, 24, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn:hover {
    background: linear-gradient(135deg, #ffb56b 0%, #ff7a18 100%);
    border-color: rgba(255, 122, 24, 0.8);
    color: #0b0b0d;
    transform: translateY(-2px);
    box-shadow:
        0 10px 26px rgba(255, 122, 24, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:focus,
.btn:active:focus {
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.25);
}

.form-control,
select,
textarea {
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid rgba(255, 122, 24, 0.25);
    color: var(--ember-ink);
    border-radius: 10px;
}

.form-control:focus,
select:focus,
textarea:focus {
    border-color: var(--ember-accent);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.2);
}

/* Keep modal form text readable before typing/submit across all pages */
.modal .form-control,
.modal input[type="text"],
.modal input[type="password"],
.modal input[type="email"],
.modal input[type="number"],
.modal input[type="search"],
.modal textarea,
.modal select {
    background-color: rgba(14, 14, 18, 0.95) !important;
    background-image: none !important;
    color: #f5f6f8 !important;
    -webkit-text-fill-color: #f5f6f8 !important;
    caret-color: #f5f6f8;
}

.modal .form-control::placeholder,
.modal input::placeholder,
.modal textarea::placeholder {
    color: #c6ced8 !important;
    opacity: 1;
}

.modal .form-control:-webkit-autofill,
.modal input:-webkit-autofill,
.modal textarea:-webkit-autofill,
.modal select:-webkit-autofill {
    -webkit-text-fill-color: #f5f6f8 !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(14, 14, 18, 0.95) inset !important;
    box-shadow: 0 0 0 1000px rgba(14, 14, 18, 0.95) inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.table,
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(18, 18, 22, 0.85);
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(12, 12, 16, 0.7);
}

.table > thead > tr > th {
    background: rgba(10, 10, 12, 0.9);
    color: var(--ember-accent-bright);
    border-bottom: 1px solid rgba(255, 122, 24, 0.35);
}

.ranking-table td {
    border-bottom: 1px solid rgba(255, 122, 24, 0.12);
}

.pagination li a,
.pagination > .disabled > span,
.pagination > .disabled > a {
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid rgba(255, 122, 24, 0.28);
    color: var(--ember-accent-bright);
}

.pagination li a:hover,
.pagination li.active a,
.pagination li.active a:hover {
    background: linear-gradient(135deg, #ff7a18 0%, #ff9a3c 100%);
    color: #0b0b0d;
    border-color: rgba(255, 122, 24, 0.65);
}

.vote-notification {
    background: linear-gradient(135deg, rgba(18, 18, 22, 0.98) 0%, rgba(28, 20, 16, 0.94) 50%, rgba(18, 18, 22, 0.98) 100%);
    border-radius: 18px;
}

.vote-notification-text h4 {
    color: var(--ember-accent-bright);
}

.vote-notification-btn {
    background: linear-gradient(135deg, #ff7a18 0%, #ff9a3c 100%);
    border-color: rgba(255, 122, 24, 0.7);
}

footer {
    background: linear-gradient(180deg, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, 0.88) 100%);
    border-top: 1px solid rgba(255, 122, 24, 0.25);
}

.footer-sponsors {
    border-bottom: 1px solid rgba(255, 122, 24, 0.25);
    border-top: 1px solid rgba(255, 122, 24, 0.1);
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.5) 0%, transparent 100%);
}

.sponsor-link {
    border: 1px solid rgba(255, 122, 24, 0.28);
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 26px;
        letter-spacing: 0.12em;
    }
}

/* ================================================
   QUILL WYSIWYG EDITOR - ALIGNMENT CLASSES
   ================================================ */

/* Quill editor text alignment classes - Global */
.ql-align-left {
    text-align: left !important;
}

.ql-align-center {
    text-align: center !important;
}

.ql-align-right {
    text-align: right !important;
}

.ql-align-justify {
    text-align: justify !important;
}

/* Support inline style alignment */
p[style*="text-align: left"],
div[style*="text-align: left"],
span[style*="text-align: left"],
h1[style*="text-align: left"],
h2[style*="text-align: left"],
h3[style*="text-align: left"],
h4[style*="text-align: left"],
h5[style*="text-align: left"],
h6[style*="text-align: left"] {
    text-align: left !important;
}

p[style*="text-align: center"],
div[style*="text-align: center"],
span[style*="text-align: center"],
h1[style*="text-align: center"],
h2[style*="text-align: center"],
h3[style*="text-align: center"],
h4[style*="text-align: center"],
h5[style*="text-align: center"],
h6[style*="text-align: center"] {
    text-align: center !important;
}

p[style*="text-align: right"],
div[style*="text-align: right"],
span[style*="text-align: right"],
h1[style*="text-align: right"],
h2[style*="text-align: right"],
h3[style*="text-align: right"],
h4[style*="text-align: right"],
h5[style*="text-align: right"],
h6[style*="text-align: right"] {
    text-align: right !important;
}

p[style*="text-align: justify"],
div[style*="text-align: justify"],
span[style*="text-align: justify"] {
    text-align: justify !important;
}

/* Support for alignment in various content areas */
.post-content .ql-align-left,
.blog-post .ql-align-left,
.content-shell .ql-align-left,
.info-panel .ql-align-left {
    text-align: left !important;
}

.post-content .ql-align-center,
.blog-post .ql-align-center,
.content-shell .ql-align-center,
.info-panel .ql-align-center {
    text-align: center !important;
}

.post-content .ql-align-right,
.blog-post .ql-align-right,
.content-shell .ql-align-right,
.info-panel .ql-align-right {
    text-align: right !important;
}

.post-content .ql-align-justify,
.blog-post .ql-align-justify,
.content-shell .ql-align-justify,
.info-panel .ql-align-justify {
    text-align: justify !important;
}

/* ================================================
   QUILL WYSIWYG EDITOR - INDENT CLASSES
   ================================================ */

/* Quill editor indent classes - Global */
.ql-indent-1 {
    padding-left: 3em !important;
}

.ql-indent-2 {
    padding-left: 6em !important;
}

.ql-indent-3 {
    padding-left: 9em !important;
}

.ql-indent-4 {
    padding-left: 12em !important;
}

.ql-indent-5 {
    padding-left: 15em !important;
}

.ql-indent-6 {
    padding-left: 18em !important;
}

.ql-indent-7 {
    padding-left: 21em !important;
}

.ql-indent-8 {
    padding-left: 24em !important;
}

/* Support for indent in various content areas */
.post-content .ql-indent-1,
.blog-post .ql-indent-1,
.content-shell .ql-indent-1,
.info-panel .ql-indent-1 {
    padding-left: 3em !important;
}

.post-content .ql-indent-2,
.blog-post .ql-indent-2,
.content-shell .ql-indent-2,
.info-panel .ql-indent-2 {
    padding-left: 6em !important;
}

.post-content .ql-indent-3,
.blog-post .ql-indent-3,
.content-shell .ql-indent-3,
.info-panel .ql-indent-3 {
    padding-left: 9em !important;
}

.post-content .ql-indent-4,
.blog-post .ql-indent-4,
.content-shell .ql-indent-4,
.info-panel .ql-indent-4 {
    padding-left: 12em !important;
}

.post-content .ql-indent-5,
.blog-post .ql-indent-5,
.content-shell .ql-indent-5,
.info-panel .ql-indent-5 {
    padding-left: 15em !important;
}

.post-content .ql-indent-6,
.blog-post .ql-indent-6,
.content-shell .ql-indent-6,
.info-panel .ql-indent-6 {
    padding-left: 18em !important;
}

.post-content .ql-indent-7,
.blog-post .ql-indent-7,
.content-shell .ql-indent-7,
.info-panel .ql-indent-7 {
    padding-left: 21em !important;
}

.post-content .ql-indent-8,
.blog-post .ql-indent-8,
.content-shell .ql-indent-8,
.info-panel .ql-indent-8 {
    padding-left: 24em !important;
}

/* Sitewide notice bar */
.site-notice {
    position: relative;
    z-index: 2;
    margin: 0 0 10px 0;
}

.site-notice__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-notice__badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.site-notice__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    white-space: nowrap;
}

.site-notice__message {
    font-size: 14px;
    line-height: 1.35;
}

.site-notice__inner i {
    opacity: 1;
}

.site-notice--warning {
    color: #ffe0ad;
}

.site-notice--warning .site-notice__inner {
    background: linear-gradient(135deg, rgba(168, 91, 0, 0.55), rgba(255, 140, 0, 0.4));
    border-color: rgba(255, 185, 78, 0.6);
}

.site-notice--info {
    color: #d5f0ff;
}

.site-notice--info .site-notice__inner {
    background: linear-gradient(135deg, rgba(0, 86, 138, 0.55), rgba(0, 153, 255, 0.4));
    border-color: rgba(120, 205, 255, 0.6);
}

.site-notice--success {
    color: #d9ffe5;
}

.site-notice--success .site-notice__inner {
    background: linear-gradient(135deg, rgba(20, 110, 50, 0.55), rgba(60, 190, 100, 0.4));
    border-color: rgba(125, 235, 155, 0.6);
}

.site-notice--danger {
    color: #ffe0e3;
}

.site-notice--danger .site-notice__inner {
    background: linear-gradient(135deg, rgba(150, 30, 35, 0.55), rgba(230, 60, 70, 0.4));
    border-color: rgba(255, 135, 145, 0.6);
}

@media (max-width: 768px) {
    .site-notice__inner {
        gap: 10px;
        padding: 10px 12px;
    }

    .site-notice__label {
        display: none;
    }
}
