/*!
 * Devias CMS — MuOnline Crimson & Gold Theme
 * Full-width dark, dramatic crimson/gold accents, atmospheric hero
 */

/* ================================================================
   BASE
================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body.mu-site {
    margin: 0;
    min-height: 100vh;
    color: var(--dh-text);
    font-family: 'Inter', 'PT Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: var(--dh-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--mu-crimson-light); text-decoration: none; }
a:hover, a:focus { color: var(--mu-gold-light); text-decoration: none; }

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

/* ================================================================
   NAVBAR
================================================================ */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 9000;
    width: 100%;
    height: 64px;
    border-bottom: 1px solid rgba(180, 60, 50, 0.28);
    background: rgba(7, 4, 10, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(192, 57, 43, 0.15), 0 4px 24px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Brand */
.navbar-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none !important;
}

.dh-logo {
    height: 42px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(192, 57, 43, 0.6));
}

.navbar-brand-name {
    font-size: 15px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: #f0d090 !important;
    letter-spacing: .04em;
    text-shadow: 0 0 18px rgba(200, 150, 12, 0.5);
    white-space: nowrap;
}

/* Nav links */
.navbar-links { flex: 1; min-width: 0; }

.navbar-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.navbar-links ul li { list-style: none; }

.navbar-links ul li a {
    display: block;
    padding: 0 14px;
    height: 64px;
    line-height: 64px;
    color: #9a8080 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.navbar-links ul li a:hover,
.navbar-links ul li a:focus {
    color: #f0d090 !important;
    border-bottom-color: rgba(192, 57, 43, 0.8);
    background: rgba(192, 57, 43, 0.1);
}

/* Navbar actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Online badge */
.navbar-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(180, 60, 50, 0.3);
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.08);
    color: #9a8080;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    white-space: nowrap;
}

.navbar-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
    flex-shrink: 0;
}

.navbar-online-label { color: #9a8080; }

/* Lang switcher */
.dh-lang-menu {
    position: relative;
    margin: 0;
}

.dh-lang-menu-summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(180, 60, 50, 0.28);
    border-radius: 8px;
    background: rgba(192, 57, 43, 0.08);
    color: #9a8080;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, color .15s, background .15s;
}

.dh-lang-menu-summary::-webkit-details-marker { display: none; }
.dh-lang-menu-summary img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.dh-lang-menu-summary i { font-size: 11px; opacity: .75; transition: transform .15s ease; }
.dh-lang-menu[open] .dh-lang-menu-summary i { transform: rotate(180deg); }
.dh-lang-menu-summary:hover,
.dh-lang-menu[open] .dh-lang-menu-summary {
    border-color: rgba(192, 57, 43, 0.7);
    color: #f0d090;
    background: rgba(192, 57, 43, 0.16);
}

.dh-lang-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    min-width: 180px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 10px;
    border: 1px solid rgba(180, 60, 50, 0.3);
    background: rgba(10, 4, 12, 0.98);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(192, 57, 43, 0.08);
}

.dh-lang-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--dh-text) !important;
    font-size: 12px;
    font-weight: 600;
    transition: background .15s, color .15s;
}

.dh-lang-menu-item img { width: 15px; height: 15px; border-radius: 50%; object-fit: cover; }
.dh-lang-menu-item:hover,
.dh-lang-menu-item.is-active {
    background: rgba(192, 57, 43, 0.2);
    color: #f0d090 !important;
}

/* Auth buttons */
.navbar-btn-signin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9a8080 !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.navbar-btn-signin:hover { color: #f0d090 !important; background: rgba(192, 57, 43, 0.14); }

.navbar-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(192, 57, 43, 0.5);
    background: rgba(192, 57, 43, 0.18);
    color: #f0d090 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .15s, border-color .15s, box-shadow .15s;
    white-space: nowrap;
}

.navbar-btn-register:hover {
    background: rgba(192, 57, 43, 0.3) !important;
    border-color: rgba(231, 76, 60, 0.7);
    box-shadow: 0 0 14px rgba(192, 57, 43, 0.3);
}

.navbar-btn-admincp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f0c040 !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(200, 150, 12, 0.25);
    background: rgba(200, 150, 12, 0.08);
    white-space: nowrap;
    transition: background .15s;
}

