:root {
    --bg-color: #070709;
    --card-bg: #101015;
    --border-color: #1c1c24;
    --text-main: #ffffff;
    --text-muted: #8a8a9e;
    --accent-red: #ff3333;
    --accent-gold: #ffaa00;
    --gradient-brand: linear-gradient(135deg, #ffaa00 0%, #ff3333 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Loading Screen Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo-box {
    background: var(--gradient-brand);
    color: #111;
    font-weight: 900;
    font-size: 2.2rem;
    width: 72px;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    box-shadow: 0 0 35px rgba(255, 110, 0, 0.35);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loader-content h2 {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.highlight-title {
    color: var(--accent-red);
}

.loader-sub {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.loading-bar-container {
    width: 240px;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-brand);
    animation: loadProgress 1.2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.loader-footer-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.loader-dev-text {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Background Grid & Floating Particle Dots */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background-image: linear-gradient(rgba(28, 28, 36, 0.3) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(28, 28, 36, 0.3) 1px, transparent 1px);
    background-size: 55px 55px;
}

.particle-background span {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-red);
    animation: floatParticle 14s infinite linear;
    opacity: 0.5;
}

.particle-background span:nth-child(1) { top: 15%; left: 25%; animation-duration: 11s; }
.particle-background span:nth-child(2) { top: 75%; left: 75%; animation-duration: 16s; animation-delay: 2s; }
.particle-background span:nth-child(3) { top: 45%; left: 35%; animation-duration: 13s; animation-delay: 1s; }
.particle-background span:nth-child(4) { top: 80%; left: 20%; animation-duration: 19s; animation-delay: 3s; }
.particle-background span:nth-child(5) { top: 20%; left: 80%; animation-duration: 15s; animation-delay: 4s; }
.particle-background span:nth-child(6) { top: 55%; left: 65%; animation-duration: 10s; animation-delay: 2.5s; }
.particle-background span:nth-child(7) { top: 10%; left: 55%; animation-duration: 14s; animation-delay: 0.5s; }
.particle-background span:nth-child(8) { top: 85%; left: 60%; animation-duration: 21s; animation-delay: 1.5s; }
.particle-background span:nth-child(9) { top: 30%; left: 15%; animation-duration: 12s; animation-delay: 3.5s; }
.particle-background span:nth-child(10) { top: 65%; left: 40%; animation-duration: 17s; animation-delay: 2s; }

@keyframes floatParticle {
    0% { transform: translateY(0px) translateX(0px); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-90px) translateX(40px); opacity: 0; }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-box {
    background: var(--gradient-brand);
    color: #111;
    font-weight: 900;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.system-stats-top {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.system-stats-top strong {
    color: var(--text-main);
}

.btn-discord {
    background: var(--accent-red);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-discord:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5rem 1rem 4rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(28, 28, 36, 0.7);
    border: 1px solid var(--border-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.secondary-badge {
    color: var(--accent-red);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.secondary-dot {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.server-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.highlight-orange {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-orange {
    background: var(--gradient-brand);
    color: #111;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 110, 0, 0.3);
    transition: transform 0.2s, opacity 0.2s;
}

.btn-orange:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn-dark {
    background: rgba(28, 28, 36, 0.8);
    color: white;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-dark:hover {
    background: rgba(38, 38, 48, 1);
}

.feature-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feature-pills strong {
    color: var(--text-main);
    margin-left: 0.25rem;
}

/* Cards Section */
.cards-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 5rem 2rem;
    position: relative;
    z-index: 2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 51, 51, 0.4);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 51, 51, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Subpages General Styling */
.subpage-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.subpage-header {
    text-align: center;
    margin-bottom: 3rem;
}

.subpage-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.subpage-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Info Grid Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-card li strong {
    color: var(--text-main);
}

/* Rules List Styles */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rule-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.rule-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-red);
    background: rgba(255, 51, 51, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.rule-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.rule-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Ranks Grid Styles */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rank-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.featured-rank {
    border-color: var(--accent-orange, #ffaa00);
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.15);
}

.rank-badge-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.rank-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.rank-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: auto;
}

.rank-card li {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Staff Grid Styles */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.staff-avatar {
    font-size: 2.5rem;
    width: 75px;
    height: 75px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(28, 28, 36, 0.8);
    border: 1px solid var(--border-color);
}

.staff-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.staff-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.owner-role { background: rgba(255, 170, 0, 0.15); color: var(--accent-gold); }
.admin-role { background: rgba(255, 51, 51, 0.15); color: var(--accent-red); }
.mod-role { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.staff-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}