/* ============================================================
   BASE
============================================================ */

body {
    margin: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    background: #181a20;
    color: #e6e8ee;
    font-size: 14px;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #222530 0%, #181a20 65%);
    z-index: -1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: #2a2c35;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border: 1px solid #4da6ff;
    background-color: #32343f;
}

.card h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #4da6ff;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
    padding: 30px 20px 50px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    color: #7d8595;
}

.site-footer p {
    margin: 6px 0;
}

.site-footer a {
    color: #5bb0ff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .copyright {
    margin-top: 10px;
    font-size: 11px;
    color: #5f6674;
}
/* ============================================================
   HEADER
============================================================ */

header {
    padding: 40px 0 20px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: #5bb0ff;
}

header p {
    margin-top: 10px;
    font-size: 14px;
    color: #9aa2b1;
}

/* ============================================================
   MAIN CONTAINER (PROPER PAGE MARGINS)
============================================================ */

.container {
    max-width: 1350px;
    margin: 0 auto 80px auto;  /* bottom breathing room */
    padding: 0 60px;           /* left & right spacing */
}

/* ============================================================
   LAYOUT
============================================================ */

.quests-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* VERY IMPORTANT for proper scrolling */
}

/* ============================================================
   SEARCH BAR
============================================================ */

.top-bar {
    margin-bottom: 20px;
}

.top-bar input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    background: #2b2d31;
    color: #dbdee1;
    font-size: 14px;
}

.top-bar input:focus {
    outline: none;
    background: #1a1c1f;
}

/* ============================================================
   DISCORD TABLE SYSTEM
============================================================ */

