body.classic97-body {
    padding-top: 104px;
    background-color: #f4f6f8 !important;
}

.classic-navbar.navbar {
    top: 32px;
    background: #111 !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.28);
    z-index: 1030;
    min-height: 72px;
}

.classic-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #fff !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.classic-navbar .navbar-brand img {
    max-height: 42px;
    width: auto;
}

.classic-navbar .navbar-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
}

.classic-navbar .navbar-nav > li {
    display: flex;
    align-items: center;
}

.classic-navbar .navbar-nav > li > a {
    display: inline-block;
    color: #d4d4d4 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    margin: 0 10px;
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.18s ease;
    transform: scale(1);
    transform-origin: center center;
}

.classic-navbar .navbar-nav > li > a:hover,
.classic-navbar .navbar-nav > li > a:focus,
.classic-navbar .navbar-nav > li > a:active,
.classic-navbar .navbar-nav > li.active > a,
.classic-navbar .navbar-nav > li.active > a:hover,
.classic-navbar .navbar-nav > li.active > a:focus {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow:
        0 0 6px rgba(255,255,255,0.99),
        0 0 12px rgba(255,255,255,0.66),
        0 0 20px rgba(255,255,255,0.33);
    transform: scale(1.08);
}

.classic-navbar .navbar-nav > li > a,
.classic-navbar .navbar-nav > li > a:focus,
.classic-navbar .navbar-nav > li > a:active,
.classic-navbar .navbar-nav > li > a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent;
}

.classic-navbar .navbar-nav > li.active,
.classic-navbar .navbar-nav > li.active > a {
    background: transparent !important;
    box-shadow: none !important;
}

.classic-navbar .navbar-toggle {
    margin-top: 20px;
    border-color: #444;
}

.classic-navbar .navbar-toggle .icon-bar {
    background: #fff;
}

.classic-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    background: #050505;
    color: #999;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    line-height: 1;
}

.classic-topbar a {
    color: #d8d8d8 !important;
}

.classic-topbar .topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 20px;
}

.classic-topbar .topbar-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1045;
}

.classic-topbar .webengine-language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 20px;
    overflow: hidden;
    white-space: nowrap;
}

.classic-topbar .webengine-language-switcher:hover {
    width: auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
}

.classic-topbar .webengine-language-switcher > li {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    height: 20px;
}

.classic-topbar .webengine-language-switcher > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    line-height: 20px;
    padding: 0 4px;
    white-space: nowrap;
    text-decoration: none;
    background: #050505;
    box-sizing: border-box;
}

.classic-topbar .webengine-language-switcher > li > a img {
    display: block;
    width: 16px;
    height: 11px;
    flex: 0 0 auto;
}

.classic-topbar .topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.classic-topbar .time-block {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    margin-left: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.classic-topbar .time-label {
    color: #bcbcbc;
}

.classic-topbar .time-value {
    display: inline-block;
    width: 8ch;
    text-align: left;
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0;
}

.classic-topbar .time-date {
    display: inline-block;
    width: 10ch;
    text-align: left;
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0;
}

.classic-topbar .topbar-account-links {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 8px;
    margin-left: 2px;
    flex: 0 0 auto;
}

.classic-topbar .topbar-separator {
    color: #777;
}

.classic-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    padding: 24px;
}

.hero-actions {
    margin-bottom: 24px;
}

.classic-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .8px;
    margin-right: 12px;
}

.classic-btn.primary {
    background: #000;
    color: #fff !important;
}

.classic-btn.secondary {
    background: #fff;
    color: #111 !important;
    border: 1px solid #ddd;
}

.hero-quick-card {
    max-width: 420px;
    margin: 0 auto 25px auto;
    text-align: left;
}

.hero-quick-card .panel-title,
.hero-quick-card h3 {
    margin-top: 0;
}

.quick-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-link-list li {
    border-bottom: 1px solid #f0f0f0;
}

.quick-link-list li:last-child {
    border-bottom: none;
}

.quick-link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #444 !important;
    font-weight: 600;
}

.quick-link-list a:hover {
    color: #000 !important;
    padding-left: 4px;
}

