:root {
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-header: "Oswald", sans-serif;

    /* Text */
    --text: rgba(240, 245, 255, 0.95);
    --text-2: rgba(180, 190, 210, 0.85);
    --muted: rgba(130, 140, 160, 0.70);

    /* Dark scale */
    --bg: #080C14;
    --bg-2: #0F1419;

    /* Surfaces */
    --surface: linear-gradient(135deg, rgba(20, 24, 32, 1), rgba(16, 20, 28, 0.98));
    --elevated: linear-gradient(135deg, rgba(26, 30, 38, 0.95), rgba(22, 26, 34, 0.95));
    --sunken: linear-gradient(135deg, rgba(14, 18, 26, 1), rgba(10, 14, 22, 1));
    --input-bg: linear-gradient(135deg, rgba(10, 10, 15, 0.35), rgba(15, 15, 20, 0.45));

    /* Borders */
    --border: rgba(50, 60, 80, 0.40);
    --border-2: rgba(40, 50, 70, 0.22);

    /* Shadows */
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.55);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.45);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);

    /* Accents */
    --accent: #1E88E5;
    --accent-2: #0D47A1;
    --accent-rgb: 30, 136, 229;

    /* Success hint (subtle) */
    --hint: rgba(187, 214, 91, 0.60);
    --hint-solid: #bbd65b;

    --glow: 0 0 14px rgba(30, 136, 229, 0.18);

    /* Radius */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    color: var(--text);
    overflow-x: hidden;

    background:
            linear-gradient(rgba(12, 14, 18, 0.98), rgba(12, 14, 18, 0.96)),
            url('/images/wallpaper.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-container { min-height: 100vh; }
#content { padding-bottom: 40px; }

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* Scrollbar */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: rgba(0,0,0,0.15); }
*::-webkit-scrollbar-thumb {
    background: rgba(80, 90, 110, 0.55);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(110, 120, 150, 0.60); }

