/* ============================================
   ReCraft Theme - Azuriom
   Minecraft Modern - Violet / Black / White / Yellow
   ============================================ */

/* ---------- Minecraft Font ---------- */
@font-face {
    font-family: 'Minecraft';
    src: url('https://cdn.jsdelivr.net/gh/South-Paw/typeface-minecraft@master/files/minecraft.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/South-Paw/typeface-minecraft@master/files/minecraft.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- CSS Variables ---------- */
:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-dark: #4c1d95;
    --primary-glow: rgba(109, 40, 217, 0.3);
    --accent: #fbbf24;
    --accent-dark: #d97706;
    --bg-dark: #0c0c1d;
    --bg-card: #111128;
    --bg-card-hover: #161636;
    --bg-section: #0e0e24;
    --bg-input: #13132e;
    --text-primary: #e8e8f0;
    --text-secondary: #9d9dba;
    --text-muted: #5a5a7a;
    --border-color: #1e1e40;
    --border-light: #2a2a55;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #60a5fa;
    --mc-green: #4ade80;
    --mc-gold: #fbbf24;
    --mc-aqua: #22d3ee;
    --mc-dark-purple: #a855f7;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.6);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --transition: all 0.2s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mc: 'Minecraft', monospace;
}

/* ---------- Custom Scrollbar (default) ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 0;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
}
::-webkit-scrollbar-corner {
    background: var(--bg-dark);
}
/* Firefox */
html {
    scrollbar-color: var(--primary-dark) var(--bg-dark);
    scrollbar-width: thin;
}

/*
 * Scrollbar variants — applied via inline <style> in base.blade.php
 * because ::-webkit-scrollbar does NOT work as descendant selectors.
 * See base.blade.php for the dynamic injection.
 */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(109,40,217,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(109,40,217,0.04) 0%, transparent 50%);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Body modifier classes ---------- */
body.rc-no-animations *,
body.rc-no-animations *::before,
body.rc-no-animations *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}
body.rc-no-animations .fade-in {
    opacity: 1 !important;
    transform: none !important;
}
body.rc-no-glow .rc-feature-card:hover,
body.rc-no-glow .rc-stat-item:hover,
body.rc-no-glow .rc-article-card:hover,
body.rc-no-glow .rc-staff-card:hover {
    box-shadow: var(--shadow-md);
}
/* MC headings disabled override (applied via dynamic <style> in base.blade.php) */
body.rc-no-mc-headings h1,
body.rc-no-mc-headings h2,
body.rc-no-mc-headings h3 {
    font-family: var(--font-main);
    text-shadow: none;
    letter-spacing: 0;
}

/* ---------- Loading Bar ---------- */
.rc-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.3s ease;
    animation: rcLoadBar 1.2s ease-out forwards;
}
@keyframes rcLoadBar {
    0% { width: 0; }
    60% { width: 70%; }
    100% { width: 100%; opacity: 0; }
}

/* ---------- Minecraft-style headings (default) ---------- */
h1, h2, h3 {
    font-family: var(--font-mc);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* ---------- Buttons (Minecraft style) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-mc);
    border: 3px solid rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.4);
    position: relative;
    image-rendering: pixelated;
}

.btn-primary {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #fff;
    border-color: var(--primary-dark);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 14px rgba(139, 92, 246, 0.35);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 24px rgba(139, 92, 246, 0.55);
    color: #fff;
    filter: brightness(1.18);
}

.btn-accent {
    background: linear-gradient(180deg, #fde68a 0%, var(--accent) 40%, var(--accent-dark) 100%);
    color: #1a1a2e;
    border-color: #c49a09;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 12px rgba(251, 191, 36, 0.25);
}
.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    color: #1a1a2e;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 24px rgba(251, 191, 36, 0.4);
}

.btn-outline {
    background: rgba(139, 92, 246, 0.15);
    border: 3px solid #a78bfa;
    color: #e0d4fc;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15), 0 0 14px rgba(139, 92, 246, 0.2);
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}
.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.45);
}

/* Bootstrap btn-outline-primary override */
.btn-outline-primary {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 3px solid #a78bfa !important;
    color: #e0d4fc !important;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15), 0 0 14px rgba(139, 92, 246, 0.2) !important;
    font-family: var(--font-mc);
    text-shadow: 1px 1px 0px rgba(0,0,0,0.4);
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    border-color: var(--primary-light) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.45) !important;
}

