/* 
================================================================================
   HDSkyblock Forums & Portal — Stylesheet
   Theme: Cyan (#00e5ff) & Gold (#ffb300) Sleek Dark mode
================================================================================
*/

:root {
    --bg-darker: #06080b;
    --bg-dark: #0b0d12;
    --bg-card: #11151d;
    --bg-card-hover: #171c26;
    --border-color: #1b212c;
    --border-glow: rgba(0, 229, 255, 0.25);
    
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    
    --accent-cyan: #00e5ff;
    --accent-gold: #ffb300;
    --accent-red: #ff3d00;
    --accent-purple: #d500f9;
    --blurple: #5865F2;
    
    --transition-speed: 0.3s;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: #80f0ff;
}

/* Container Utilities */
.nav-container, .main-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Button UI */
.btn {
    font-family: var(--font-outfit);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #00b0ff);
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2);
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}
.btn-discord {
    background-color: var(--blurple);
    color: #fff;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
}
.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
}
.btn-full {
    width: 100%;
    justify-content: center;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    gap: 6px;
}

/* Two-column form row layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Navbar */
header.navbar {
    background-color: rgba(6, 8, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 20px;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-outfit);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.5px;
}
.logo-hd {
    color: var(--accent-cyan);
}
.logo-sky {
    color: var(--text-main);
}
.badge-beta {
    font-size: 9px;
    background-color: var(--accent-gold);
    color: #000;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 800;
}
.nav-menu {
    display: flex;
    gap: 28px;
}
.nav-menu a {
    color: var(--text-muted);
    font-family: var(--font-outfit);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    white-space: nowrap;
}
.nav-menu a.active, .nav-menu a:hover {
    color: var(--accent-cyan);
}

.user-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* User Profile Mini-Card */
.user-menu-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.user-menu-card:hover {
    border-color: var(--accent-cyan);
    cursor: pointer;
}
.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 14px;
    font-family: var(--font-outfit);
}

/* 
================================================================================
   LANDING PAGE SPECIFIC STYLES
================================================================================
*/
.landing-page {
    background-image: radial-gradient(circle at top, rgba(0, 229, 255, 0.05) 0%, rgba(0,0,0,0) 50%);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.season-badge {
    background-color: rgba(255, 179, 0, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 179, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0); }
}
.hero h1 {
    font-family: var(--font-outfit);
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
}
.highlight-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 680px;
    line-height: 1.6;
}

/* IP Connection Box */
.ip-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.ip-label {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.ip-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-darker);
    border: 1px dashed var(--border-glow);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}
.ip-box:hover {
    border-color: var(--accent-cyan);
    background-color: var(--bg-dark);
}
.ip-text {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-cyan);
}
.copy-icon {
    color: var(--text-muted);
}
.ip-box:hover .copy-icon {
    color: var(--accent-cyan);
}
.player-count-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
}
.player-count {
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 13px;
    color: #00e676;
}
.hero-actions {
    display: flex;
    gap: 20px;
}

/* Features Grid */
.features-section, .staff-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-family: var(--font-outfit);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    transition: all var(--transition-speed);
}
.feature-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.05);
}
.feature-icon {
    font-size: 36px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-family: var(--font-outfit);
    font-size: 20px;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Discord CTA Banner */
.discord-banner {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(6,8,11,0.8) 100%);
    border-top: 1px solid rgba(88, 101, 242, 0.2);
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
    padding: 60px 20px;
    margin: 40px 0;
}
.discord-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}
.banner-icon {
    font-size: 72px;
    color: var(--blurple);
}
.banner-text h2 {
    font-family: var(--font-outfit);
    font-size: 28px;
    margin-bottom: 6px;
}
.banner-text p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 680px;
}

/* Staff Grid */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
}
.staff-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: border-color var(--transition-speed);
}
.staff-card:hover {
    border-color: var(--border-glow);
}
.staff-card h3 {
    font-family: var(--font-outfit);
    font-size: 18px;
    margin-bottom: 6px;
}
.staff-card .rank-badge {
    margin-bottom: 15px;
    display: inline-block;
}
.staff-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 
================================================================================
   FORUM VIEW STYLES
================================================================================
*/
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 0 20px 50px 20px;
    min-height: calc(100vh - 200px);
}