.hero-image-frame {
    position: relative;
    left: 100px;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    display: inline-block;
    box-shadow: none;
}

.hero-image-frame img,
.hero-image-frame .hero-img {
    display: block;
    max-width: 51%;
    height: auto;
    background: transparent !important;
    box-shadow: none;
    border-radius: 0;
}

.server-status-widget {
    width: 545px;
    max-width: 100%;
    min-height: 261px;
    height: 261px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    left: 0px;
    top: -4px;
}

.server-status-widget .widget-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
}

.server-status-widget .status-label {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.2px;
}

.server-status-widget .status-label.off {
    color: #ff4d4d;
    -webkit-text-fill-color: #ff4d4d;
    text-shadow:
        0 0 1px rgba(255,255,255,0.25),
        0 0 6px rgba(255,77,77,0.55),
        0 0 14px rgba(255,77,77,0.28);
}

.server-status-widget .status-label.on {
    color: #39d353;
    -webkit-text-fill-color: #39d353;
    text-shadow:
        0 0 1px rgba(255,255,255,0.20),
        0 0 6px rgba(57,211,83,0.50),
        0 0 14px rgba(57,211,83,0.26);
}

.server-status-widget .progress-track {
    display: block !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    background: #e9edf1;
    overflow: hidden;
}

.server-status-widget .progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #24c96b 0%, #5ee89b 100%);
}

.server-status-widget .online-count {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #4b4f56;
}

.hero-quick-card.classic-card {
    width: 100%;
    max-width: 420px;
    min-height: 261px;
    height: 261px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-quick-card .panel.panel-sidebar {
    height: 100%;
    margin-bottom: 0;
}

.hero-quick-card .panel-body {
    padding-bottom: 18px;
}

.mini-stats-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    margin-left: -5px;
    margin-right: -5px;
    padding-top: 12px;
}

.mini-stat {
    width: 50%;
    min-height: 46px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 0 6px 0;
    border-left-width: 1px;
}

.mini-stat .label {
    display: block;
    width: 100%;
    padding: 0;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .7px;
    line-height: 1.1;
    text-align: center;
}

.mini-stat .value {
    display: block;
    width: 100%;
    margin-top: 4px;
    color: #111;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.1;
    text-align: center;
}

.mini-stats-grid .mini-stat-inner {
    width: 100%;
}

.mini-stats-grid > .mini-stat {
    width: calc(50% - 10px);
    margin-left: 5px;
    margin-right: 5px;
}

.news-item-link {
    box-shadow: none;
}

.rank-card .r-guild-logo svg,
.rank-card .r-guild-logo table {
    margin: 0 auto;
}

.event-schedule-card .event-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f3f3;
}

.event-schedule-card .event-row:last-child {
    border-bottom: none;
}

.event-schedule-card .event-meta {
    color: #888;
    font-size: 12px;
}

.event-schedule-card .event-name {
    font-weight: 700;
    color: #222;
}

.event-schedule-card .event-status {
    text-align: right;
    font-weight: 600;
    color: #111;
    font-size: 13px;
}

.event-schedule-card .event-status .smalltext {
    color: #888;
    font-size: 11px;
}

.content-box-clean {
    overflow: hidden;
}

.content-box-clean .page-title {
    margin: -40px -40px 30px -40px;
    padding: 24px 30px;
    background: #111;
    color: #fff;
}

.content-box-clean .page-title span {
    font-family: 'Cinzel', serif;
    letter-spacing: .6px;
}

.content-box-clean .panel {
    border-color: #ececec;
    box-shadow: none;
}

.content-box-clean .panel-heading {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
}

.content-box-clean .panel-title,
.content-box-clean .panel-heading h3,
.content-box-clean .panel-heading a {
    color: #fff !important;
}

.content-box-clean .table > thead > tr > th {
    background: #111;
    color: #fff;
    border-bottom: none;
}

.content-box-clean .btn-primary {
    background: #000;
    border-color: #000;
}

.content-box-clean .btn-primary:hover,
.content-box-clean .btn-primary:focus {
    background: #222;
    border-color: #222;
}