/* ================================== */
/* NAVBAR */
/* ================================== */
.navbar {
    width: min(1200px, calc(100% - 28px));
    margin: 22px auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 10px 14px;
    border-radius: 16px;

    background: var(--elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right { justify-content: flex-end; }

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.nav-logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Center nav links (ul/li/a version) */
.nav-links{
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-links li{ margin: 0; padding: 0; }

.nav-links a{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 12px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;

    color: rgba(230, 240, 255, 0.82);

    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover{
    transform: translateY(-1px);
    border-color: rgba(80, 100, 140, 0.45);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Optional: “active page” highlight (if you add aria-current="page") */
.nav-links a[aria-current="page"]{
    background: rgba(30,136,229,0.12);
    border-color: rgba(30,136,229,0.35);
    box-shadow: var(--glow);
    color: rgba(245,250,255,0.95);
}


.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 12px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;

    color: rgba(230, 240, 255, 0.82);
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);

    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(80, 100, 140, 0.45);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-btn-ghost { background: rgba(255,255,255,0.03); }


/* ================================== */
/* HERO */
/* ================================== */
.vynix-hero{
    width: min(1180px, calc(100% - 48px));
    margin: 24px auto 18px;

    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}

.vynix-hero-inner{
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 18px;
    padding: 28px;
    align-items: start;
}

.vynix-badge{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.22);
    color: var(--text-2);
    font-weight: 800;
}

.vynix-badge .spark{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hint-solid);
    box-shadow: 0 0 12px rgba(187,214,91,0.18);
}

.vynix-title{
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(2.8rem, 4.6vw, 4.6rem);
    line-height: 0.95;
    margin: 14px 0 10px;
    color: rgba(245, 245, 245, 0.85);
}

.vynix-title .brand {
    background: linear-gradient(80deg, rgba(47, 238, 230, 0.66), rgba(170, 42, 128, 0.88));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vynix-lead{
    color: var(--text-2);
    font-size: 1.05rem;
    max-width: 70ch;
    margin: 0 0 16px;
}

.vynix-chips{
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px;
}

.vynix-chip{
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.18);
    color: rgba(200,210,230,0.64);
    font-weight: 700;
    font-size: 0.92rem;
}

.vynix-cta-row{
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* CTA buttons */
.connect-btn,
.vynix-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 16px;
    border-radius: 12px;

    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: rgba(245,250,255,0.94);
    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.connect-btn:hover,
.vynix-btn:hover {
    transform: translateY(-1px);

    background: linear-gradient(
            80deg,
            rgba(0, 229, 255, 0.08),
            rgba(255, 0, 170, 0.08)
    ),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(12,14,18,0.35));

    border-color: rgba(0, 229, 255, 0.25);

    box-shadow:
            var(--shadow-sm),
            inset 0 2px 10px rgba(0,0,0,0.35);
}

.connect-btn:active,
.vynix-btn:active{
    transform: translateY(0);
    box-shadow: var(--shadow-sm), inset 0 2px 10px rgba(0,0,0,0.35);
}

/* Online indicator */
.online-indicator{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(210,220,235,0.78);
    font-weight: 700;
}

.status-dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(180,190,210,0.35);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.status-dot.online{
    background: var(--hint-solid);
    box-shadow: 0 0 12px rgba(187,214,91,0.18);
}
.status-dot.offline{
    background: rgba(194, 80, 80, 0.85);
    box-shadow: 0 0 12px rgba(194,80,80,0.14);
}

/* Right hero card */
.vynix-card{
    align-self: start;
}

.vynix-card-body{
    padding: 18px;
    display:flex;
    flex-direction:column;
    gap: 12px;
}

.vynix-metric{
    display:flex;
    align-items: baseline;
    justify-content: space-between;
}

.vynix-metric .label{
    color: rgba(210,220,240,0.62);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    font-weight: 900;
    margin: 0;
}

.vynix-metric .value{
    font-family: var(--font-header);
    font-size: 2.6rem;
    letter-spacing: 0.04em;
}

.vynix-divider{
    height: 1px;
    background: rgba(255,255,255,0.10);
}

.vynix-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: center;
}

.vynix-mini .box {
    border-radius: 12px;
    padding: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;     /* horizontal center */
    justify-content: center; /* vertical center */
    text-align: center;      /* center the text itself */
}

.vynix-mini .box .k{
    font-size: 0.72rem;
    color: rgba(200,210,230,0.58);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 6px;
}

.vynix-mini .box .v{
    font-weight: 900;
    color: rgba(230,240,255,0.82);
}

/* ================================== */
/* MODULES + SOCIALS */
/* ================================== */
.vynix-modules{
    width: min(1180px, calc(100% - 48px));
    margin: 18px auto 50px;
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Responsive modules grid */
@media (max-width: 980px){
    .vynix-modules{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
    .vynix-modules{ grid-template-columns: 1fr; }
}

.vynix-module{
    border-radius: 16px;
    border: 1px solid rgba(50, 60, 80, 0.34);
    background: linear-gradient(180deg, rgba(0,0,0,0.14), rgba(12,14,18,0.26));
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 18px;
}

.vynix-module .tag{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(230,240,255,0.62);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 900;
}

.vynix-module .module-media{
    margin-top: 12px;
    height: 120px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);

    /* Default “art” if no image is provided */
    background:
            radial-gradient(120px 80px at 20% 25%, rgba(30,136,229,0.28), transparent 60%),
            radial-gradient(140px 90px at 75% 65%, rgba(187,214,91,0.14), transparent 60%),
            linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.35));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);

    /* If you set `style="background-image:url(...)"` on the element,
       it will override the default via background-image layering. */
    background-size: cover;
    background-position: center;
}

.vynix-module h3{
    margin: 12px 0 0;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1.4rem;
}

.vynix-module p{
    text-align: center;
    margin: 10px 0 0;
    color: rgba(200,210,230,0.62);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Social section */
.follow-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 60px;
}

.follow-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.follow-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;

    border-radius: 14px;
    border: 1px solid rgba(50, 60, 80, 0.30);
    background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(12,14,18,0.35));
    color: var(--text);
    text-decoration: none;

    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.follow-link i {
    font-size: 1.35rem;
    color: rgba(230,240,255,0.72);
}

.follow-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(
            80deg,
            rgba(0, 229, 255, 0.10),
            rgba(255, 0, 170, 0.10)
    ),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(12,14,18,0.35));

    border-color: rgba(0, 229, 255, 0.25);
}


.welcome-message {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-2);
}

/* ================================
   PROFILE PAGE
================================ */
.profile-content {
    width: min(1180px, calc(100% - 48px));
    margin: 40px auto;
}

.profile-main-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
}

.profile-summary-card {
    background: var(--elevated);
    border: 1px solid rgba(50, 60, 80, 0.38);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: center;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 14px;
}