/* Force text-shadow on ALL Bootstrap buttons for readability */
.btn-secondary, .btn-outline-secondary,
.btn-success, .btn-outline-success,
.btn-danger, .btn-outline-danger,
.btn-warning, .btn-outline-warning,
.btn-info, .btn-outline-info,
.btn-light, .btn-dark {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* Other Bootstrap button overrides */
.btn-secondary, .btn-outline-secondary {
    background: rgba(255,255,255,0.08) !important;
    border: 3px solid var(--border-light) !important;
    color: var(--text-primary) !important;
}
.btn-secondary:hover, .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-success, .btn-outline-success {
    background: rgba(52, 211, 153, 0.2) !important;
    border: 3px solid var(--success) !important;
    color: #fff !important;
}
.btn-success:hover, .btn-outline-success:hover {
    background: var(--success) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-danger, .btn-outline-danger {
    background: rgba(248, 113, 113, 0.2) !important;
    border: 3px solid var(--danger) !important;
    color: #fff !important;
}
.btn-danger:hover, .btn-outline-danger:hover {
    background: var(--danger) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-warning, .btn-outline-warning {
    background: rgba(251, 191, 36, 0.2) !important;
    border: 3px solid var(--accent) !important;
    color: var(--accent) !important;
}
.btn-warning:hover, .btn-outline-warning:hover {
    background: var(--accent) !important;
    color: var(--bg-dark) !important;
    transform: translateY(-2px);
}
.btn-info, .btn-outline-info {
    background: rgba(96, 165, 250, 0.2) !important;
    border: 3px solid var(--info) !important;
    color: #fff !important;
}
.btn-info:hover, .btn-outline-info:hover {
    background: var(--info) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-light {
    background: rgba(255,255,255,0.1) !important;
    border: 3px solid rgba(255,255,255,0.2) !important;
    color: var(--text-primary) !important;
}
.btn-light:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--bg-card) !important;
    border: 3px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.btn-dark:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-link {
    color: var(--primary-light) !important;
    text-decoration: none !important;
}
.btn-link:hover {
    color: var(--accent) !important;
}

.btn-glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
    border-width: 2px;
    font-family: var(--font-main);
    text-shadow: none;
    font-weight: 600;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ---------- Navbar ---------- */
.rc-navbar, .rc-navbar * {
    font-family: var(--font-navbar, var(--font-main));
}
.rc-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 11, 28, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(109, 40, 217, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rc-navbar.scrolled {
    background: rgba(11, 11, 28, 0.97);
    border-bottom-color: var(--primary-dark);
    box-shadow: 0 4px 30px rgba(109, 40, 217, 0.15);
}

.rc-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height, 72px);
}

.rc-navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-mc);
    color: var(--accent);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.6);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}
.rc-navbar-brand:hover {
    color: #fde68a;
    transform: scale(1.03);
}
.rc-navbar-brand img {
    height: 40px;
    width: 40px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    transition: transform 0.3s ease;
}
.rc-navbar-brand:hover img {
    transform: rotate(-5deg) scale(1.08);
}

.rc-navbar-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 32px;
    min-width: 0;
}

.rc-navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: nowrap;
}

.rc-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.rc-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}
.rc-nav-link:hover {
    color: #fff;
    background: rgba(109, 40, 217, 0.12);
    transform: translateY(-1px);
}
.rc-nav-link:hover::after {
    width: 60%;
    left: 20%;
}
.rc-nav-link.active {
    color: var(--accent);
    background: rgba(109, 40, 217, 0.18);
}
.rc-nav-link.active::after {
    width: 70%;
    left: 15%;
    background: var(--accent);
}

.rc-navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 16px;
}

/* User avatar in navbar */
.rc-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease;
}
.rc-nav-user:hover {
    color: #fff;
    background: rgba(109, 40, 217, 0.1);
}
.rc-nav-user img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    border: 2px solid var(--border-light);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.rc-nav-user:hover img {
    border-color: var(--primary-light);
    transform: scale(1.05);
}
.rc-nav-user span {
    font-size: 0.88rem;
    font-weight: 500;
}

/* Navbar dropdown */
.rc-nav-dropdown {
    position: relative;
}
.rc-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    z-index: 1001;
    padding-top: 10px;
}
/* Invisible bridge to keep hover when moving to the menu */
.rc-nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.rc-nav-dropdown:hover > .rc-nav-dropdown-menu {
    display: block;
}
/* User dropdown aligns right */
.rc-navbar-right .rc-nav-dropdown-menu {
    left: auto;
    right: 0;
}
.rc-nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}
.rc-nav-dropdown-menu a:hover {
    background: rgba(109, 40, 217, 0.12);
    color: #fff;
}
.rc-nav-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Navbar mobile */
.rc-navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.rc-navbar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 0;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .rc-navbar-toggle { display: flex; }
    .rc-navbar-collapse {
        position: fixed;
        top: var(--navbar-height, 72px);
        left: 0;
        right: 0;
        background: rgba(11, 11, 28, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--border-color);
        padding: 16px;
        display: none;
        flex-direction: column;
        gap: 8px;
        max-height: calc(100vh - var(--navbar-height, 72px));
        overflow-y: auto;
        margin-left: 0;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .rc-navbar-collapse.show { display: flex; }
    .rc-navbar-nav {
        flex-direction: column;
        width: 100%;
        flex-wrap: nowrap;
    }
    .rc-nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.92rem;
    }
    .rc-nav-link::after { display: none; }
    .rc-navbar-right {
        flex-direction: column;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
        margin-left: 0;
    }
    .rc-nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(109, 40, 217, 0.04);
        margin-top: 0;
        padding-top: 4px;
    }
    .rc-nav-dropdown-menu::before { display: none; }
}