/* Base table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Container */
.table-container {
    background: #2b2d31;                 /* Discord panel */
    border-radius: 10px;
    border: 1px solid #1e1f22;           /* Subtle Discord border */
    overflow: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Header row */
.table-container thead {
    background: #232428;                 /* Discord header strip */
}

/* Header cells */
th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    color: #b5bac1;                      /* Discord muted text */
    border-bottom: 1px solid #1e1f22;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Body wrapper */
.table-container tbody {
    flex: 1;
    overflow-y: auto;
    display: block;
}

/* Table alignment fix */
.table-container thead,
.table-container tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* Body cells */
td {
    padding: 12px 16px;
    border-bottom: 1px solid #1e1f22;
    color: #dbdee1;                      /* Primary Discord text */
    line-height: 1.5;
}

/* Alternating rows (very subtle) */
tbody tr:nth-child(even) {
    background: #2f3136;                 /* Very subtle variation */
}

/* Hover */
tbody tr:hover {
    background: #404249;                 /* Discord hover */
    transition: background 0.12s ease;
}
/* ============================================================
   PAGINATION
============================================================ */

.pagination {
    padding: 15px 0 5px;
    text-align: center;
}

.pagination button {
    background: #2b2d31;
    border: none;
    color: #dbdee1;
    padding: 6px 10px;
    margin: 0 4px;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover {
    background: #404249;
}

.pagination button.active {
    background: #5865f2;
    color: white;
}

/* ============================================================
   SCROLLBAR
============================================================ */

.table-container tbody::-webkit-scrollbar {
    width: 8px;
}

.table-container tbody::-webkit-scrollbar-thumb {
    background: #3a3f4d;
    border-radius: 10px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {
    .quests-layout {
        flex-direction: column;
    }

    .container {
        padding: 0 25px;
    }
}

th.filterable,
th.sortable {
    cursor: pointer;
    position: relative;
    transition: 0.2s ease;
}

th.filterable:hover,
th.sortable:hover {
    background: #2c3140;
}

th.sortable::after {
    content: " ⇅";
    font-size: 11px;
    opacity: 0.6;
}

.guide-section {
    margin-top: -10px;
    margin-bottom: 5px;
}

.guide-section h3 {
    font-size: 18px;
    color: #5bb0ff;
    border-left: 4px solid #5bb0ff;
    padding-left: 12px;
}

.guide-section ul {
    padding-left: 18px;
    line-height: 1.7;
}

.guide-section li {
    margin-bottom: 8px;
    color: #cfd3da;
}

/* Stat Grid */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-box {
    background: #1c1f28;
    border: 1px solid #2f3442;
    border-radius: 12px;
    padding: 15px;
    transition: 0.2s ease;
}

.stat-box:hover {
    border-color: #5bb0ff;
    transform: translateY(-2px);
}

.stat-box h4 {
    margin: 0 0 8px;
    color: #5bb0ff;
    font-size: 14px;
}

/* Class Grid */

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.class-card {
    background: linear-gradient(135deg, #20232d, #1a1d25);
    border: 1px solid #2e3240;
    border-radius: 14px;
    padding: 18px;
    transition: 0.25s ease;
}

.class-card:hover {
    border-color: #5bb0ff;
    transform: translateY(-3px);
}

.class-card h4 {
    margin: 0 0 10px;
    color: #5bb0ff;
    font-size: 15px;
}

.class-card p {
    font-size: 13px;
    color: #cfd3da;
    line-height: 1.6;
}

.guide-note {
    margin-top: 15px;
    font-size: 13px;
    color: #9aa2b1;
    font-style: italic;
}

/* ============================================================
   ELEMENTAL EFFECTS
============================================================ */

.element-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.element-card {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #2e3240;
    background: #1c1f28;
    transition: 0.25s ease;
}

.element-card h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.element-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #cfd3da;
}

/* Element Colors */

.element-card.fire {
    border-left: 4px solid #ff5b5b;
}

.element-card.poison {
    border-left: 4px solid #38c172;
}

.element-card.ice {
    border-left: 4px solid #5bb0ff;
}

.element-card.electric {
    border-left: 4px solid #f7d046;
}

.element-card:hover {
    transform: translateY(-3px);
    border-color: #5bb0ff;
}

/* ============================================================
   HISTORY TIMELINE
============================================================ */

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #5bb0ff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(91,176,255,0.6);
}

.timeline-year {
    font-weight: 600;
    color: #5bb0ff;
    margin-bottom: 6px;
    font-size: 14px;
}

.timeline-content {
    font-size: 13px;
    color: #cfd3da;
    line-height: 1.6;
}

.history-closing {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2f3442;
    font-size: 14px;
    line-height: 1.7;
    color: #cfd3da;
}

.history-credit {
    margin-top: 15px;
    font-size: 12px;
    color: #9aa2b1;
    font-style: italic;
}
/* ============================================================
   STAT BUILD INSIGHTS
============================================================ */

.stat-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.stat-detail {
    background: #1a1d25;
    border: 1px solid #2f3442;
    border-radius: 14px;
    padding: 18px;
    transition: 0.25s ease;
}

.stat-detail:hover {
    border-color: #5bb0ff;
    transform: translateY(-3px);
}

.stat-detail h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #5bb0ff;
}

.stat-detail p {
    font-size: 13px;
    line-height: 1.6;
    color: #cfd3da;
}
/* ============================================================
   FAQ / UPGRADING STYLING
============================================================ */

.faq-item {
    background: #1a1d25;
    border: 1px solid #2f3442;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    transition: 0.25s ease;
}

.faq-item:hover {
    border-color: #5bb0ff;
}

.faq-item h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #5bb0ff;
}

.faq-item p,
.faq-item li {
    font-size: 13px;
    color: #cfd3da;
    line-height: 1.6;
}

.faq-item ul {
    padding-left: 18px;
}

/* Warning & Danger Styles */

.faq-item.warning {
    border-left: 4px solid #f7d046;
}

.faq-item.danger {
    border-left: 4px solid #ff5b5b;
}


.upgrade-table {
    display: grid;
    grid-template-columns: auto 80px;
    gap: 8px 30px;
    width: fit-content;
    margin-top: 10px;
    font-size: 14px;
}