.navbar-btn-admincp:hover { background: rgba(200, 150, 12, 0.18) !important; color: #fde68a !important; }

.navbar-btn-logout {
    color: #c45c4c !important;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}

.navbar-btn-logout:hover { color: #e87a6a !important; background: rgba(192, 57, 43, 0.1); }

/* Mobile hamburger */
#menu-toggle {
    display: none;
    border: 1px solid rgba(180, 60, 50, 0.28);
    border-radius: 8px;
    background: rgba(192, 57, 43, 0.14);
    color: #9a8080;
    font-size: 20px;
    line-height: 1;
    padding: 5px 10px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ================================================================
   HERO  (home page only)
================================================================ */

.site-hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050308;
}

/* Atmospheric glow layers */
.site-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        url('../img/background-dark.jpg') center/cover no-repeat,
        radial-gradient(ellipse 900px 600px at 75% 35%, rgba(140, 20, 20, 0.55), transparent 65%),
        radial-gradient(ellipse 600px 450px at 10% 15%, rgba(80, 10, 40, 0.4), transparent 65%),
        radial-gradient(ellipse 700px 400px at 50% 100%, rgba(100, 10, 10, 0.3), transparent 70%),
        linear-gradient(160deg, rgba(50, 5, 10, 0.9) 0%, rgba(5, 3, 8, 0.98) 60%);
    opacity: .7;
}

/* Animated crimson shimmer */
.site-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 400px 200px at 30% 60%, rgba(192, 57, 43, 0.18), transparent 70%);
    animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    from { opacity: 0.6; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.04); }
}

/* Character / background art on the right */
.site-hero-art {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 62%;
    pointer-events: none;
    z-index: 1;
    background: url('../img/background.jpg') no-repeat center top;
    background-size: cover;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.6) 38%, #000 68%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.6) 38%, #000 68%);
    opacity: 0.6;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 90px 24px 110px;
}

.hero-text {
    max-width: 580px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mu-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding: 6px 14px;
    border: 1px solid rgba(200, 150, 12, 0.3);
    border-radius: 999px;
    background: rgba(200, 150, 12, 0.08);
}

.hero-kicker::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mu-gold-light);
    box-shadow: 0 0 8px rgba(240, 192, 64, 0.8);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 800;
    line-height: 1.0;
    color: #f5e6d0 !important;
    letter-spacing: -.04em;
    margin: 0 0 20px;
    font-family: 'Cinzel', serif;
    text-shadow:
        0 0 60px rgba(192, 57, 43, 0.5),
        0 0 120px rgba(192, 57, 43, 0.25);
}

.hero-title span {
    display: block;
}

.hero-title span:nth-child(2) {
    color: var(--mu-crimson-light) !important;
    text-shadow:
        0 0 40px rgba(231, 76, 60, 0.7),
        0 0 80px rgba(192, 57, 43, 0.4);
}

.hero-title span:nth-child(3) {
    color: var(--mu-gold-light) !important;
    text-shadow:
        0 0 40px rgba(240, 192, 64, 0.7),
        0 0 80px rgba(200, 150, 12, 0.4);
}

.hero-sub {
    font-size: 16px;
    color: #9a7a6a;
    margin: 0 0 38px;
    line-height: 1.7;
    max-width: 460px;
    font-weight: 400;
}

/* Hero CTA buttons */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    border: 1px solid rgba(192, 57, 43, 0.6);
    background: rgba(192, 57, 43, 0.22);
    color: #f5e6d0 !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.hero-btn-play:hover {
    background: rgba(192, 57, 43, 0.36) !important;
    border-color: rgba(231, 76, 60, 0.8);
    box-shadow: 0 0 24px rgba(192, 57, 43, 0.4), 0 4px 20px rgba(0,0,0,0.4);
    color: #fff !important;
}

.hero-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mu-gold) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: color .15s;
}

.hero-btn-more:hover { color: var(--mu-gold-light) !important; }

/* Hero meta: online + times */
.hero-meta {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-online {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-online .hero-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.9);
    flex-shrink: 0;
}

.hero-online-count {
    font-size: 20px;
    font-weight: 700;
    color: #f5e6d0;
}

.hero-online-label {
    font-size: 11px;
    color: #4a3030;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.hero-online-bar {
    width: 100%;
    flex-basis: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(180, 60, 50, 0.2);
    overflow: hidden;
    margin-top: 2px;
}

.hero-online-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c0392b, #f0c040);
    transition: width .6s ease;
}