/* ---------- Hero Section ---------- */
.rc-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 80px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
}

.rc-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.rc-overlay-gradient {
    background: linear-gradient(180deg,
        rgba(12,12,29,0.5) 0%,
        rgba(12,12,29,0.35) 40%,
        rgba(12,12,29,0.65) 70%,
        rgba(12,12,29,1) 100%
    );
}
.rc-overlay-dark {
    background: var(--bg-dark);
}
.rc-overlay-radial {
    background: radial-gradient(ellipse at center, rgba(12,12,29,0.3) 0%, rgba(12,12,29,0.95) 80%);
}
.rc-overlay-none {
    background: transparent;
}
/* Hero animation variants */
.rc-hero-anim-fade .rc-hero-content { animation: heroFadeIn 1s ease-out; }
.rc-hero-anim-slide .rc-hero-content { animation: heroSlideUp 0.8s ease-out; }
.rc-hero-anim-zoom .rc-hero-content { animation: heroZoomIn 0.9s ease-out; }
.rc-hero-anim-none .rc-hero-content { animation: none; }
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.rc-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(109,40,217,0.35) 50%, transparent 50%),
        radial-gradient(2px 2px at 30% 60%, rgba(251,191,36,0.25) 50%, transparent 50%),
        radial-gradient(2px 2px at 50% 30%, rgba(109,40,217,0.25) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 70%, rgba(251,191,36,0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 40%, rgba(109,40,217,0.25) 50%, transparent 50%),
        radial-gradient(3px 3px at 20% 80%, rgba(74,222,128,0.15) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 15%, rgba(251,191,36,0.2) 50%, transparent 50%);
    animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.rc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

/* Hero Logo */
.rc-hero-logo {
    max-height: 120px;
    width: auto;
    margin-bottom: 24px;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 20px rgba(109, 40, 217, 0.3));
    animation: heroLogoFloat 4s ease-in-out infinite;
}
@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.rc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(85, 255, 85, 0.1);
    border: 2px solid rgba(85, 255, 85, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mc);
    color: var(--mc-green);
    margin-bottom: 24px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.rc-hero-badge .pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--mc-green);
    border-radius: 0;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px var(--mc-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* IP Badge style variants */
.rc-ip-badge { /* default, already styled by .rc-hero-badge */ }
.rc-ip-pill { border-radius: 999px; padding: 10px 24px; }
.rc-ip-outline {
    background: transparent;
    border: 2px solid currentColor;
}
.rc-ip-glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.15);
}
.rc-ip-mc-sign {
    background: linear-gradient(180deg, #3e2723 0%, #2c1b14 100%);
    border: 3px solid #5d4037;
    color: var(--mc-green);
    font-family: var(--font-mc);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* IP size variants */
.rc-ip-small { padding: 5px 14px; font-size: 0.75rem; }
.rc-ip-normal { /* default */ }
.rc-ip-large { padding: 12px 28px; font-size: 1.1rem; }

.rc-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--font-hero-title, var(--font-mc));
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
    text-shadow:
        3px 3px 0px rgba(0,0,0,0.6),
        0 0 30px var(--primary-glow);
}

.rc-hero h1 .text-accent {
    color: var(--accent);
    text-shadow:
        3px 3px 0px rgba(0,0,0,0.6),
        0 0 20px rgba(251,191,36,0.25);
}

.rc-hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-family: var(--font-hero-subtitle, var(--font-main));
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.rc-hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Server Status Card (Minecraft sign style) */
.rc-server-status {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 16px 28px;
    background: linear-gradient(180deg, #3e2723 0%, #2c1b14 100%);
    border: 3px solid #5d4037;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

.rc-server-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: var(--mc-green);
    box-shadow: 0 0 8px rgba(85, 255, 85, 0.5);
    animation: pulse 2s infinite;
}
.rc-server-status .status-indicator.offline {
    background: var(--danger);
    box-shadow: 0 0 8px rgba(255, 85, 85, 0.5);
    animation: none;
}

.rc-server-status .status-info {
    text-align: left;
}
.rc-server-status .status-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mc);
}
.rc-server-status .status-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mc);
}
.rc-server-status .status-players {
    text-align: left;
}
.rc-server-status .status-players .count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--mc-green);
    font-family: var(--font-mc);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}