/* Forum Sidebar cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-indicator.online {
    background-color: #00e676;
    box-shadow: 0 0 8px #00e676;
}
.status-indicator.offline {
    background-color: #ff3d00;
    box-shadow: 0 0 8px #ff3d00;
}
.server-ip {
    font-family: monospace;
    color: var(--accent-cyan);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-muted);
}
.stat-val {
    font-weight: 600;
    color: var(--text-main);
}
.text-gold {
    color: var(--accent-gold);
}

/* Profile Widget Card */
.profile-header-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #000;
    font-family: var(--font-outfit);
    flex-shrink: 0;
}
.profile-meta-widget {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-meta-widget h4 {
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}
.profile-body-widget .stat-row {
    margin-top: 10px;
    margin-bottom: 12px;
}

.sidebar h3 {
    font-family: var(--font-outfit);
    font-size: 16px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Categories, Threads, Comments details */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.category-card {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    align-items: center;
    cursor: pointer;
}
.category-icon {
    font-size: 24px;
    color: var(--accent-cyan);
    display: flex;
    justify-content: center;
}
.category-meta h3 {
    font-family: var(--font-outfit);
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text-main);
    transition: color var(--transition-speed);
}
.category-card:hover .category-meta h3 {
    color: var(--accent-cyan);
}
.category-meta p {
    color: var(--text-muted);
    font-size: 13px;
}
.category-stats {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
}
.category-stats span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

/* Forum Action Bar */
.forum-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
}
.category-info-panel h2 {
    font-family: var(--font-outfit);
    font-size: 22px;
}
.category-info-panel p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Threads List Layout */
.thread-list-item {
    display: grid;
    grid-template-columns: 48px 1fr 80px 80px 80px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 10px;
    transition: background-color var(--transition-speed);
}
.thread-list-item:hover {
    background-color: rgba(255,255,255,0.02);
}
.thread-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-family: var(--font-outfit);
}
.thread-info {
    padding-left: 10px;
}
.thread-title {
    font-family: var(--font-outfit);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
}
.thread-title:hover {
    color: var(--accent-cyan);
}
.thread-author-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.thread-author-meta .rank-badge {
    margin-left: 4px;
}
.thread-stat-col {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
.thread-stat-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

/* Post and Comments details */
.post-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-author-meta h3 {
    font-family: var(--font-outfit);
    font-size: 16px;
}
.post-time {
    font-size: 12px;
    color: var(--text-muted);
}
.post-body {
    font-size: 15px;
    white-space: pre-wrap;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.7;
}
.post-footer {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}
.like-action {
    cursor: pointer;
    transition: color var(--transition-speed), transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.like-action:hover {
    color: var(--accent-cyan);
    transform: scale(1.05);
}
.like-action.liked {
    color: #ffb300;
    font-weight: 600;
}
.like-action.liked i {
    animation: like-pop 0.25s ease;
}
@keyframes like-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.comment-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}
.comment-card .post-header {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.editor-area textarea {
    width: 100%;
    height: 120px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-inter);
    resize: vertical;
    margin-bottom: 15px;
}
.editor-area textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}
.editor-footer {
    display: flex;
    justify-content: flex-end;
}
.reply-box-prompt {
    text-align: center;
    padding: 24px;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-outfit);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-main);
    font-family: var(--font-inter);
    transition: border-color var(--transition-speed);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}
