:root {
    --bg-main: #070506;
    --bg-deep: #12090a;
    --panel-dark: rgba(16, 11, 12, 0.96);
    --panel-darker: rgba(9, 7, 8, 1);
    --panel-soft: rgba(22, 11, 12, 0.94);
    --maroon: #5c1c27;
    --maroon-soft: #7a2a35;
    --rose: #c76a60;
    --gold: #d8b16d;
    --gold-soft: #e8c991;
    --text-main: #f6efe8;
    --text-soft: #cdbeb4;
    --text-dim: #998882;
    --shadow: 0 10px 22px rgba(0,0,0,0.24);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all .24s ease;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.ambient-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(216,177,109,0.035), transparent 24%),
        radial-gradient(circle at 80% 100%, rgba(199,106,96,0.05), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
}
.spark {
    position: absolute;
    bottom: -20px;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: radial-gradient(circle, #e8c991 0%, #c76a60 55%, rgba(199,106,96,0) 100%);
    box-shadow: 0 0 5px rgba(232,201,145,0.55), 0 0 8px rgba(199,106,96,0.24);
    opacity: 0.7;
    animation: sparkRise linear infinite;
}
.spark.small { width: 2px; height: 2px; }
.spark.medium { width: 3px; height: 3px; }
.spark.large { width: 4px; height: 4px; }

@keyframes sparkRise {
    0% { transform: translate3d(0, 18px, 0) scale(0.6); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate3d(var(--spark-drift, 0px), -110vh, 0) scale(1.04); opacity: 0; }
}

.wrapper, .content-area, .container, .topPanel-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 116px;
    padding-bottom: 14px;
    width: 100%;
    overflow-x: hidden;
}

.rf-container {
    width: 82%;
    max-width: 1340px;
    margin: 0 auto !important;
    padding: 0 8px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.row, .row-compact {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7px !important;
    margin-right: -7px !important;
}

.row > [class*="col-"], .row-compact > [class*="col-"] {
    padding-left: 7px !important;
    padding-right: 7px !important;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .col-md-3 { width: 25% !important; flex: 0 0 25%; max-width: 25%; }
    .col-md-6 { width: 50% !important; flex: 0 0 50%; max-width: 50%; }
    .col-md-12 { width: 100% !important; flex: 0 0 100%; max-width: 100%; }
}

.home-column { margin-bottom: 4px; }

.rf-logo-wrapper {
    margin-top: 70px;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    z-index: 10;
}
.rf-logo-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216,177,109,0.10) 0%, rgba(0,0,0,0) 72%);
    filter: blur(24px);
    z-index: -1;
}
.rf-logo-img {
    max-width: 88%;
    width: clamp(175px, 24vw, 265px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 14px rgba(0,0,0,0.72));
    transition: transform .24s ease;
}
.rf-logo-img:hover { transform: scale(1.015); }

/* =========================
   PREMIUM PANEL HEADER + BODY
========================= */
.rf-panel-header,
.section-header-large {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(126,42,54,0.98) 0%, rgba(66,20,27,0.98) 38%, rgba(16,9,10,1) 100%);
    border: 1px solid rgba(216,177,109,0.24);
    color: #fff7ed;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 8px 18px rgba(0,0,0,0.22);
    text-shadow: 0 0 10px rgba(216,177,109,0.14);
}

.rf-panel-header::before,
.section-header-large::before {
    content: "";
    position: absolute;
    top: 0;
    left: -38%;
    width: 42%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255,255,255,0.02) 35%,
        rgba(232,201,145,0.16) 50%,
        rgba(255,255,255,0.03) 65%,
        transparent 100%
    );
    transform: skewX(-24deg);
    pointer-events: none;
}

.rf-panel-header {
    border-bottom: none;
    text-align: center;
    padding: 11px 14px;
    font-size: 10px;
    letter-spacing: 1.8px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.section-header-large {
    border-radius: var(--radius);
    padding: 11px 14px !important;
    font-size: 11px !important;
    letter-spacing: 1.5px;
}

.section-header-left { text-align: left !important; }

.rf-panel-header::after,
.section-header-large::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(199,106,96,0.68) 18%,
        rgba(216,177,109,1) 50%,
        rgba(199,106,96,0.68) 82%,
        transparent 100%
    );
}

.rf-panel-header:hover,
.section-header-large:hover {
    border-color: rgba(232,201,145,0.34);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 12px 24px rgba(0,0,0,0.28);
}

.rf-panel-header span,
.section-header-large span {
    position: relative;
    z-index: 2;
}

.rf-panel-body {
    position: relative;
    background:
        linear-gradient(180deg, rgba(24,12,13,0.97) 0%, rgba(12,8,9,1) 100%);
    border: 1px solid rgba(255,255,255,0.04);
    border-top: 1px solid rgba(216,177,109,0.08);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 10px;
    margin-bottom: 8px;
    color: var(--text-main);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.02);
    transition: var(--transition);
}
.rf-panel-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(216,177,109,0.35),
        transparent
    );
}
.rf-panel-body:hover {
    border-color: rgba(216,177,109,0.12);
    box-shadow:
        0 14px 26px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.025);
}

.widget-shell { padding: 0; overflow: hidden; }
.discord-shell { padding: 9px; }
.page-panel-body { min-height: 480px; }
.page-alert { margin-top: 34px; }