.rc-server-status .status-players .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mc);
}

/* Server card style variants */
.rc-server-mc-sign {
    background: linear-gradient(180deg, #3e2723 0%, #2c1b14 100%);
    border: 3px solid #5d4037;
}
.rc-server-glass {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255,255,255,0.12);
}
.rc-server-dark {
    background: rgba(0,0,0,0.5);
    border: 2px solid var(--border-color);
}
.rc-server-outline {
    background: transparent;
    border: 2px solid var(--primary);
}

/* ---------- Sections ---------- */
.rc-section {
    padding: 70px 0;
}

.rc-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.rc-section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-family: var(--font-headings, var(--font-mc));
    margin-bottom: 12px;
    color: var(--text-primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
}

.rc-section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.rc-section-header .section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 16px auto 0;
    border-radius: 0;
}

/* ---------- Features Grid ---------- */
.rc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.rc-feature-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(14,14,36,0.5) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.rc-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}
.rc-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.rc-feature-card:hover::before {
    opacity: 1;
}

.rc-feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(109, 40, 217, 0.15);
    border: 2px solid rgba(109, 40, 217, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 1.4rem;
    color: var(--primary-light);
}

.rc-feature-card h3 {
    font-size: 1.05rem;
    font-family: var(--font-mc);
    margin-bottom: 10px;
    color: var(--accent);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
}

.rc-feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Feature card style variants */
.rc-card-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.rc-card-bordered {
    background: transparent;
    border-width: 3px;
}
.rc-card-filled {
    background: var(--bg-card);
    border-color: transparent;
}
.rc-card-filled:hover {
    border-color: var(--primary);
}

/* Feature icon style variants */
.rc-icon-box {
    background: rgba(109, 40, 217, 0.15);
    border: 2px solid rgba(109, 40, 217, 0.3);
    border-radius: var(--radius-sm);
}
.rc-icon-circle {
    background: rgba(109, 40, 217, 0.15);
    border: 2px solid rgba(109, 40, 217, 0.3);
    border-radius: 50%;
}
.rc-icon-plain {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--accent);
}
.rc-icon-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
}

/* ---------- Stats Bar ---------- */
.rc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 0;
}

.rc-stat-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.rc-stat-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.rc-stat-number {
    font-size: 2.2rem;
    font-family: var(--font-stats, var(--font-mc));
    color: var(--accent);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
}

.rc-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- Articles ---------- */
.rc-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.rc-article-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.rc-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.rc-article-card .article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.rc-article-card .article-body {
    padding: 22px;
}

.rc-article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rc-article-card .article-meta .tag {
    padding: 3px 10px;
    background: rgba(109, 40, 217, 0.15);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(109,40,217,0.3);
}

.rc-article-card h3 {
    font-size: 1.1rem;
    font-family: var(--font-mc);
    margin-bottom: 8px;
    color: var(--text-primary);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}
.rc-article-card h3 a {
    color: inherit;
}
.rc-article-card h3 a:hover {
    color: var(--accent);
}

.rc-article-card .article-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.rc-article-card .article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rc-article-card .article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rc-article-card .article-author img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

/* ---------- Discord Widget ---------- */
.rc-discord-section {
    background: linear-gradient(135deg, rgba(14,14,36,0.8), rgba(17,17,40,0.9));
    border: 2px solid var(--border-color);
}

.rc-discord-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.rc-discord-info h2 {
    font-size: 1.8rem;
    font-family: var(--font-mc);
    margin-bottom: 16px;
}
.rc-discord-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.rc-discord-embed {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 400px;
}
.rc-discord-embed iframe {
    width: 100%;
    height: 450px;
    border: none;
}

@media (max-width: 768px) {
    .rc-discord-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---------- Footer ---------- */
.rc-footer, .rc-footer * {
    font-family: var(--font-footer, var(--font-main));
}
.rc-footer {
    background: linear-gradient(180deg, var(--bg-section) 0%, #08081a 100%);
    border-top: 2px solid rgba(109, 40, 217, 0.2);
    padding: 50px 0 0;
}

.rc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.rc-footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-family: var(--font-mc);
    color: var(--accent);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    margin-bottom: 16px;
}
.rc-footer-about .footer-logo img {
    height: 36px;
    width: 36px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}
.rc-footer-about p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.rc-footer-socials {
    display: flex;
    gap: 10px;
}
.rc-footer-socials a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}
.rc-footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.rc-footer-col h4 {
    font-size: 0.95rem;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--accent);
}