.form-group textarea {
    height: 250px;
    resize: vertical;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    overflow: hidden;
}
.modal-header {
    background-color: var(--bg-dark);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-family: var(--font-outfit);
    font-size: 18px;
}
.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}
.close-btn:hover {
    color: var(--text-main);
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    padding: 15px 20px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Profile Modal Avatar Selector */
.profile-modal-avatar-select {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Footer layout */
.footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 45px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-container p {
    margin-bottom: 6px;
}

/* Ranks colors matches Minecraft */
.rank-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    color: #000;
    text-transform: uppercase;
    font-family: var(--font-outfit);
}
.rank-owner { background-color: var(--accent-gold); }
.rank-admin { background-color: var(--accent-red); }
.rank-celestial { background-color: var(--accent-purple); }
.rank-member { background-color: #a0aec0; }
.rank-aether { background-color: var(--accent-cyan); }

/* Admin Panel Styles */
.admin-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    margin-top: 15px;
}
.admin-sidebar h3 {
    font-family: var(--font-outfit);
    font-size: 11px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    margin-bottom: 6px !important;
    padding-bottom: 4px;
    border-bottom: none;
}
.admin-sidebar h3:first-of-type {
    margin-top: 0;
}
.admin-sidebar hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0 10px 0;
}
.admin-tabs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.admin-tabs li {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.admin-tabs li.active, .admin-tabs li:hover {
    background-color: var(--bg-card-hover);
    color: var(--accent-cyan);
}
.admin-tabs li.active {
    border-left: 3px solid var(--accent-cyan);
    background-color: var(--bg-card-hover);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
    text-align: left;
}
.admin-table th, .admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.admin-table th {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.admin-table tbody tr:hover {
    background-color: rgba(255,255,255,0.01);
}
.admin-table select, .admin-table input {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color var(--transition-speed);
}
.admin-table select:focus, .admin-table input:focus {
    border-color: var(--accent-cyan);
    outline: none;
}
.admin-main-content .forum-action-bar {
    margin-bottom: 20px;
}

/* Full Width Layout (when viewing Admin Panel) */
.main-container.full-width {
    grid-template-columns: 1fr;
}
.main-container.full-width aside.sidebar {
    display: none;
}

/* Admin Overview stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--transition-speed);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}
.stat-card-icon {
    font-size: 28px;
    color: var(--accent-cyan);
    background-color: rgba(0, 229, 255, 0.08);
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card-info {
    display: flex;
    flex-direction: column;
}
.stat-card-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    font-family: var(--font-outfit);
}
.stat-card-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

/* Inline Deletion Moderation Styles */
.moderator-actions {
    display: inline-flex;
    gap: 10px;
    margin-left: auto;
}
.btn-mod-delete {
    background-color: rgba(255, 61, 0, 0.1);
    color: #ff3d00;
    border: 1px solid rgba(255, 61, 0, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-speed);
}
.btn-mod-delete:hover {
    background-color: #ff3d00;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 61, 0, 0.3);
}
.comment-delete-link {
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 15px;
    transition: color var(--transition-speed);
}
.comment-delete-link:hover {
    color: #ff8a65;
    text-decoration: underline;
}

/* ── Profile Page Styles ──────────────────────────────────────────────────── */

.profile-hero {
    --hero-color: #00e5ff;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--hero-color) 18%, var(--bg-card)),
        var(--bg-card)
    );
    border: 1px solid color-mix(in srgb, var(--hero-color) 30%, transparent);
    border-radius: 16px;
    padding: 32px 28px;
    margin-bottom: 16px;
    position: relative;
    overflow: visible;
}
.profile-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--hero-color) 15%, transparent), transparent 70%);
    pointer-events: none;
}
.profile-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* XL Avatar */
.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.profile-avatar-xl {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-outfit);
    font-weight: 900;
    font-size: 42px;
    color: #000;
    box-shadow: 0 0 0 4px var(--bg-card), 0 0 0 6px color-mix(in srgb, var(--hero-color) 40%, transparent);
    transition: box-shadow 0.3s;
}
.profile-avatar-edit-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: all 0.2s;
}
.profile-avatar-edit-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

/* Avatar Editor Popup */
.profile-avatar-editor {
    position: absolute;
    top: 110px;
    left: 0;
    width: 260px;
    z-index: 50;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.profile-avatar-editor h4 {
    font-family: var(--font-outfit);
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--accent-cyan);
}
.avatar-color-presets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.avatar-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.avatar-swatch:hover, .avatar-swatch.selected {
    border-color: #fff;
    transform: scale(1.15);
}
.avatar-swatch.selected {
    box-shadow: 0 0 0 3px var(--accent-cyan);
}

/* Profile Hero Info */
.profile-hero-info {
    flex: 1;
    min-width: 200px;
}
.profile-hero-name {
    font-family: var(--font-outfit);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
}
.profile-hero-bio {
    color: var(--text-muted);
    font-size: 14px;
    margin: 8px 0 16px;
    max-width: 520px;
    line-height: 1.6;
    min-height: 22px;
}

/* Stat Pills */
.profile-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.profile-stat-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}
.profile-stat-num {
    font-family: var(--font-outfit);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}