.upgrade-table div:nth-child(odd) {
    color: #b5bac1;
}

.upgrade-table div:nth-child(even) {
    color: #5bb0ff;
    font-weight: 600;
    text-align: right;
}
/* ============================================================
   GANG / CLUB STYLING
============================================================ */

.info-box {
    background: #1a1d25;
    border: 1px solid #2f3442;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
}

.info-box ul {
    padding-left: 18px;
}

.info-box li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #cfd3da;
}

.info-box.highlight {
    border-left: 4px solid #5bb0ff;
}
/* ============================================================
   ELEMENTS PROPERTY STYLING
============================================================ */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

.property-card {
    background: #1a1d25;
    border: 1px solid #2f3442;
    border-radius: 14px;
    padding: 16px;
    transition: 0.25s ease;
}

.property-card:hover {
    border-color: #5bb0ff;
    transform: translateY(-3px);
}

.property-card h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #5bb0ff;
}

.property-card ul {
    padding-left: 18px;
}

.property-card li {
    font-size: 13px;
    color: #cfd3da;
    margin-bottom: 6px;
}

.property-card.highlight {
    border-left: 4px solid #f7d046;
}
/* ============================================================
   MOBILE RESPONSIVE - QUESTS
============================================================ */

@media (max-width: 768px) {

    header {
        padding: 25px 0 15px;
    }

    header h1 {
        font-size: 22px;
    }

    .top-bar input {
        padding: 12px 14px;
        font-size: 13px;
    }

    th, td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .pagination button {
        padding: 6px 10px;
        font-size: 12px;
        margin: 0 4px;
    }
    .quests-layout {
        height: auto;
        padding: 0 15px 20px 15px;
    }

    .quests-main {
        min-height: auto;
    }
	    .table-container {
        overflow-x: auto;
    }

    .table-container table {
        min-width: 900px;
    }
    .table-container tbody {
        max-height: none;
    }
}
/* ============================================================
   MOBILE RESPONSIVE - GUIDES
============================================================ */

@media (max-width: 768px) {

    .guides-container {
        padding: 0 18px;
        margin: 20px auto 60px auto;
    }

    .guide-card {
        border-radius: 12px;
    }

    .guide-header {
        padding: 16px;
        font-size: 15px;
    }

    .guide-section h3 {
        font-size: 16px;
    }

    .guide-section ul {
        padding-left: 16px;
    }

    .guide-content {
        font-size: 13px;
    }

    /* Adjust expanded height for mobile */
    .guide-card.active .guide-content {
        max-height: 60vh;
    }

    /* Stack grids cleanly */
    .stat-grid,
    .class-grid,
	.element-grid {
        grid-template-columns: 1fr;
    }
	
    .timeline {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -28px;
    }
	.property-grid {
    grid-template-columns: 1fr;
	}
}
/* ============================================================
   DISCORD STYLE LAYOUT
============================================================ */

.discord-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;   /* prevents double scroll + overlap */
    background: #313338;
}

/* ================= CHANNEL SIDEBAR ================= */

.channel-sidebar {
    width: 240px;
    background: #2b2d31;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.server-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
}

.channel-group {
    margin-bottom: 20px;
}

.channel-title {
    font-size: 11px;
    color: #8e9297;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.channel-link {
    display: block;
    padding: 6px 8px;
    margin-top: 6px;
    border-radius: 6px;
    color: #dbdee1;
    text-decoration: none;
    font-size: 14px;
    transition: 0.15s ease;
}

.channel-link:hover {
    background: #404249;
}

.channel-link.active {
    background: #404249;
    font-weight: 600;
}

.channel-link.disabled {
    color: #6d6f78;
    cursor: not-allowed;
}

/* ================= MAIN AREA ================= */

.discord-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #313338;
    min-width: 0;     /* FIXES flex overflow bug */
}