.rc-footer-links {
    list-style: none;
}
.rc-footer-links li {
    margin-bottom: 10px;
}
.rc-footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}
.rc-footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.rc-footer-bottom {
    margin-top: 36px;
    padding: 18px 0;
    border-top: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.rc-footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.rc-footer-bottom a {
    color: var(--primary-light);
}

/* Footer custom HTML */
.rc-footer-custom-html {
    padding: 16px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* Footer column variants */
.rc-footer-grid.rc-footer-cols-2 { grid-template-columns: 2fr 1fr; }
.rc-footer-grid.rc-footer-cols-3 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.rc-footer-grid.rc-footer-cols-4 { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }

/* Footer style variants */
.rc-footer-glass {
    background: rgba(17, 17, 40, 0.6);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.rc-footer-minimal {
    background: transparent;
    border-top: 1px solid var(--border-color);
}

.rc-footer-gradient {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1) 0%, rgba(17, 17, 40, 0.95) 50%, rgba(251, 191, 36, 0.05) 100%);
    border-top: 2px solid rgba(109, 40, 217, 0.3);
}

@media (max-width: 768px) {
    .rc-footer-grid,
    .rc-footer-grid.rc-footer-cols-2,
    .rc-footer-grid.rc-footer-cols-3,
    .rc-footer-grid.rc-footer-cols-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---------- Cards ---------- */
.rc-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}
.rc-card:hover {
    border-color: var(--border-light);
}

/* ---------- Bootstrap Overrides (for plugins: vote, launcher, etc.) ---------- */
.card {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
}
.card-header {
    background: rgba(109, 40, 217, 0.1) !important;
    border-bottom: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.card-body {
    color: var(--text-primary) !important;
}
.card-footer {
    background: rgba(0,0,0,0.15) !important;
    border-top: 2px solid var(--border-color) !important;
}
.card-title, .card-header h5, .card-header h4, .card-header h3 {
    color: var(--text-primary) !important;
}
.card-text, .card-body p {
    color: var(--text-secondary) !important;
}

.table {
    color: var(--text-primary) !important;
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: rgba(109, 40, 217, 0.05) !important;
    --bs-table-hover-bg: rgba(109, 40, 217, 0.08) !important;
    --bs-table-border-color: var(--border-color) !important;
}
.table thead th {
    background: rgba(109, 40, 217, 0.1) !important;
    border-bottom: 2px solid var(--primary-dark) !important;
    color: var(--accent) !important;
    font-family: var(--font-mc);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    font-size: 0.85rem;
}
.table td, .table th {
    border-color: var(--border-color) !important;
    padding: 12px 16px !important;
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(109, 40, 217, 0.04) !important;
    color: var(--text-primary) !important;
}
.table-hover > tbody > tr:hover > * {
    background-color: rgba(109, 40, 217, 0.08) !important;
    color: var(--text-primary) !important;
}

/* List groups (used by many plugins) */
.list-group-item {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
.list-group-item.active {
    background: var(--primary) !important;
    border-color: var(--primary-dark) !important;
}

/* Modal overrides */
.modal-content {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}
.modal-header {
    border-bottom-color: var(--border-color) !important;
}
.modal-footer {
    border-top-color: var(--border-color) !important;
}
.modal-title {
    color: var(--text-primary) !important;
}
.btn-close {
    filter: invert(1) !important;
}

/* Badge overrides */
.badge.bg-primary { background: var(--primary) !important; }
.badge.bg-success { background: var(--success) !important; }
.badge.bg-danger { background: var(--danger) !important; }
.badge.bg-warning { background: var(--warning) !important; color: #1a1a2e !important; }
.badge.bg-info { background: var(--info) !important; }
.badge.bg-secondary { background: var(--bg-section) !important; }

/* Progress bar */
.progress {
    background: var(--bg-input) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
}
.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light)) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent !important;
}
.breadcrumb-item a {
    color: var(--primary-light) !important;
}
.breadcrumb-item.active {
    color: var(--text-muted) !important;
}

/* Select / dropdown overrides */
.form-select {
    background-color: var(--bg-input) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
}
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.form-check-input {
    background-color: var(--bg-input) !important;
    border-color: var(--border-color) !important;
}
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* General text color fixes for plugin pages */
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    color: var(--text-primary);
}
.content p, .content span, .content li {
    color: var(--text-secondary);
}
.content a {
    color: var(--primary-light);
}
.content a:hover {
    color: var(--accent);
}