.profile-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}
.profile-stat-pill.text-gold .profile-stat-num {
    color: var(--accent-gold);
}

/* Profile Tabs Bar */
.profile-tabs-bar {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.profile-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.profile-tab-btn:hover {
    color: var(--text-main);
}
.profile-tab-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* Responsive Media Queries */
@media(max-width: 868px) {

    /* Hero scaling */
    .hero h1 {
        font-size: 42px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .ip-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Discord CTA Grid scaling */
    .discord-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .banner-icon {
        margin: 0 auto;
    }
    .btn-discord {
        margin: 0 auto;
    }
    
    /* Forum grid scaling */
    .main-container {
        grid-template-columns: 1fr;
    }
    .category-card {
        grid-template-columns: 50px 1fr;
    }
    .category-stats {
        display: none;
    }
    .thread-list-item {
        grid-template-columns: 48px 1fr 60px;
    }
    .thread-list-item .thread-stat-col:nth-child(4),
    .thread-list-item .thread-stat-col:nth-child(5) {
        display: none;
    }
    .nav-menu {
        display: none; /* Mobile menu collapsed */
    }
}

/* Quick Links Card List resets */
.quick-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quick-links-list li {
    display: flex;
    align-items: center;
    list-style-type: none !important;
}
.quick-links-list li::before {
    content: none !important;
}
.quick-links-list li a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition-speed);
}
.quick-links-list li a:hover {
    color: var(--accent-cyan);
}
.quick-links-list li a i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}
.text-blurple {
    color: var(--blurple);
}

/* Drag and Drop Rank Styles */
#adminRanksTableBody tr {
    transition: background-color 0.2s, transform 0.2s;
}
#adminRanksTableBody tr.dragging {
    opacity: 0.4;
    background-color: rgba(255,255,255,0.05);
}
#adminRanksTableBody tr.drag-over {
    border-top: 2px solid var(--accent-cyan);
    background-color: rgba(0, 229, 255, 0.05);
}
.drag-handle {
    transition: color 0.2s;
}
.drag-handle:hover {
    color: var(--accent-cyan) !important;
}

/* Permissions Grid styles */
.permissions-grid div {
    transition: background-color 0.2s;
    padding: 6px;
    border-radius: 4px;
}
.permissions-grid div:hover {
    background-color: rgba(255,255,255,0.03);
}

/* Custom Rank Image Badges */
.rank-badge-img-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
    position: relative;
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rank-badge-img-wrapper:hover {
    transform: scale(1.15) rotate(2deg);
}
.rank-badge-img {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.4)) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.post-author-meta .rank-badge-img-wrapper,
.thread-author-meta .rank-badge-img-wrapper {
    margin-left: 8px;
}
.staff-card .rank-badge-img {
    height: 32px;
    margin: 5px 0 10px 0;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.3)) drop-shadow(0 3px 5px rgba(0,0,0,0.5));
}
.widget-author-meta .rank-badge-img,
#widgetRank .rank-badge-img {
    height: 18px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header Search Bar */
.nav-search {
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px 6px 16px;
    margin: 0 15px;
    flex: 1;
    max-width: 320px;
    min-width: 180px;
    transition: border-color var(--transition-speed);
}
.nav-search:focus-within {
    border-color: var(--accent-cyan);
}
.nav-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 13px;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.nav-search input::-webkit-search-cancel-button,
.nav-search input::-webkit-search-decoration,
.nav-search input::-webkit-search-results-button,
.nav-search input::-webkit-search-results-decoration {
    display: none;
}
.nav-search button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    transition: color var(--transition-speed);
}
.nav-search button:hover {
    color: var(--accent-cyan);
}