.discord-header {
    height: 48px;
    border-bottom: 1px solid #232428;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
}

.discord-content {
    flex: 1;
    overflow: hidden;   /* contain inner scroll */
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
}

.discord-content h2 {
    margin-top: 0;
    color: white;
}

.discord-content p {
    color: #b5bac1;
    line-height: 1.6;
}
/* ============================================================
   DISCORD GUIDES GRID
============================================================ */

.guides-content {
    overflow-y: auto;
    min-height: 0;
}

.guide-grid-discord {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.guide-discord-card {
    background: #2b2d31;
    border-radius: 8px;
    padding: 18px;
    text-decoration: none;
    color: #dbdee1;
    transition: 0.15s ease;
    border: 1px solid transparent;
}

.guide-discord-card:hover {
    background: #404249;
    border-color: #5865f2;
    transform: translateY(-2px);
}

.guide-discord-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: white;
}

.guide-discord-card p {
    margin: 0;
    font-size: 13px;
    color: #b5bac1;
}
/* ============================================================
   DISCORD GUIDE READING PAGE
============================================================ */

.guide-reading {
    overflow-y: auto;
    min-height: 0;
    padding: 25px 40px;
    width: 100%;
    max-width: none;
}

/* Breadcrumb */

.breadcrumb-discord {
    font-size: 13px;
    margin-bottom: 20px;
    color: #8e9297;
}

.breadcrumb-discord a {
    color: #5865f2;
    text-decoration: none;
}

.breadcrumb-discord span {
    margin: 0 6px;
}

/* Intro */

.history-intro h3 {
    font-size: 16px;
    font-weight: 500;
    color: #dbdee1;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Timeline adjustments for Discord */

.timeline {
    border-left: 2px solid #404249;
    padding-left: 20px;
}

.timeline-item::before {
    background: #5865f2;
    box-shadow: 0 0 6px rgba(88,101,242,0.5);
}

.timeline-year {
    font-size: 13px;
    font-weight: 600;
    color: #5865f2;
}

.timeline-content {
    font-size: 14px;
    color: #b5bac1;
}

/* Closing */

.history-closing {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #404249;
    color: #b5bac1;
}
/* ============================================================
   DISCORD GUIDE SECTION POLISH
============================================================ */

.guide-reading .guide-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    border-left: 4px solid #5865f2;
    padding-left: 12px;
}

.guide-reading .guide-section ul {
    padding-left: 20px;
    line-height: 1.8;
}

.guide-reading .guide-section li {
    font-size: 14px;
    color: #b5bac1;
    margin-bottom: 8px;
}
/* ============================================================
   DISCORD STATS PAGE POLISH
============================================================ */

/* Stat boxes more Discord-like */

.guide-reading .stat-box:hover {
    background: #404249;
    border-color: #5865f2;
    transform: translateY(-2px);
}

/* Stat detail cards */

.guide-reading .stat-detail:hover {
    border-color: #5865f2;
}

/* Section spacing */

.guide-reading .guide-section {
    margin-bottom: 20px;
}

.guide-reading .guide-section h3 {
    font-size: 20px;
    color: #ffffff;
    border-left: 4px solid #5865f2;
    padding-left: 12px;
}

/* Guide note styling */

.guide-reading .guide-note {
    margin-top: 20px;
    font-size: 13px;
    color: #8e9297;
    font-style: italic;
}
/* ============================================================
   DISCORD STATS POLISH
============================================================ */

.guide-reading .stat-box,
.guide-reading .stat-detail {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 8px;
    transition: 0.15s ease;
}

.guide-reading .stat-box:hover,
.guide-reading .stat-detail:hover {
    background: #404249;
    border-color: #5865f2;
    transform: translateY(-2px);
}

.guide-reading .guide-note {
    color: #8e9297;
    font-size: 13px;
    margin-top: 15px;
}
/* ============================================================
   DISCORD UPGRADING POLISH
============================================================ */