/* ---------- Global dark text overrides (vote, shop, launcher, etc.) ---------- */
body, main, section, div, p, span, li, td, th, label, small, strong, b, em, i:not(.bi) {
    color: inherit;
}
#app {
    color: var(--text-primary);
}
/* Force all card/table text to be light */
.card, .card *, .table, .table * {
    color: inherit;
}
.card { color: var(--text-primary) !important; }
.card p, .card span, .card small, .card label, .card li, .card div:not([class*="bg-"]) {
    color: var(--text-secondary) !important;
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card .h1, .card .h2, .card .h3, .card .h4, .card .h5, .card .h6 {
    color: var(--text-primary) !important;
}
.card strong, .card b {
    color: var(--text-primary) !important;
}
/* Table row text */
.table td, .table th {
    color: var(--text-primary) !important;
}
.table a {
    color: var(--primary-light) !important;
}
.table a:hover {
    color: var(--accent) !important;
}
/* Links inside cards */
.card a:not(.btn) {
    color: var(--primary-light) !important;
}
.card a:not(.btn):hover {
    color: var(--accent) !important;
}
/* Vote plugin specific */
.vote-now, [class*="vote"] {
    color: var(--text-primary);
}
/* Any remaining dark text */
.text-black, .text-black-50 {
    color: var(--text-primary) !important;
}
p, span, small, label, li {
    color: var(--text-secondary);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}
strong, b {
    color: var(--text-primary);
}

/* ---------- Nav tabs & pills (profile, shop) ---------- */
.nav-tabs {
    border-bottom-color: var(--border-color) !important;
}
.nav-tabs .nav-link {
    color: var(--text-secondary) !important;
    border-color: transparent !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
}
.nav-tabs .nav-link:hover {
    color: var(--accent) !important;
    border-color: var(--border-color) var(--border-color) transparent !important;
    background: rgba(109, 40, 217, 0.05) !important;
}
.nav-tabs .nav-link.active {
    background: var(--bg-card) !important;
    color: var(--accent) !important;
    border-color: var(--border-color) var(--border-color) var(--bg-card) !important;
}
.nav-pills .nav-link {
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
}
.nav-pills .nav-link:hover {
    background: rgba(109, 40, 217, 0.1) !important;
    color: var(--primary-light) !important;
}
.nav-pills .nav-link.active {
    background: var(--primary) !important;
    color: #fff !important;
}
.tab-content {
    color: var(--text-primary) !important;
}

/* ---------- Accordion (used in some plugins) ---------- */
.accordion-item {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
.accordion-button {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    background: rgba(109, 40, 217, 0.1) !important;
    color: var(--accent) !important;
}
.accordion-button::after {
    filter: invert(1) !important;
}
.accordion-body {
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

/* ---------- Shop plugin overrides ---------- */
.shop-cart,
.shop-category,
.shop-package {
    color: var(--text-primary);
}
.shop-sidebar .list-group-item,
.shop-sidebar .card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Generic white background fixes for any plugin */
.bg-white, .bg-light {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}
.text-dark, .text-body {
    color: var(--text-primary) !important;
}
.text-muted {
    color: var(--text-muted) !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}
.border {
    border-color: var(--border-color) !important;
}
.border-top, .border-bottom, .border-start, .border-end {
    border-color: var(--border-color) !important;
}
.shadow, .shadow-sm, .shadow-lg {
    box-shadow: var(--shadow-md) !important;
}

/* Input group (used in profile, shop, etc.) */
.input-group-text {
    background: rgba(109, 40, 217, 0.1) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
}

/* Dropdown menus (Bootstrap) */
.dropdown-menu {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
}
.dropdown-item {
    color: var(--text-secondary) !important;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(109, 40, 217, 0.1) !important;
    color: var(--accent) !important;
}
.dropdown-divider {
    border-color: var(--border-color) !important;
}

/* Offcanvas (some plugins use it) */
.offcanvas {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}
.offcanvas-header {
    border-bottom-color: var(--border-color) !important;
}

/* Toast Bootstrap (not our custom one) */
.toast {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
.toast-header {
    background: rgba(109, 40, 217, 0.1) !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Popover & Tooltip */
.popover {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}
.popover-body {
    color: var(--text-secondary) !important;
}
.popover-header {
    background: rgba(109, 40, 217, 0.1) !important;
    border-bottom-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.93rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 2px solid;
}
.alert-success { background: rgba(85,204,85,0.1); border-color: rgba(85,204,85,0.3); color: var(--success); }
.alert-danger { background: rgba(255,85,85,0.1); border-color: rgba(255,85,85,0.3); color: var(--danger); }
.alert-warning { background: rgba(255,170,0,0.1); border-color: rgba(255,170,0,0.3); color: var(--warning); }
.alert-info { background: rgba(85,170,255,0.1); border-color: rgba(85,170,255,0.3); color: var(--info); }

/* ---------- Content ---------- */
.rc-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}
.rc-content h1 { font-size: 2rem; margin-bottom: 24px; }
.rc-content h2 { font-size: 1.4rem; margin: 32px 0 16px; }
.rc-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.rc-content img { border-radius: var(--radius-md); margin: 20px 0; }

/* ---------- Error Page ---------- */
.rc-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.rc-error-page h1 {
    font-size: 8rem;
    font-family: var(--font-mc);
    color: var(--danger);
    text-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    line-height: 1;
}
.rc-error-page h2 {
    font-size: 1.4rem;
    font-family: var(--font-mc);
    margin: 16px 0;
    color: var(--accent);
}
.rc-error-page p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    justify-content: center;
    margin-top: 40px;
}
.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}
.pagination .page-item .page-link:hover {
    background: rgba(109, 40, 217, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- Toast ---------- */
.rc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    border: 2px solid;
}
.rc-toast.show { transform: translateX(-50%) translateY(0); }
.rc-toast-success { background: rgba(85,204,85,0.15); border-color: rgba(85,204,85,0.3); color: var(--success); backdrop-filter: blur(10px); }
.rc-toast-error { background: rgba(255,85,85,0.15); border-color: rgba(255,85,85,0.3); color: var(--danger); backdrop-filter: blur(10px); }

/* ---------- Scroll to top ---------- */
.rc-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: linear-gradient(180deg, #9b59b6, var(--primary-dark));
    color: #fff;
    border: 3px solid var(--primary-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25), var(--shadow-md);
}
.rc-scroll-top.visible { display: flex; }
.rc-scroll-top:hover {
    filter: brightness(1.15);
    transform: translateY(-3px);
}

/* ---------- Scroll Animations ---------- */
/* Default: fade-up */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variant: fade only */
[data-scroll-anim="fade"] .fade-in { transform: none; }
[data-scroll-anim="fade"] .fade-in.visible { transform: none; }

/* Variant: slide-left */
[data-scroll-anim="slide-left"] .fade-in { transform: translateX(-30px); }
[data-scroll-anim="slide-left"] .fade-in.visible { transform: translateX(0); }

/* Variant: slide-right */
[data-scroll-anim="slide-right"] .fade-in { transform: translateX(30px); }
[data-scroll-anim="slide-right"] .fade-in.visible { transform: translateX(0); }

/* Variant: zoom */
[data-scroll-anim="zoom"] .fade-in { transform: scale(0.9); }
[data-scroll-anim="zoom"] .fade-in.visible { transform: scale(1); }

/* Variant: none */
[data-scroll-anim="none"] .fade-in { opacity: 1; transform: none; transition: none; }
[data-scroll-anim="none"] .fade-in.visible { opacity: 1; transform: none; }

/* ---------- Stats Bar (configurable) ---------- */
.rc-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.rc-stat-block {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(14,14,36,0.5) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.rc-stat-block::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}
.rc-stat-block:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.rc-stat-block:hover::before {
    opacity: 1;
}

.rc-stat-block-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.rc-stat-block-value {
    font-size: 2.4rem;
    font-family: var(--font-mc);
    color: var(--accent);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.4);
    margin-bottom: 4px;
}

.rc-stat-block-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ---------- Staff Grid ---------- */
.rc-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.rc-staff-card {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(14,14,36,0.5) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.rc-staff-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.rc-staff-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 3px solid var(--border-light);
    transition: var(--transition);
}
.rc-staff-card:hover .rc-staff-avatar {
    border-color: var(--primary-light);
}
.rc-staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.rc-staff-card h4 {
    font-family: var(--font-mc);
    font-size: 1rem;
    color: var(--text-primary);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    margin-bottom: 4px;
}

.rc-staff-role {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(109, 40, 217, 0.15);
    border: 1px solid rgba(109, 40, 217, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Staff avatar style variants */
.rc-avatar-square { border-radius: var(--radius-sm); }
.rc-avatar-round { border-radius: 50%; }
.rc-avatar-pixel { border-radius: 0; image-rendering: pixelated; }

/* Stats style variants */
.rc-stats-cards .rc-stat-block {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
}
.rc-stats-minimal .rc-stat-block {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
}
.rc-stats-gradient .rc-stat-block {
    background: linear-gradient(135deg, rgba(109,40,217,0.1) 0%, rgba(251,191,36,0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Discord style variants */
.rc-discord-centered .rc-discord-grid {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.rc-discord-centered .rc-discord-info { text-align: center; }
.rc-discord-compact { padding: 24px !important; }
.rc-discord-compact .rc-discord-grid { gap: 24px; }

/* ---------- CTA Section ---------- */
.rc-cta-section {
    position: relative;
    padding: 80px 40px;
    margin: 60px 0;
    border-radius: var(--radius-lg);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.rc-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(109,40,217,0.2) 0%, rgba(12,12,29,0.85) 100%);
    z-index: 1;
}

.rc-cta-content {
    position: relative;
    z-index: 2;
}

.rc-cta-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-family: var(--font-mc);
    color: #fff;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.5);
    margin-bottom: 16px;
}

.rc-cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* ===================================================================
   404 Error Page
   =================================================================== */

/* Base layout */
.rc-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rc-error-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 29, 0.75);
    z-index: 1;
}

.rc-error-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    width: 100%;
}

/* 404 code display */
.rc-error-code {
    font-family: var(--font-mc, 'Minecraft', monospace), monospace;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 16px;
    user-select: none;
    text-shadow: 0 0 40px var(--primary-glow);
}

/* Code animations */
.rc-error-anim-float {
    animation: rc-error-float 3s ease-in-out infinite;
}

.rc-error-anim-pulse {
    animation: rc-error-pulse 2s ease-in-out infinite;
}

.rc-error-anim-glitch {
    animation: rc-error-glitch 2.5s infinite;
    position: relative;
}

.rc-error-anim-bounce {
    animation: rc-error-bounce 2s ease infinite;
}

.rc-error-anim-none {
    animation: none;
}

@keyframes rc-error-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rc-error-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes rc-error-glitch {
    0%, 100% { transform: translate(0); text-shadow: 0 0 40px var(--primary-glow); }
    10% { transform: translate(-3px, 2px); text-shadow: 3px 0 var(--accent), -3px 0 var(--primary-light); }
    20% { transform: translate(3px, -2px); text-shadow: -3px 0 var(--accent), 3px 0 var(--primary-light); }
    30% { transform: translate(0); text-shadow: 0 0 40px var(--primary-glow); }
    40% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--primary-light), -2px 0 var(--accent); }
    50% { transform: translate(0); text-shadow: 0 0 40px var(--primary-glow); }
}

@keyframes rc-error-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-8px); }
}

