:root,
html[data-theme="default"] {
    --bg-main: #070b14;
    --bg-secondary: #0f1729;
    --bg-card: rgba(17, 24, 39, 0.92);
    --text-main: #f5f7fb;
    --text-muted: #a8b3c7;
    --primary: #d90429;
    --primary-hover: #ef233c;
    --secondary: #1d2d75;
    --secondary-hover: #2740a3;
    --accent: #3a86ff;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html[data-theme="crimson"] {
    --bg-main: #120609;
    --bg-secondary: #1c0b10;
    --bg-card: rgba(35, 12, 18, 0.92);
    --text-main: #fff5f7;
    --text-muted: #d8b7bf;
    --primary: #c1121f;
    --primary-hover: #e5383b;
    --secondary: #590d22;
    --secondary-hover: #800f2f;
    --accent: #ff4d6d;
    --border: rgba(255,255,255,0.08);
}

html[data-theme="royal"] {
    --bg-main: #060914;
    --bg-secondary: #0f1530;
    --bg-card: rgba(16, 22, 45, 0.92);
    --text-main: #eef3ff;
    --text-muted: #b8c1dd;
    --primary: #315efb;
    --primary-hover: #4c78ff;
    --secondary: #0a2472;
    --secondary-hover: #1338a8;
    --accent: #8b0000;
    --border: rgba(255,255,255,0.08);
}

html[data-theme="obsidian"] {
    --bg-main: #050505;
    --bg-secondary: #101010;
    --bg-card: rgba(20, 20, 20, 0.95);
    --text-main: #f8f8f8;
    --text-muted: #b5b5b5;
    --primary: #bb0000;
    --primary-hover: #e00000;
    --secondary: #1b1f3b;
    --secondary-hover: #28306a;
    --accent: #5f6fff;
    --border: rgba(255,255,255,0.08);
}

body {
    background:
        radial-gradient(circle at top left, rgba(217,4,41,0.16), transparent 25%),
        radial-gradient(circle at top right, rgba(58,134,255,0.14), transparent 25%),
        linear-gradient(180deg, var(--bg-secondary), var(--bg-main));
    color: var(--text-main);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

.min-vh-75 {
    min-height: 75vh;
}

.section-padding {
    padding: 90px 0;
}

.alt-section {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.dc-navbar {
    background: rgba(5, 8, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand,
.nav-link {
    color: var(--text-main) !important;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-outline-primary {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.hero-section {
    padding: 100px 0 70px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-title span {
    color: var(--accent);
}

.hero-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
}

.hero-card {
    position: relative;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(217,4,41,0.35), transparent 70%);
    top: -30px;
    right: -30px;
}

.hero-card-content {
    position: relative;
    text-align: center;
    padding: 30px;
    z-index: 1;
}

.hero-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-heading h2 {
    font-weight: 800;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.dc-card,
.feature-card,
.promo-box,
.empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 20px;
}

.dc-card .card-body {
    color: var(--text-main);
}

.news-image {
    height: 220px;
    object-fit: cover;
}

.news-date {
    color: var(--accent);
    font-size: 0.9rem;
}

.video-frame iframe,
.video-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.promo-box {
    padding: 40px;
}

.cape-preview {
    max-height: 220px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.feature-card {
    text-align: center;
    padding: 35px 25px;
}

.feature-card i {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.dc-accordion .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 15px;
    border-radius: 14px;
    overflow: hidden;
}

.dc-accordion .accordion-button {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: none;
}

.dc-accordion .accordion-body {
    color: var(--text-muted);
}

.dc-footer {
    padding: 60px 0 20px;
    background:
        linear-gradient(180deg, rgba(4, 6, 14, 0.96), rgba(7, 11, 20, 1));
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-top {
    padding-bottom: 30px;
}

.footer-brand-box,
.footer-links-box,
.footer-social-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    box-shadow: var(--shadow);
}

.footer-brand-box h4,
.footer-links-box h5,
.footer-social-box h5 {
    color: var(--text-main);
    margin-bottom: 14px;
    font-weight: 700;
}

.footer-brand-box p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

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

.footer-domain-list li {
    margin-bottom: 12px;
}

.footer-domain-list li:last-child {
    margin-bottom: 0;
}

.footer-domain-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
    transition: all 0.25s ease;
}

.footer-domain-list a:hover {
    background: rgba(58,134,255,0.10);
    border-color: rgba(58,134,255,0.25);
    transform: translateY(-2px);
    color: #fff;
}

.footer-domain-label {
    color: var(--accent);
    font-weight: 700;
    margin-right: 6px;
}

.footer-domain-name {
    color: var(--text-main);
    word-break: break-word;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: translateY(-2px);
}

.footer-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.footer-quick-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-quick-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.theme-panel {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px;
    box-shadow: var(--shadow);
}

.theme-panel.open {
    right: 0;
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.theme-options {
    display: grid;
    gap: 12px;
}

.theme-swatch {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.theme-swatch.active {
    outline: 2px solid var(--accent);
}

.theme-swatch.red-black-blue { background: linear-gradient(135deg, #d90429, #0b1020, #1d2d75); }
.theme-swatch.crimson { background: linear-gradient(135deg, #c1121f, #1c0b10, #590d22); }
.theme-swatch.royal { background: linear-gradient(135deg, #315efb, #0f1530, #8b0000); }
.theme-swatch.obsidian { background: linear-gradient(135deg, #bb0000, #050505, #1b1f3b); }

.empty-state {
    padding: 50px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--accent);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
}