/* Search results user cards */
.search-user-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-speed);
}
.search-user-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.05);
}
.badge-banned {
    box-shadow: 0 0 10px rgba(255, 61, 0, 0.4);
    animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Forum Upgrades CSS --- */

/* Notifications */
.bell-btn:hover {
    color: var(--accent-cyan) !important;
}
.notification-item {
    border-bottom: 1px solid var(--border-color);
}
.notification-item.unread {
    background: rgba(0, 229, 255, 0.03) !important;
    border-left: 2px solid var(--accent-cyan);
}
.notification-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Thread Prefix Badges */
.prefix-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
.prefix-general {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.prefix-announcement {
    background: rgba(255, 61, 0, 0.15);
    color: #ff7043;
    border: 1px solid rgba(255, 61, 0, 0.3);
    box-shadow: 0 0 8px rgba(255, 61, 0, 0.1);
}
.prefix-guide {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.1);
}
.prefix-question {
    background: rgba(213, 0, 249, 0.15);
    color: #f50057;
    border: 1px solid rgba(213, 0, 249, 0.3);
}
.prefix-bug {
    background: rgba(255, 145, 0, 0.15);
    color: #ffab40;
    border: 1px solid rgba(255, 145, 0, 0.3);
}
.prefix-suggestion {
    background: rgba(0, 230, 118, 0.15);
    color: #69f0ae;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

/* Pinned Threads */
.pinned-thread {
    background: rgba(0, 229, 255, 0.02) !important;
    border-left: 3px solid var(--accent-cyan);
}
.pinned-thread:hover {
    background: rgba(0, 229, 255, 0.04) !important;
}
.pin-indicator {
    filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.6));
    animation: pulse-pin 2s infinite ease-in-out;
}
@keyframes pulse-pin {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Inline Comment Editing */
.inline-edit-textarea {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color var(--transition-speed);
}
.inline-edit-textarea:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.15);
}
.comment-action-link:hover {
    text-decoration: underline;
}

/* Pagination Control Buttons */
.pagination-container button {
    cursor: pointer;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    transition: all var(--transition-speed);
}
.pagination-container button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-container button.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
}
.pagination-container button.btn-primary {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* --- Top Bar Neaten-up & Notifications Styles --- */

/* Prevent browser autocomplete/autofill from turning search input white/blue */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #060a0f inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Global header refinements */
header.navbar {
    padding: 12px 24px;
    background-color: rgba(6, 10, 15, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    gap: 24px;
}

.nav-menu {
    gap: 20px;
}

.nav-menu a {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.nav-menu a:hover, .nav-menu a.active {
    background: rgba(0, 229, 255, 0.05);
}

.user-control {
    gap: 12px;
}

/* Notification bell container & button */
.notification-bell-container {
    position: relative;
    display: flex;
    align-items: center;
}

.bell-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.bell-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.bell-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #ff3d00;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 61, 0, 0.6);
    border: 1.5px solid #060a0f;
}

/* Refined notification dropdown */
.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: rgba(8, 12, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.notification-dropdown-header h4 {
    margin: 0;
    font-family: var(--font-outfit);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.notification-dropdown-header .mark-all-read {
    font-size: 11px;
    color: var(--accent-cyan);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.notification-dropdown-header .mark-all-read:hover {
    opacity: 0.8;
}

.notification-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
}

/* ── Punishment / Moderation UI Additions ── */
.warn-pill {
    transition: all var(--transition-speed);
}
.warn-pill:hover {
    background: rgba(255, 179, 0, 0.3) !important;
    transform: scale(1.05);
}

.mute-badge-pill {
    animation: pulseMute 2s infinite alternate;
}

@keyframes pulseMute {
    from {
        box-shadow: 0 0 4px rgba(213, 0, 249, 0.1);
    }
    to {
        box-shadow: 0 0 10px rgba(213, 0, 249, 0.4);
    }
}

/* Punish Modal tab adjustments */
.punish-tab-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: -1px;
}

.profile-tabs-bar button.profile-tab-btn {
    border-radius: 6px 6px 0 0;
    margin-right: 2px;
}

.profile-tabs-bar button.profile-tab-btn.active {
    border-bottom: 2px solid var(--accent-cyan);
}

/* ── Leaderboard Styles ── */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0 20px 0;
    flex-wrap: wrap;
}

.podium-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 240px;
}

.podium-card:hover {
    transform: translateY(-8px);
}

/* Specific heights and styles for different ranks */
.podium-gold {
    order: 2; /* Center first rank */
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.02), rgba(255, 255, 255, 0.02));
    padding: 36px 24px;
}
.podium-gold:hover {
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

.podium-silver {
    order: 1; /* Left second rank */
    border: 1px solid rgba(192, 192, 192, 0.3);
    box-shadow: 0 8px 32px rgba(192, 192, 192, 0.08);
}
.podium-silver:hover {
    box-shadow: 0 12px 40px rgba(192, 192, 192, 0.16);
}

.podium-bronze {
    order: 3; /* Right third rank */
    border: 1px solid rgba(205, 127, 50, 0.3);
    box-shadow: 0 8px 32px rgba(205, 127, 50, 0.08);
}
.podium-bronze:hover {
    box-shadow: 0 12px 40px rgba(205, 127, 50, 0.16);
}

/* Podium Badges & Avatars */
.podium-rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-outfit);
    font-size: 14px;
    color: #000;
}