/* Optional image */
.rc-error-image {
    max-width: 260px;
    max-height: 200px;
    margin: 0 auto 24px;
    display: block;
    object-fit: contain;
}

/* Text styling */
.rc-error-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.rc-error-content h2 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.rc-error-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Search bar */
.rc-error-search {
    margin-bottom: 28px;
}

.rc-error-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 8px 6px 14px;
    max-width: 420px;
    margin: 0 auto;
    transition: var(--transition);
}

.rc-error-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.rc-error-search-box i {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rc-error-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 6px 4px;
}

.rc-error-search-box input::placeholder {
    color: var(--text-secondary);
}

/* Buttons */
.rc-error-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rc-error-buttons .btn i {
    margin-right: 6px;
}

/* Particles */
.rc-error-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.rc-error-particles::before,
.rc-error-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    animation: rc-error-particle-drift 8s linear infinite;
}

.rc-error-particles::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    box-shadow:
        60px 40px 0 var(--primary-light),
        140px -30px 0 var(--accent),
        220px 60px 0 var(--primary),
        320px -20px 0 var(--primary-light),
        420px 50px 0 var(--accent),
        80px 120px 0 var(--primary),
        200px 100px 0 var(--accent);
}

.rc-error-particles::after {
    top: 60%;
    right: 10%;
    animation-delay: -4s;
    animation-direction: reverse;
    box-shadow:
        -50px -30px 0 var(--accent),
        -130px 40px 0 var(--primary),
        -210px -20px 0 var(--primary-light),
        -300px 30px 0 var(--accent),
        -60px 80px 0 var(--primary-light),
        -180px 60px 0 var(--primary);
}