.discord-tag {
    color: rgba(200,210,230,0.70);
    font-size: 0.95rem;
}

.profile-tabs {
    background: var(--surface);
    border: 1px solid rgba(50, 60, 80, 0.32);
    border-radius: 16px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 18px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    color: rgba(220,230,245,0.82);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    cursor: pointer;
}

.tab-btn.active {
    border-color: rgba(30,136,229,0.40);
    background: rgba(30,136,229,0.10);
    box-shadow: var(--glow);
}

.tab-content-area { margin-top: 16px; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.character-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.character-card {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 14px;
}

.char-info {
    display: grid;
    gap: 6px;
    color: rgba(210,220,235,0.78);
}

.reputation {
    display: grid;
    gap: 10px;
}

.rep {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(220,230,245,0.78);
}

.rep-change.positive { color: rgba(187,214,91,0.85); }
.rep-change.negative { color: rgba(255,120,120,0.85); }

.score-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
}

.bar-bg { width: 100%; height: 100%; }
.bar-fg { height: 100%; border-radius: 999px; background: rgba(30,136,229,0.55); }

.score-bar-info {
    color: rgba(190,200,220,0.70);
    font-size: 0.92rem;
}

.history-panel {
    display: grid;
    gap: 12px;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.history-meta {
    color: rgba(190,200,220,0.70);
    font-size: 0.92rem;
}

/* ================================
   ROADMAP
================================ */
.roadmap-container {
    width: min(1180px, calc(100% - 48px));
    margin: 40px auto;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
}

.page-header p {
    color: rgba(190,200,220,0.75);
    margin: 0;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    align-items: start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(30,136,229,0.60);
    box-shadow: 0 0 16px rgba(30,136,229,0.15);
    margin-top: 8px;
}

.timeline-content {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 16px;
}

.timeline-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.phase-quarter {
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(230,240,255,0.86);
}

.phase-status {
    color: rgba(190,200,220,0.75);
    font-size: 0.92rem;
}

.phase-items {
    margin: 0;
    padding-left: 18px;
    color: rgba(200,210,230,0.74);
}

/* ================================
   RULES
================================ */
.rules-content {
    width: min(1180px, calc(100% - 48px));
    margin: 40px auto;
    display: grid;
    gap: 16px;
}

.rule-category {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 18px;
}

.rule-category h2 {
    margin: 0 0 10px;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rules-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(200,210,230,0.78);
    line-height: 1.65;
}

/* ================================
   CHANGELOGS
================================ */
.changelogs-content {
    width: min(1180px, calc(100% - 48px));
    margin: 40px auto;
    display: grid;
    gap: 16px;
}

.changelog-entry {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 18px;
}

.changelog-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.changelog-header h2 {
    margin: 0;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.changelog-date {
    color: rgba(190,200,220,0.75);
    font-size: 0.92rem;
}

.changes-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(200,210,230,0.78);
    line-height: 1.65;
}

.change-type {
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

/* ================================
   PATCHNOTES (Discord-style)
================================ */
.patches-page{
    width: min(1180px, calc(100% - 48px));
    margin: 38px auto 70px;
}

.patches-header{
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid rgba(50,60,80,0.32);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
}

.patches-title{
    margin: 0;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 2.2rem;
}

.patches-subtitle{
    margin: 6px 0 0;
    color: rgba(190,200,220,0.76);
}

.patches-tools{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.patches-search{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.patches-search i{ color: rgba(200,210,230,0.60); }

.patches-search input{
    width: 100%;
    outline: none;
    border: none;
    background: transparent;
    color: rgba(240,245,255,0.92);
    font-weight: 650;
}

.patches-actions{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.patch-btn{
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(220,230,245,0.78);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.patch-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(80,100,140,0.45);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}

.patches-list{
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.patch-card{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

.patch-top{
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 16px 16px;
}

.patch-title{
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;

    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.35rem;
}

.patch-title-strong{ color: rgba(245,250,255,0.95); }
.patch-title-date{ color: rgba(190,200,220,0.78); font-size: 1rem; letter-spacing: 0.02em; }

.patch-meta{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: rgba(190,200,220,0.70);
    font-weight: 700;
    font-size: 0.92rem;
}

.patch-meta-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(187,214,91,0.65);
    box-shadow: 0 0 12px rgba(187,214,91,0.14);
}

.patch-chevron{
    opacity: 0.72;
    transition: transform 0.18s ease, opacity 0.2s ease;
}
.patch-chevron.open{
    transform: rotate(180deg);
    opacity: 0.95;
}

.patch-body{
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* This is the “Discord bullet vibe” */
.patch-list{
    margin: 0;
    padding-left: 20px;
    color: rgba(210,220,235,0.82);
    line-height: 1.65;
    display: grid;
    gap: 8px;
}

.patch-item{
    color: rgba(210,220,235,0.82);
}

.patch-sublist{
    margin-top: 8px;
    padding-left: 18px;
    color: rgba(200,210,230,0.72);
    display: grid;
    gap: 6px;
}

.patch-section{
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.patch-section-title{
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(230,240,255,0.72);
    margin-bottom: 10px;
}

.patch-footer{
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.patch-tag{
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(230,240,255,0.78);
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 0.70rem;
}

/* Responsive */
@media (max-width: 900px){
    .patches-tools{ grid-template-columns: 1fr; }
    .patches-actions{ justify-content: flex-start; }
}

/* ================================
   RULES (Search + Categories)
================================ */
.rules-page{
    width: min(1180px, calc(100% - 48px));
    margin: 38px auto 70px;
}

.rules-header{
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid rgba(50, 60, 80, 0.32);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
}

.rules-title{
    margin: 0;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 2.2rem;
}

.rules-subtitle{
    margin: 6px 0 0;
    color: rgba(190,200,220,0.76);
}

.rules-tools{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.rules-search{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.rules-search i{ color: rgba(200,210,230,0.60); }

.rules-search input{
    width: 100%;
    outline: none;
    border: none;
    background: transparent;
    color: rgba(240,245,255,0.92);
    font-weight: 650;
}

.rules-actions{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.rules-btn{
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(220,230,245,0.78);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rules-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(80,100,140,0.45);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}

.rules-layout{
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    margin-top: 14px;
}

.rules-sidebar{
    position: sticky;
    top: 18px;
    align-self: start;
}

.rules-sidebar-card{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 16px;
}

.rules-sidebar-title{
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(230,240,255,0.72);
    margin-bottom: 12px;
}

.rules-nav{
    display: grid;
    gap: 10px;
}

.rules-nav-link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(230,240,255,0.80);
    font-weight: 850;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rules-nav-link:hover{
    transform: translateY(-1px);
    border-color: rgba(80,100,140,0.45);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}

.rules-nav-link.active{
    background: rgba(30,136,229,0.12);
    border-color: rgba(30,136,229,0.35);
    box-shadow: var(--glow);
    color: rgba(245,250,255,0.95);
}

.rules-nav-count{
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.22);
    color: rgba(200,210,230,0.78);
    font-size: 0.82rem;
}

.rules-sidebar-hint{
    margin-top: 12px;
    color: rgba(190,200,220,0.70);
    line-height: 1.55;
    font-size: 0.92rem;
}

.rules-main{ display: grid; gap: 14px; }

.rules-card{
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

.rules-card-top{
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.rules-card-top-static{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.rules-card-title{
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.4rem;
}

.rules-card-desc{
    margin-top: 6px;
    color: rgba(190,200,220,0.72);
    font-size: 0.95rem;
}

.rules-card-right{
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.rules-pill{
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.22);
    color: rgba(230,240,255,0.78);
    font-weight: 900;
}

.rules-chevron{
    opacity: 0.72;
    transition: transform 0.18s ease, opacity 0.2s ease;
}
.rules-chevron.open{
    transform: rotate(180deg);
    opacity: 0.95;
}

.rules-card-body{
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.rules-list{
    margin: 14px 0 0;
    padding-left: 20px;
    color: rgba(210,220,235,0.82);
    line-height: 1.65;
    display: grid;
    gap: 10px;
}

.rule-item{
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.rule-text{ font-weight: 800; color: rgba(240,245,255,0.90); }

.rule-note{
    margin-top: 6px;
    color: rgba(200,210,230,0.70);
    line-height: 1.55;
}

/* Rule blocks (title + description + bullets) */
.rule-block{
    list-style: none;
    padding: 14px;
    border-radius: 14px;
}

.rule-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rule-title{
    font-weight: 900;
    color: rgba(245,250,255,0.92);
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.rule-desc{
    margin-top: 8px;
    color: rgba(200,210,230,0.72);
    line-height: 1.6;
}

.rule-bullets{
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(210,220,235,0.78);
    line-height: 1.65;
    display: grid;
    gap: 6px;
}