.top-alert {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(50, 15, 18, 0.92), rgba(18, 8, 10, 0.96));
    border: 1px solid rgba(216,177,109,0.08);
    color: #f1dfbc;
    padding: 8px 10px;
    margin-bottom: 7px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.top-alert::after {
    content: "";
    position: absolute;
    inset: auto 8px 0 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rose), var(--gold), transparent);
}
.top-alert-track {
    display: inline-block;
    white-space: nowrap;
    font-weight: 700;
    font-size: 9px;
    animation: tickerMove 22s linear infinite;
    padding-left: 100%;
}
.top-alert:hover .top-alert-track { animation-play-state: paused; }

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.rf-slider-wrap {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(216,177,109,0.10);
    background: rgba(10, 8, 10, 0.94);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
    margin-bottom: 7px;
}
.rf-slider-wrap .carousel-inner,
.rf-slider-wrap .item,
.rf-slider-wrap img { border-radius: 14px; }

.main-slider-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.rf-slider-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 12px 10px;
    background: linear-gradient(to top, rgba(15,7,9,0.86), rgba(0,0,0,0.0));
    z-index: 2;
    pointer-events: none;
}
.rf-slider-overlay h2 {
    margin: 0;
    color: #fff4e6;
    font-size: 15px;
    font-weight: 800;
}

.news-wrapper { padding: 3px; }
.news-list { display: flex; flex-direction: column; gap: 7px; }

.news-card {
    background: linear-gradient(180deg, rgba(24, 11, 12, 0.95), rgba(11, 8, 9, 1));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
    cursor: pointer;
}
.news-card:hover,
.news-card.expanded {
    border-color: rgba(216,177,109,0.12);
    box-shadow: 0 10px 18px rgba(0,0,0,0.20);
}

.news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
}

.news-title-simple {
    margin: 0;
    font-size: 11px;
    line-height: 1.42;
    font-weight: 700;
    color: #f6efe8;
}

.news-toggle-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    color: #d8b16d;
    transition: transform .22s ease, background .22s ease;
    font-size: 10px;
}

.news-card.expanded .news-toggle-icon {
    transform: rotate(180deg);
    background: rgba(216,177,109,0.09);
}

.news-full {
    display: none;
    padding: 0 12px 12px;
    border-top: 1px dashed rgba(255,255,255,0.06);
}
.news-card.expanded .news-full { display: block; }

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin: 10px 0;
}

.news-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7a2a35, #c76a60, #d8b16d);
    color: #fffaf2;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.news-date { color: #b7a29a; font-size: 9px; }

.news-full-cover {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 9px;
    background: #12080a;
    border: 1px solid rgba(255,255,255,0.04);
}
.news-full-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.news-full-content {
    color: #e7ddd7;
    font-size: 11px;
    line-height: 1.65;
    word-wrap: break-word;
}
.news-full-content img,
.news-full-content iframe,
.news-full-content video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.news-full-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 8px 0;
}
.news-full-content table td,
.news-full-content table th {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 6px;
    color: #f5ede7;
    font-size: 10px;
}
.news-full-content a { color: #d8b16d; text-decoration: none; }
.news-full-content a:hover { color: #e8c991; text-decoration: underline; }

.news-full-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.06);
}

.news-collapse-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 7px;
    background: linear-gradient(90deg, #6f212b, #9b474f);
    color: #fff !important;
    font-size: 9px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.news-pagination {
    text-align: center;
    margin-top: 7px;
}
.news-pagination a,
.news-pagination span {
    display: inline-block;
    min-width: 24px;
    padding: 4px 7px;
    margin: 1px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 9px;
    border: 1px solid rgba(255,255,255,0.05);
    color: #c2b3ad;
    background: rgba(255,255,255,0.02);
}
.news-pagination .active {
    color: #1a120b;
    font-weight: 800;
    background: linear-gradient(90deg, #9b474f, #d8b16d);
    border-color: transparent;
}

.discord-box { margin-bottom: 7px; }

.discord-section-title {
    text-align: center;
    color: #f5eee8;
    font-weight: 700;
    margin: 0 0 6px 0;
    font-size: 8px;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.discord-btn {
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(46,18,24,0.96), rgba(36,24,56,0.96), rgba(52,18,30,0.96));
    color: white !important;
    border-radius: 10px;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 14px rgba(0,0,0,0.18);
}
.discord-header {
    padding: 9px 8px 8px;
    font-weight: 700;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.discord-icon { font-size: 14px; margin-right: 6px; }
.discord-footer {
    background: rgba(0,0,0,0.20);
    padding: 6px 8px;
    font-size: 8px;
    text-align: center;
}
.discord-online-dot {
    color: #d8b16d;
    font-size: 7px;
    vertical-align: middle;
}

.widget-loading,
.widget-error {
    text-align: center;
    padding: 14px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.widget-loading { color: #b8a59d; }
.widget-error { color: #ffb3b3; }

.empty-state { padding: 12px; }

@media (max-width: 991px) {
    .row, .row-compact {
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .row > [class*="col-"], .row-compact > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .rf-container { width: 91%; max-width: 100%; padding: 0 5px; }
    .main-slider-img { height: 235px; }
    .content-wrapper { padding-top: 98px; }
    .rf-logo-wrapper { margin-top: 52px; }
}

@media (max-width: 768px) {
    .content-wrapper { padding-top: 84px; padding-bottom: 8px; }
    .rf-container { width: 93%; padding: 0 4px; }
    .rf-logo-wrapper { margin-top: 42px !important; margin-bottom: 10px !important; }
    .rf-logo-img { width: 132px; max-width: 100%; }
    .main-slider-img { height: 165px !important; }
    .news-title-simple, .news-full-content { font-size: 10px; }
    .rf-panel-header, .section-header-large { font-size: 8px !important; }
}