@keyframes rc-error-particle-drift {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-5px) translateX(-8px); }
    75% { transform: translateY(-25px) translateX(5px); }
    100% { transform: translateY(0) translateX(0); }
}

/* ---- Style variants ---- */

/* Fullscreen: takes full viewport */
.rc-error-fullscreen {
    min-height: 100vh;
    padding: 0 20px;
}

/* Minimal: smaller, cleaner look */
.rc-error-minimal {
    min-height: 60vh;
}

.rc-error-minimal .rc-error-code {
    text-shadow: none;
}

.rc-error-minimal .rc-error-particles {
    display: none;
}

/* Fun: playful with accent colors */
.rc-error-fun .rc-error-code {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}

.rc-error-fun .rc-error-content h1 {
    color: var(--accent);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 576px) {
    .rc-hero { min-height: 80vh; padding: 90px 16px 60px; }
    .rc-hero h1 { font-size: 2rem; }
    .rc-section { padding: 40px 0; }
    .rc-server-status { flex-direction: column; text-align: center; gap: 12px; }
    .rc-articles-grid { grid-template-columns: 1fr; }
    .rc-features-grid { grid-template-columns: 1fr !important; }
    .rc-staff-grid { grid-template-columns: repeat(2, 1fr); }
    .rc-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .rc-cta-section { padding: 50px 20px; margin: 30px 0; }

    /* 404 responsive */
    .rc-error-page { min-height: 70vh; padding: 40px 16px; }
    .rc-error-code { font-size: 5rem !important; }
    .rc-error-content h1 { font-size: 1.4rem; }
    .rc-error-image { max-width: 180px; }
    .rc-error-buttons { flex-direction: column; align-items: center; }
    .rc-error-search-box { flex-direction: column; padding: 10px; }
    .rc-error-search-box input { width: 100%; text-align: center; }
}