.guide-reading .faq-item {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    transition: 0.15s ease;
}

.guide-reading .faq-item:hover {
    background: #404249;
    border-color: #5865f2;
}

.guide-reading .faq-item h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

.guide-reading .faq-item.warning {
    border-left: 4px solid #f7d046;
}

.guide-reading .faq-item.danger {
    border-left: 4px solid #ff5b5b;
}
/* ============================================================
   DISCORD GANG PAGE POLISH
============================================================ */

/* INFO BOX (used across gang page) */

.guide-reading .info-box {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 10px;
    transition: 0.15s ease;
}

.guide-reading .info-box:hover {
    background: #34373c;
    border-color: #5865f2;
}

.guide-reading .info-box ul {
    margin: 0;
    padding-left: 18px;
}

.guide-reading .info-box li {
    color: #b5bac1;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Highlight version */

.guide-reading .info-box.highlight {
    border-left: 4px solid #5865f2;
}


/* ============================================================
   GANG UPGRADE TIER TABLE
============================================================ */

.upgrade-tier {
    display: grid;
    grid-template-columns: 80px 180px 140px;
    gap: 10px 30px;
    margin-top: 15px;
    width: fit-content;
    font-size: 14px;
}

.upgrade-tier div {
    padding: 6px 0;
    color: #b5bac1;
}

.upgrade-tier div:nth-child(3n-2) {
    font-weight: 600;
    color: #ffffff;
}

.upgrade-tier div:nth-child(3n-1) {
    color: #5bb0ff;
    font-weight: 600;
}

.upgrade-tier div:nth-child(3n) {
    text-align: right;
    color: #8e9297;
}


/* ============================================================
   PERMISSION GRID (Senior Officers)
============================================================ */

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.permission-card {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 8px;
    padding: 16px;
    transition: 0.15s ease;
}

.permission-card:hover {
    background: #34373c;
    border-color: #5865f2;
    transform: translateY(-2px);
}

.permission-card h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #ffffff;
}

.permission-card p {
    margin: 0;
    font-size: 13px;
    color: #b5bac1;
}
/* ============================================================
   DISCORD ELEMENTS POLISH
============================================================ */

/* Wind accent (missing in current CSS) */
.element-card.wind {
    border-left: 4px solid #38c172;
}

/* Make element cards slightly more Discord-like */
.guide-reading .element-card {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 10px;
    transition: 0.15s ease;
}

.guide-reading .element-card:hover {
    background: #34373c;
    border-color: #5865f2;
    transform: translateY(-2px);
}

/* Improve element headings */
.guide-reading .element-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* Improve list spacing inside element cards */
.guide-reading .element-card ul {
    margin-top: 8px;
    padding-left: 18px;
}

.guide-reading .element-card li {
    font-size: 13px;
    color: #b5bac1;
    margin-bottom: 6px;
}

/* Enhanced property cards polish */
.guide-reading .property-card {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 10px;
}

.guide-reading .property-card.highlight {
    border-left: 4px solid #f7d046;
}
/* ============================================================
   DISCORD CHARACTERS POLISH
============================================================ */

.class-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.class-role-card {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 10px;
    padding: 18px;
    transition: 0.15s ease;
}

.class-role-card:hover {
    background: #34373c;
    border-color: #5865f2;
    transform: translateY(-2px);
}

.class-role-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.class-role-card p {
    margin: 4px 0;
    font-size: 13px;
    color: #b5bac1;
}

.class-range {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #8e9297;
}

/* Accent colors per class */

.class-role-card.brawler {
    border-left: 4px solid #ff5b5b;
}

.class-role-card.archer {
    border-left: 4px solid #38c172;
}

.class-role-card.swordsman {
    border-left: 4px solid #5bb0ff;
}

.class-role-card.shaman {
    border-left: 4px solid #a66bff;
}/* ============================================================
   DISCORD MISC PAGE POLISH
============================================================ */