.classic-sidebar-col .panel.panel-sidebar,
.hero-quick-card .panel.panel-sidebar {
    border: 1px solid #ececec;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.classic-sidebar-col .panel-heading,
.hero-quick-card .panel-heading {
    background: #000 !important;
    border-color: #000 !important;
}

.classic-sidebar-col .panel-title,
.hero-quick-card .panel-title,
.classic-sidebar-col .panel-title a,
.hero-quick-card .panel-title a {
    color: #fff !important;
}

.classic-sidebar-col .sidebar-banner img,
.hero-quick-card .sidebar-banner img {
    width: 100%;
    border-radius: 8px;
}

.footer-main a {
    color: inherit;
}

.footer-main .footer-bottom a {
    color: #d5d5d5;
}

.usercp-layout {
    margin-top: 20px;
}

.usercp-layout .classic-sidebar-col {
    margin-top: 0;
}

.hero-container .hero-header h1.title-main {
    --hero-title-glow-rgb: 255,255,255;
    --hero-title-glow-soft: 0.70;
    --hero-title-glow-mid: 0.38;
    --hero-title-glow-strong: 0.18;
    text-transform: none !important;
    margin: 0 0 22px 0;
    line-height: 1;
}

.hero-container .hero-header h1.title-main .title-main-line1,
.hero-container .hero-header h1.title-main .title-main-line2 {
    display: block;
    font-family: 'Poppins', sans-serif !important;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow:
        0 0 1px rgba(255,255,255,0.95),
        0 0 6px rgba(255,255,255,0.70),
        0 0 12px rgba(255,255,255,0.38),
        0 0 22px rgba(255,255,255,0.18);
}

.hero-container .hero-header h1.title-main .title-main-line1 {
    font-weight: 600;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.2px;
    margin-bottom: 8px;
    text-transform: none !important;
}

.hero-container .hero-header h1.title-main .title-main-line2 {
    font-weight: 800;
    font-size: 62px;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: none !important;
}

.hero-container .hero-header .description-text {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.75;
    letter-spacing: 0.1px;
    color: rgba(255,255,255,0.74);
    margin: 0;
    max-width: 720px;
}

.hero-side-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-quick-card.classic-card,
.hero-events-card {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.hero-events-card {
    margin: 63px auto 0 auto;
}

.hero-events-card .rank-card.event-schedule-card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.latest-news-widget {
    width: 545px;
    max-width: 100%;
}

.latest-news-widget .classic-card {
    width: 100%;
    box-sizing: border-box;
}

.rankings-original-preview {
    position: relative;
    margin-bottom: 18px;
    max-height: 205px;
    overflow: hidden;
}

.rankings-original-preview .page-title {
    display: none;
}

.rankings-original-preview::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 85%);
    pointer-events: none;
}

.rankings-original-preview .rankings-resumen-link,
.rankings-original-preview .rankings-resumen-link a {
    text-decoration: none !important;
}

.rankings-default-page {
    padding-top: 0;
    margin-bottom: 30px;
}

.rankings-default-page .rank-main-title {
    margin-bottom: 10px;
}

.rankings-default-page .rank-subtitle {
    margin-bottom: 30px;
}

.rankings-default-page .rank-card {
    margin-bottom: 20px;
}

.rankings-original-module {
    margin-top: 0;
}

@media (max-width: 991px) {
    body.classic97-body {
        padding-top: 70px;
    }

    .classic-topbar {
        position: relative;
        z-index: auto;
    }

    .classic-topbar .topbar-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .classic-topbar .topbar-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-left: 0;
    }

    .classic-topbar .topbar-account-links {
        margin-left: 0;
    }

    .classic-navbar.navbar {
        top: 0;
    }

    .hero-container .hero-header h1.title-main .title-main-line1 {
        font-size: 34px;
    }

    .hero-container .hero-header h1.title-main .title-main-line2 {
        font-size: 46px;
    }

    .hero-container .hero-header .description-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .mini-stat,
    .mini-stats-grid > .mini-stat {
        width: calc(100% - 10px);
    }

    .server-status-widget,
    .latest-news-widget,
    .hero-quick-card.classic-card,
    .hero-events-card {
        width: 100%;
        max-width: 100%;
    }

    .hero-events-card {
        margin-top: 25px;
    }
}