.podium-gold .podium-rank-badge {
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.podium-silver .podium-rank-badge {
    background: #c0c0c0;
    box-shadow: 0 0 10px #c0c0c0;
}

.podium-bronze .podium-rank-badge {
    background: #cd7f32;
    box-shadow: 0 0 10px #cd7f32;
}

.podium-avatar {
    height: 120px;
    margin: 10px auto 15px auto;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
}

.podium-card h3 {
    font-family: var(--font-outfit);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 10px 0 5px 0;
}

.podium-level {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.podium-points {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.podium-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.podium-stats span {
    color: var(--text-muted);
}

.podium-gold .podium-stats span:first-child {
    color: #ffd700;
}

/* Leaderboard Table custom styling */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    font-family: var(--font-outfit);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.1);
}

.leaderboard-table tbody tr {
    transition: background 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Top 3 row styles */
.row-top-1 {
    background: rgba(255, 215, 0, 0.015);
}
.row-top-2 {
    background: rgba(192, 192, 192, 0.01);
}
.row-top-3 {
    background: rgba(205, 127, 50, 0.01);
}

/* Rank numbers styling */
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.rank-1 {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.rank-2 {
    background: #c0c0c0;
    color: #000;
}

.rank-3 {
    background: #cd7f32;
    color: #000;
}

/* Search input styling */
#leaderboardSearch {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color var(--transition-speed);
}

#leaderboardSearch:focus {
    border-color: var(--accent-cyan);
    outline: none;
}

/* Private Messaging Chat View */
.chat-container {
    display: flex;
    height: 600px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.chat-sidebar {
    width: 300px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
}

.chat-sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
}

.chat-sidebar-header h3 {
    margin: 0;
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-conversations-list {
    flex: 1;
    overflow-y: auto;
}

/* Conversation list items */
.conversation-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-speed) ease;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.conversation-item.active {
    background: rgba(0, 229, 255, 0.06) !important;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 15px; /* Adjust for border */
}

/* Chat window - right pane */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.05);
}

.chat-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
}

.chat-messages-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Chat input bar */
.chat-input-bar {
    display: flex;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
}

.chat-input-bar input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    transition: all var(--transition-speed) ease;
}

.chat-input-bar input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

/* Chat bubble styling */
.chat-bubble-container {
    display: flex;
    width: 100%;
}

.chat-bubble-container.sent {
    justify-content: flex-end;
}

.chat-bubble-container.received {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 65%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.2s ease;
}

.chat-bubble-container.sent .chat-bubble {
    background: var(--accent-cyan);
    color: #000;
    border-bottom-right-radius: 2px;
}

.chat-bubble-container.received .chat-bubble {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
}

.chat-bubble-time {
    text-align: right;
    font-size: 9px;
    opacity: 0.6;
    margin-top: 6px;
}

/* User Online/Offline Status Dot Styles */
.avatar-wrap {
    position: relative;
    display: inline-block;
}

.status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #0a0f14;
    display: none;
    z-index: 5;
}

.status-dot.online-web {
    display: block;
    background: #00e676; /* Green */
    box-shadow: 0 0 6px #00e676;
}

.status-dot.online-mc {
    display: block;
    background: #00e5ff; /* Cyan */
    box-shadow: 0 0 6px #00e5ff;
}

/* ── Rank Badge Effects & Animations ── */