.hero-times {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-time-label {
    font-size: 10px;
    color: #4a3030;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    min-width: 52px;
}

.hero-time-val {
    font-size: 12px;
    color: #8a6a5a;
    font-variant-numeric: tabular-nums;
}

/* ================================================================
   MAIN CONTENT
================================================================ */

.site-main {
    background: var(--dh-bg);
}

#container {
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0 24px;
}

.site-content-wrap {
    padding: 40px 0 60px;
}

.site-content-sidebar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.site-primary,
.site-sidebar {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}

/* ================================================================
   PANELS  (Bootstrap 3 overrides)
================================================================ */

.panel,
.well,
.thumbnail,
.table-responsive {
    border: 1px solid rgba(180, 60, 50, 0.22) !important;
    border-radius: 12px !important;
    background: #140b14 !important;
    color: var(--dh-text) !important;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
}

.panel + .panel { margin-top: 16px; }

.panel-heading,
.panel-footer {
    border-color: rgba(180, 60, 50, 0.2) !important;
    background: rgba(18, 8, 18, 0.98) !important;
}

.panel-title,
.page-title {
    color: #f0d090 !important;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.page-title {
    margin: 0 0 18px;
    font-size: 26px;
    letter-spacing: -0.01em;
}

.page-title > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

h1, h2, h3, h4, h5 { color: #f0d090 !important; }

.panel-body,
.panel-body p,
.panel-body span,
.panel-body li {
    color: var(--dh-text) !important;
}

/* ================================================================
   FORMS
================================================================ */

.form-control,
input[type=text],
input[type=password],
input[type=email],
input[type=number],
textarea,
select {
    border: 1px solid rgba(180, 60, 50, 0.3) !important;
    border-radius: 8px !important;
    background: rgba(5, 2, 8, 0.92) !important;
    color: #ddc9b4 !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
textarea:focus,
select:focus {
    border-color: rgba(192, 57, 43, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15) !important;
    color: #f5e6d0 !important;
}

/* ================================================================
   BUTTONS
================================================================ */

.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .1px;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.btn-primary {
    border: 1px solid rgba(192, 57, 43, 0.55) !important;
    background: rgba(192, 57, 43, 0.2) !important;
    color: #f0d090 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: rgba(192, 57, 43, 0.35) !important;
    border-color: rgba(231, 76, 60, 0.75) !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(192, 57, 43, 0.3) !important;
}

.btn-default {
    border: 1px solid rgba(180, 60, 50, 0.24) !important;
    background: rgba(180, 60, 50, 0.1) !important;
    color: #9a8080 !important;
}

.btn-default:hover,
.btn-default:focus {
    background: rgba(192, 57, 43, 0.2) !important;
    border-color: rgba(192, 57, 43, 0.45) !important;
    color: #f0d090 !important;
}

/* ================================================================
   TABLES
================================================================ */

.table, table { color: var(--dh-text) !important; }

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th,
table td, table th {
    border-color: rgba(180, 60, 50, 0.2) !important;
    color: var(--dh-text) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(192, 57, 43, 0.04);
}

/* ================================================================
   SIDEBAR
================================================================ */

.sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-banner {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-banner img {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(180, 60, 50, 0.22);
    transition: opacity .2s;
}

.sidebar-banner img:hover { opacity: .9; }

.sidebar-info-table td:last-child { text-align: right; }

.sidebar-card-title { display: flex; align-items: center; justify-content: space-between; }

/* ================================================================
   HOME MODULE CARDS
================================================================ */

.home-layout { display: grid; gap: 20px; }
.home-bottom-grid { margin-top: 0; }

.home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px;
    background:
        radial-gradient(600px 320px at 85% 20%, rgba(192, 57, 43, 0.18), transparent 60%),
        radial-gradient(400px 200px at 20% 80%, rgba(200, 150, 12, 0.08), transparent 60%),
        linear-gradient(140deg, rgba(14, 8, 15, 0.97), rgba(20, 11, 20, 0.97));
    border: 1px solid rgba(192, 57, 43, 0.18);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(240, 192, 64, 0.06);
}

.home-intro-content { max-width: 720px; }

.home-intro-kicker {
    margin: 0 0 8px;
    color: var(--mu-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.home-intro-title {
    margin: 0 0 10px;
    color: #f0d090;
    font-size: 33px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: 'Cinzel', serif;
}

.home-intro-sub {
    margin: 0;
    color: #9a7a6a;
    font-size: 14px;
    line-height: 1.65;
}

.home-intro-actions {
    display: grid;
    gap: 9px;
    width: min(300px, 100%);
}

.home-intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(180, 60, 50, 0.25);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.home-intro-btn-primary {
    background: rgba(192, 57, 43, 0.22);
    color: #f0d090 !important;
    border-color: rgba(192, 57, 43, 0.55);
}

.home-intro-btn-primary:hover {
    background: rgba(192, 57, 43, 0.34);
    border-color: rgba(231, 76, 60, 0.75);
    box-shadow: 0 0 14px rgba(192, 57, 43, 0.3);
}

.home-intro-btn-secondary {
    background: rgba(200, 150, 12, 0.12);
    color: #f0d090 !important;
    border-color: rgba(200, 150, 12, 0.3);
}

.home-intro-btn-secondary:hover {
    background: rgba(200, 150, 12, 0.22);
    border-color: rgba(240, 192, 64, 0.5);
    color: #fff !important;
}

.home-intro-btn-ghost {
    background: transparent;
    color: #9a7a6a !important;
}

.home-intro-btn-ghost:hover {
    color: #f0d090 !important;
    border-color: rgba(192, 57, 43, 0.5);
    background: rgba(192, 57, 43, 0.1);
}

.home-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-action-card {
    border-radius: 12px;
    border: 1px solid rgba(180, 60, 50, 0.2);
    background: #120a12;
    padding: 16px;
    display: grid;
    gap: 6px;
    min-height: 120px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
}

.home-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(192, 57, 43, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.home-action-card i {
    color: var(--mu-crimson-light);
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.5));
}

.home-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(192, 57, 43, 0.55);
    background: #1a0e1a;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(192, 57, 43, 0.1);
}

.home-action-card:hover::before { opacity: 1; }

.home-action-title {
    color: #f0d090;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.home-action-text {
    color: #7a5c6a;
    font-size: 12px;
    line-height: 1.5;
}

.home-card {
    background: #120a12;
    border: 1px solid rgba(180, 60, 50, 0.2);
    border-radius: 14px;
    padding: 18px;
    height: 100%;
}

.home-card-tall { min-height: 420px; }

.home-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #f0d090;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.home-plus-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid rgba(180, 60, 50, 0.28);
    background: rgba(192, 57, 43, 0.14);
    color: var(--dh-text) !important;
    font-weight: 700;
    line-height: 1;
    transition: background .15s, color .15s;
}

.home-plus-link:hover { background: rgba(192, 57, 43, 0.28); color: #f0d090 !important; }

.home-usercp-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.home-usercp-menu li a {
    display: block;
    color: #9a7a6a !important;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(180, 60, 50, 0.18);
    border-radius: 8px;
    padding: 8px 10px;
}

.home-usercp-menu li a:hover {
    color: #f0d090 !important;
    border-color: rgba(192, 57, 43, 0.45);
    background: rgba(192, 57, 43, 0.12);
}

.home-compact-table thead th {
    color: var(--mu-gold);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .07em;
    font-weight: 700;
}

.home-compact-table td,
.home-compact-table th {
    border-color: rgba(180, 60, 50, 0.18) !important;
    padding: 8px 6px !important;
}

.home-events-table td {
    padding: 8px 4px !important;
    border-color: rgba(180, 60, 50, 0.18) !important;
}

.home-events-table .smalltext {
    color: #6a4a4a;
    font-size: 11px;
}

.home-featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.home-featured-title {
    margin: 0;
    color: #f0d090;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-family: 'Cinzel', serif;
}

.home-featured-more {
    color: #9a7a6a !important;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-featured-more:hover { color: var(--mu-gold-light) !important; }

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-featured-card {
    position: relative;
    min-height: 230px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 14px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(180, 60, 50, 0.22);
    transform: translateY(0);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-featured-card:hover {
    transform: translateY(-3px);
    border-color: rgba(192, 57, 43, 0.6);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 0 18px rgba(192, 57, 43, 0.15);
}

.home-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,2,8,.95), rgba(5,2,8,.5) 55%, rgba(5,2,8,.12));
    z-index: 0;
}

.home-featured-meta,
.home-featured-name,
.home-featured-text {
    position: relative;
    z-index: 1;
}

.home-featured-meta {
    color: var(--mu-gold);
    font-size: 12px;
}

.home-featured-name {
    color: #f5e6d0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.home-featured-text {
    color: var(--mu-crimson-light);
    font-size: 12px;
    font-weight: 600;
}

/* Legal long-text pages */
.legal-brand { color: #f0c040; }

.page-container .page-content {
    background: #120a12;
    border: 1px solid rgba(180, 60, 50, 0.2);
    border-radius: 12px;
    padding: 18px;
}

/* ================================================================
   FOOTER
================================================================ */

.site-footer {
    width: 100%;
    border-top: 1px solid rgba(180, 60, 50, 0.22);
    background: #05030a;
    padding: 48px 24px 28px;
}

.footer-container {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(180, 60, 50, 0.18);
}

.footer-brand-link {
    display: inline-block;
    color: #f0d090 !important;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .03em;
    font-family: 'Cinzel', serif;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(200, 150, 12, 0.4);
}

.footer-brand-tagline {
    margin: 0;
    color: #6a4a4a;
    font-size: 13px;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.footer-column-title {
    margin: 0 0 11px;
    color: #f0d090;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.footer-column-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.footer-column-links a {
    color: #6a4a4a !important;
    font-size: 12px;
    transition: color .15s;
}

.footer-column-links a:hover {
    color: var(--mu-gold-light) !important;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
}

.footer-copy {
    margin: 0;
    color: #4a3030;
    font-size: 12px;
}

.footer-powered,
.footer-powered p,
.footer-powered a {
    margin: 0;
    color: #3a2020 !important;
    font-size: 11px !important;
}

.footer-socials {
    display: inline-flex;
    gap: 8px;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(180, 60, 50, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s, box-shadow .15s;
}

.footer-social-link:hover {
    background: rgba(192, 57, 43, 0.2);
    border-color: rgba(192, 57, 43, 0.5);
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.2);
}

.footer-social-link img { width: 16px; height: 16px; }

/* ================================================================
   MODAL (Bootstrap)
================================================================ */

.modal-content {
    border: 1px solid rgba(180, 60, 50, 0.3);
    border-radius: 14px;
    background: #140b14;
    color: var(--dh-text);
}

.modal-header, .modal-footer {
    border-color: rgba(180, 60, 50, 0.22);
}

.close { color: #9a8080; opacity: .8; text-shadow: none; }
.close:hover { color: #f0d090; opacity: 1; }

/* ================================================================
   GLOW DIVIDER UTILITY
================================================================ */

.mu-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 57, 43, 0.5) 50%, transparent);
    margin: 24px 0;
}

/* ================================================================
   RESPONSIVE
================================================================ */

@media (max-width: 1024px) {
    .site-content-sidebar-layout {
        grid-template-columns: 1fr;
    }

    .site-hero-art { width: 50%; opacity: .45; }
    .home-intro {
        flex-direction: column;
        align-items: flex-start;
    }
    .home-intro-actions {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .home-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #menu-toggle { display: inline-flex; }

    .navbar-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        border-top: 1px solid rgba(180, 60, 50, 0.2);
        background: rgba(7, 4, 10, 0.98);
        backdrop-filter: blur(18px);
        padding: 6px 0;
        z-index: 9000;
    }

    .site-navbar.active .navbar-links { display: block; }

    .navbar-inner { position: relative; }

    .navbar-links ul {
        flex-direction: column;
    }

    .navbar-links ul li a {
        height: auto;
        line-height: 1.5;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(180, 60, 50, 0.14) !important;
    }

    .hero-title { font-size: 44px; }

    .site-hero-art {
        width: 100%;
        opacity: 0.16;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-text { max-width: 100%; }

    .footer-top-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-columns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom-row { flex-direction: column; align-items: flex-start; }
    .home-card-tall { min-height: 0; }
    .home-featured-grid { grid-template-columns: 1fr; }
    .home-featured-title { font-size: 22px; }
    .home-intro-title { font-size: 27px; }
    .home-intro-actions { grid-template-columns: 1fr; }

    .navbar-actions { gap: 6px; }
    .navbar-btn-register { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .hero-sub { font-size: 14px; }
    .navbar-inner { padding: 0 12px; gap: 12px; }
    #container { padding: 0 12px; }
    .footer-columns-grid { grid-template-columns: 1fr; }
    .home-actions-grid { grid-template-columns: 1fr; }
}