/* Combat grid */

.combat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

/* Combat cards */

.combat-card {
    background: #2b2d31;
    border: 1px solid #404249;
    border-radius: 10px;
    padding: 16px;
    transition: 0.15s ease;
}

.combat-card:hover {
    background: #34373c;
    border-color: #5865f2;
    transform: translateY(-2px);
}

.combat-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #ffffff;
}

.combat-card ul {
    margin: 0;
    padding-left: 18px;
}

.combat-card li {
    font-size: 13px;
    color: #b5bac1;
    margin-bottom: 6px;
}

/* Status accents */

.combat-card.danger {
    border-left: 4px solid #ff5b5b;
}

.combat-card.warning {
    border-left: 4px solid #f7d046;
}
/* ============================================================
   DISCORD COMMUNITY PAGE
============================================================ */

.community-layout {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Chat wrapper */

.chat-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #313338;
    min-height: 0;
}

/* Messages */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Individual message */

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2b2d31;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #dbdee1;
}

.username {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.admin-badge {
    background: #ed4245;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
}

.admin-user {
    color: #faa61a;
}

.timestamp {
    font-size: 11px;
    color: #8e9297;
    margin-left: 8px;
}

.text {
    margin-top: 4px;
    font-size: 14px;
    color: #dbdee1;
}

/* Actions */

.actions {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.6;
    cursor: pointer;
    display: flex;
    gap: 10px;
}

/* Chat input */

.chat-input {
    border-top: 1px solid #1e1f22;
    padding: 12px;
    background: #2b2d31;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #1e1f22;
    color: #dbdee1;
	margin-left: -10px;
}

.chat-input button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #5865f2;
    color: white;
    cursor: pointer;
}

.chat-input button:hover {
    background: #4752c4;
}

/* Reply preview */

.reply-preview {
    display: none;
    align-items: center;
    gap: 10px;
    background: #1e1f22;
    padding: 6px 10px;
    border-left: 4px solid #5865f2;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 6px;
}

/* Online panel */

.online-panel {
    width: 220px;
    background: #2b2d31;
    border-left: 1px solid #1e1f22;
    padding: 15px;
    overflow-y: auto;
}

.online-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
    color: #b5bac1;
}

/* Emoji picker */

.emoji-picker {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 10px;
    background: #2b2d31;
    border: 1px solid #1e1f22;
    border-radius: 10px;
    padding: 10px;
    width: 260px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
/* ============================================================
   COMMUNITY HEADER ACTIONS
============================================================ */

.community-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */

.header-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* Discord-style colors */

.login-btn {
    background: #5865f2;
    color: white;
}

.register-btn {
    background: #3ba55c;
    color: white;
}

.logout-btn {
    background: #ed4245;
    color: white;
}

.admin-btn {
    background: #faa61a;
    color: #000;
}

/* Hover effects */

.header-actions button:hover {
    filter: brightness(1.1);
}
/* ============================================================
   FIX MODAL OVERLAY (COMMUNITY)
============================================================ */

.modal {
    display: none;                /* hidden by default */
    position: fixed;
    inset: 0;                     /* top:0; left:0; right:0; bottom:0 */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;                /* must be high */
}

/* Modal box */

.modal-box {
    background: #2b2d31;
    padding: 25px;
    border-radius: 10px;
    width: 360px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #1e1f22;
}

/* Modal headings */

.modal-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #ffffff;
}

/* Modal inputs */

.modal-box input {
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: #1e1f22;
    color: #dbdee1;
}

/* Modal buttons */

.modal-box button {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #5865f2;
    color: white;
}

.modal-box button:hover {
    background: #4752c4;
}
/* ============================================================
   AVATAR SELECTION
============================================================ */

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.15s ease;
}

.avatar-option:hover {
    border-color: #5865f2;
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: #3ba55c;
}

/* Avatar inside chat */

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}