/* Global 3D Rank Badge Base Styles & Containers */
.rank-badge {
    display: inline-block;
    vertical-align: middle;
    border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.5) !important;
    border-right: 1.5px solid rgba(0, 0, 0, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-badge-img-wrapper {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

/* Advanced 3D Orbiting Effect Container */
.rank-effect-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    perspective: 1200px;
    transform-style: preserve-3d;
    padding: 6px 10px;
    margin: 2px 4px;
    overflow: visible !important;
}

.rank-effect-container .rank-badge,
.rank-effect-container .rank-badge-img-wrapper {
    transform: translateZ(10px);
    position: relative;
    z-index: 2;
}

/* Helper Orbit Elements Base Positioning & Centering */
.rank-effect-container .effect-orbit-element-1,
.rank-effect-container .effect-orbit-element-2,
.rank-effect-container .effect-orbit-element-3 {
    position: absolute;
    pointer-events: none;
    transform-style: preserve-3d;
}

/* 1. Neon Glow: Color-Matched 3D Orbiting Ring & Star Particle */
.rank-effect-neon {
    animation: neonCardPulse 2s infinite ease-in-out alternate;
}
.rank-effect-neon .effect-orbit-element-1 {
    inset: -2px;
    border: 1.5px solid var(--rank-color);
    border-radius: 6px;
    box-shadow: 0 0 10px var(--rank-color), inset 0 0 5px var(--rank-color);
    animation: orbitRing3D 4s linear infinite;
}
.rank-effect-neon .effect-orbit-element-2 {
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    margin-left: -3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px 4px var(--rank-color), 0 0 6px #fff;
    animation: orbitParticleAxisY 2.8s linear infinite;
}
@keyframes neonCardPulse {
    0% { filter: drop-shadow(0 0 2px var(--rank-color)); }
    100% { filter: drop-shadow(0 0 8px var(--rank-color)); }
}

/* 2. Animated Rainbow: Triple Orbiting 3D Particle Shell */
.rank-effect-rainbow .effect-orbit-element-1,
.rank-effect-rainbow .effect-orbit-element-2,
.rank-effect-rainbow .effect-orbit-element-3 {
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    margin-left: -3px;
    border-radius: 50%;
}
.rank-effect-rainbow .effect-orbit-element-1 {
    background: #ff007f;
    box-shadow: 0 0 12px 4px #ff007f, 0 0 6px #fff;
    animation: orbitParticleAxisY 2s linear infinite;
}
.rank-effect-rainbow .effect-orbit-element-2 {
    background: #00f2fe;
    box-shadow: 0 0 12px 4px #00f2fe, 0 0 6px #fff;
    animation: orbitParticleAxisX 2.5s linear infinite;
}
.rank-effect-rainbow .effect-orbit-element-3 {
    background: #39ff14;
    box-shadow: 0 0 12px 4px #39ff14, 0 0 6px #fff;
    animation: orbitParticleDiagonal 3s linear infinite;
}

/* 3. Sweeping Shine: 3D Sweeping Halo Flare */
.rank-effect-shine {
    animation: metalSheen 3s infinite ease-in-out;
}
.rank-effect-shine .effect-orbit-element-1 {
    inset: -3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    animation: orbitRing3D-Shine 5s linear infinite;
}
.rank-effect-shine .effect-orbit-element-2 {
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    margin-left: -2.5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px 5px #fff;
    animation: orbitParticleAxisY 3.2s linear infinite;
}
@keyframes metalSheen {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

/* 4. Pulse Animation: Concentric 3D Expanding Rings */
.rank-effect-pulse {
    animation: rankBadgePulse3D 2.5s infinite ease-in-out;
}
.rank-effect-pulse .effect-orbit-element-1,
.rank-effect-pulse .effect-orbit-element-2 {
    inset: 0;
    border-radius: 6px;
    opacity: 0;
}
.rank-effect-pulse .effect-orbit-element-1 {
    border: 2px solid var(--rank-color);
    animation: expandPulse3D 2s infinite ease-out;
}
.rank-effect-pulse .effect-orbit-element-2 {
    border: 1px dashed var(--rank-color);
    animation: expandPulse3D 2s infinite ease-out 1s;
}
@keyframes rankBadgePulse3D {
    0%, 100% { transform: scale(1) translateZ(0); }
    50% { transform: scale(1.05) translateZ(15px); }
}
@keyframes expandPulse3D {
    0% {
        transform: translateZ(-10px) scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: translateZ(25px) scale(1.4);
        opacity: 0;
    }
}

/* 5. Fire Flickering Glow: Rising Ember Orbitals */
.rank-effect-fire {
    filter: drop-shadow(0 0 4px #ff5d00);
}
.rank-effect-fire .effect-orbit-element-1,
.rank-effect-fire .effect-orbit-element-2,
.rank-effect-fire .effect-orbit-element-3 {
    top: 50%;
    left: 50%;
    border-radius: 50%;
}
.rank-effect-fire .effect-orbit-element-1 {
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    margin-left: -2.5px;
    background: #ff3c00;
    box-shadow: 0 0 10px #ff3c00, 0 0 4px #fff;
    animation: riseAndOrbit 2s linear infinite;
}
.rank-effect-fire .effect-orbit-element-2 {
    width: 4px;
    height: 4px;
    margin-top: -2px;
    margin-left: -2px;
    background: #ff9d00;
    box-shadow: 0 0 8px #ff9d00, 0 0 4px #fff;
    animation: riseAndOrbit 2.4s linear infinite 0.8s;
}
.rank-effect-fire .effect-orbit-element-3 {
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    margin-left: -2.5px;
    background: #ffdd00;
    box-shadow: 0 0 10px #ffdd00, 0 0 4px #fff;
    animation: riseAndOrbit 1.8s linear infinite 1.4s;
}

/* ── 3D Orbital Keyframe Mechanics ── */

/* Tilted 3D Ring Animation */
@keyframes orbitRing3D {
    0% {
        transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg);
    }
}
@keyframes orbitRing3D-Shine {
    0% {
        transform: rotateX(-45deg) rotateY(-20deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(-45deg) rotateY(-20deg) rotateZ(360deg);
    }
}

/* Y-Axis Orbit (Left-to-Right passing in-front/behind) */
@keyframes orbitParticleAxisY {
    0% {
        transform: rotateY(0deg) translateZ(35px) rotateY(0deg) scale(0.9);
        opacity: 0.3;
    }
    25% {
        transform: rotateY(90deg) translateZ(38px) rotateY(-90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: rotateY(180deg) translateZ(35px) rotateY(-180deg) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: rotateY(270deg) translateZ(30px) rotateY(-270deg) scale(0.7);
        opacity: 0.1;
    }
    100% {
        transform: rotateY(360deg) translateZ(35px) rotateY(-360deg) scale(0.9);
        opacity: 0.3;
    }
}

/* X-Axis Orbit (Top-to-Bottom passing in-front/behind) */
@keyframes orbitParticleAxisX {
    0% {
        transform: rotateX(0deg) translateZ(32px) rotateX(0deg) scale(0.9);
        opacity: 0.3;
    }
    25% {
        transform: rotateX(90deg) translateZ(35px) rotateX(-90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: rotateX(180deg) translateZ(32px) rotateX(-180deg) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: rotateX(270deg) translateZ(28px) rotateX(-270deg) scale(0.7);
        opacity: 0.1;
    }
    100% {
        transform: rotateX(360deg) translateZ(32px) rotateX(-360deg) scale(0.9);
        opacity: 0.3;
    }
}

/* Diagonal Tilted Orbit */
@keyframes orbitParticleDiagonal {
    0% {
        transform: rotate3d(1, 1, 0, 0deg) translateZ(34px) rotate3d(1, 1, 0, 0deg) scale(0.9);
        opacity: 0.3;
    }
    25% {
        transform: rotate3d(1, 1, 0, 90deg) translateZ(36px) rotate3d(1, 1, 0, -90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: rotate3d(1, 1, 0, 180deg) translateZ(34px) rotate3d(1, 1, 0, -180deg) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: rotate3d(1, 1, 0, 270deg) translateZ(30px) rotate3d(1, 1, 0, -270deg) scale(0.7);
        opacity: 0.1;
    }
    100% {
        transform: rotate3d(1, 1, 0, 360deg) translateZ(34px) rotate3d(1, 1, 0, -360deg) scale(0.9);
        opacity: 0.3;
    }
}

/* Rising Fire Embers Orbit */
@keyframes riseAndOrbit {
    0% {
        transform: rotateY(0deg) translateZ(25px) translateY(12px) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        transform: rotateY(540deg) translateZ(28px) translateY(-16px) scale(1.3);
        opacity: 0;
    }
}

/* Store card hover enhancements */
.store-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.store-card:hover {
    transform: translateY(-6px) translateZ(5px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.05) !important;
}
