/**
 * Oxidian Portal Redesign - AAA Studio Moderno
 * Black & Gold Aesthetic | Dark Acrylic Glassmorphism | Unified Color Grading
 */

:root {
    --ox-bg: #07080a;
    --ox-bg-card: rgba(18, 15, 12, 0.85);
    --ox-bg-card-hover: rgba(26, 22, 17, 0.95);
    --ox-border-gold: rgba(212, 175, 55, 0.35);
    --ox-border-gold-bright: #ffd700;
    --ox-gold-core: #d4af37;
    --ox-gold-light: #f5d77f;
    --ox-gold-glow: rgba(212, 175, 55, 0.28);
    --ox-gold-laser: 0 0 16px rgba(212, 175, 55, 0.35);
    --ox-text-main: #e6e2d8;
    --ox-text-muted: #9e9788;
    --ox-text-bright: #ffffff;
    --ox-acrylic-blur: blur(14px);
    --ox-radius: 8px;
    --ox-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ox-font-cinzel: "Cinzel", Georgia, serif;
}

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

body.area-public {
    margin: 0;
    padding: 0;
    background-color: var(--ox-bg);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(180, 130, 20, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
        linear-gradient(180deg, #07080a 0%, #0d0e12 50%, #07080a 100%);
    background-attachment: fixed;
    color: var(--ox-text-main);
    font-family: var(--ox-font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.epic-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Harmonization */
.epic-header {
    background: linear-gradient(180deg, rgba(14, 12, 10, 0.95) 0%, rgba(7, 8, 10, 0.85) 100%);
    backdrop-filter: var(--ox-acrylic-blur);
    border-bottom: 1px solid var(--ox-border-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 215, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.epic-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.epic-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.epic-brand:hover {
    transform: scale(1.02);
}

.epic-brand img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.25));
}

/* Top Navigation Bar with Active Route Highlights */
.epic-topnav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.epic-topnav a {
    color: var(--ox-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 4px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.epic-topnav a:hover {
    color: var(--ox-text-bright);
    background: rgba(212, 175, 55, 0.12);
}

.epic-topnav a.active {
    color: var(--ox-gold-bright);
    background: rgba(212, 175, 55, 0.15);
    border-bottom: 2px solid var(--ox-gold-core);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    box-shadow: inset 0 -4px 10px rgba(212, 175, 55, 0.15);
}

.epic-topnav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #ffd700;
    box-shadow: 0 0 8px #ffd700;
}

/* Main Layout: 3 Columns on Home, 2 Columns on Subpages */
.classic-layout {
    display: grid;
    grid-template-columns: 280px 1fr 310px;
    gap: 24px;
    padding: 28px 0 60px;
    min-height: calc(100vh - 160px);
}

.classic-layout.layout-two-col {
    grid-template-columns: 280px 1fr;
}

/* Option 3 AAA Studio Modern Buttons */
.classic-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aaa-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aaa-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(24, 20, 16, 0.90) 0%, rgba(12, 10, 8, 0.96) 100%);
    backdrop-filter: var(--ox-acrylic-blur);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    color: var(--ox-text-main);
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.15),
        inset 0 0 16px rgba(212, 175, 55, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.7);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.aaa-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.12), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.aaa-button:hover::before {
    left: 150%;
}

.aaa-button:hover {
    border-color: var(--ox-border-gold-bright);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 0 20px rgba(212, 175, 55, 0.18),
        0 12px 30px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(212, 175, 55, 0.3);
}

.aaa-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--ox-gold-bright);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.aaa-button:hover .aaa-button-icon {
    background: rgba(212, 175, 55, 0.25);
    border-color: #ffd700;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.aaa-button-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.aaa-button-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.aaa-button-sub {
    font-size: 11px;
    color: var(--ox-text-muted);
    margin-top: 3px;
}

/* Pre-release Alpha Pill (Disabled State upgraded to Luxury Alpha Badge) */
.aaa-button-alpha {
    border-color: rgba(212, 175, 55, 0.25);
    opacity: 0.92;
}

.aaa-button-alpha:hover {
    border-color: var(--ox-gold-core);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.2);
}

.aaa-alpha-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--ox-gold-bright);
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 4px;
    align-self: flex-start;
}

.aaa-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 6px #ffd700;
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Discord Button: Hybrid Blurple + Obsidian Laser Gold */
.aaa-button-discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.22) 0%, rgba(20, 16, 26, 0.95) 100%);
    border: 1px solid rgba(114, 137, 218, 0.45);
}

.aaa-button-discord:hover {
    border-color: #5865F2;
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.4), inset 0 0 16px rgba(88, 101, 242, 0.15);
}

.aaa-button-discord .aaa-button-icon {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
    color: #ffffff;
}

.aaa-button-discord .aaa-alpha-badge {
    color: #8ea1e1;
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.4);
}

.aaa-button-discord .aaa-badge-dot {
    background: #5865F2;
    box-shadow: 0 0 8px #5865F2;
}

/* Sidebar Modules */
.classic-side-module {
    background: var(--ox-bg-card);
    backdrop-filter: var(--ox-acrylic-blur);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.classic-side-module h2, .classic-side-module h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ox-gold-bright);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}

.classic-side-module p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ox-text-muted);
}

.classic-side-module nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.classic-side-module nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--ox-text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.classic-side-module nav a:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(3px);
}

/* Status Widget */
.server-status-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #4ade80;
    font-size: 11px;
}

.status-dot-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

/* Harmonized Hero Banner */
.epic-hero-banner {
    background: linear-gradient(180deg, rgba(20, 16, 12, 0.92) 0%, rgba(10, 9, 8, 0.98) 100%);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(212, 175, 55, 0.05);
    margin-bottom: 24px;
}

.epic-hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.epic-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ox-gold-core);
    text-transform: uppercase;
    margin: 0 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.epic-hero-banner h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.epic-hero-banner p {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--ox-text-muted);
    max-width: 640px;
}

.epic-season-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ox-gold-bright);
}

/* 4 Core Pillars Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.feature-card {
    background: var(--ox-bg-card);
    backdrop-filter: var(--ox-acrylic-blur);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 20px;
    transition: all 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.feature-card:hover {
    border-color: var(--ox-gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ox-gold-bright);
    margin-bottom: 14px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.feature-card p {
    margin: 0;
    font-size: 13px;
    color: var(--ox-text-muted);
    line-height: 1.5;
}

/* Right Sidebar: 3D Globe & Visitor Telemetry */
.classic-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.globe-module {
    background: var(--ox-bg-card);
    backdrop-filter: var(--ox-acrylic-blur);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.globe-head {
    width: 100%;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

.globe-head h2 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ox-gold-bright);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.globe-head p {
    margin: 0;
    font-size: 12px;
    color: var(--ox-text-muted);
}

.globe-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 270px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 12px;
    cursor: grab;
    user-select: none;
}

.globe-canvas-wrap:active {
    cursor: grabbing;
}

#oxidian-globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Tooltip floating over globe */
#globe-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(14, 12, 10, 0.95);
    border: 1px solid var(--ox-gold-bright);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 11px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 12px rgba(212, 175, 55, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    white-space: nowrap;
}

.globe-tip-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.globe-tip-flag {
    font-size: 14px;
}

.globe-tip-pct {
    margin-left: auto;
    color: var(--ox-gold-bright);
    font-weight: 700;
}

.globe-tip-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: var(--ox-text-muted);
}

.ping-good {
    color: #4ade80;
    font-weight: 700;
}

/* Country Leaderboard Under Globe */
.country-leaderboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.country-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.country-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--ox-text-main);
}

.country-count {
    color: var(--ox-gold-bright);
    font-size: 11px;
    font-weight: 700;
}

.country-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.country-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

/* Dedicated Subpages: Clean Presentation */
.portal-page-header {
    background: var(--ox-bg-card);
    backdrop-filter: var(--ox-acrylic-blur);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}

.portal-page-header h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.portal-page-header p {
    margin: 0;
    font-size: 14px;
    color: var(--ox-text-muted);
}

/* Rankings View Styling */
.rankings-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.podium-card {
    background: var(--ox-bg-card);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.podium-card.rank-1 {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-6px);
}

.podium-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
}

.rank-1 .podium-rank-badge {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000000;
    box-shadow: 0 0 14px #ffd700;
}

.rank-2 .podium-rank-badge {
    background: linear-gradient(135deg, #e0e0e0, #808080);
    color: #000000;
}

.rank-3 .podium-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: #ffffff;
}

/* Dark Acrylic Tables */
.oxidian-table-wrap {
    background: var(--ox-bg-card);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}

.oxidian-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.oxidian-table th {
    background: rgba(24, 20, 16, 0.95);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--ox-gold-bright);
    border-bottom: 1px solid var(--ox-border-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
}

.oxidian-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--ox-text-main);
}

.oxidian-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.08);
}

/* Staff Prestige Cards */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.staff-card {
    background: var(--ox-bg-card);
    backdrop-filter: var(--ox-acrylic-blur);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.28s ease;
}

.staff-card:hover {
    border-color: var(--ox-gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 16px rgba(212, 175, 55, 0.25);
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staff-role-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--ox-gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.staff-name {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.staff-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ox-text-muted);
}

.staff-tag {
    font-size: 12px;
    color: #7289da;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-weight: 600;
}

/* Reglas Accordion & Cards */
.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-card {
    background: var(--ox-bg-card);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
}

.rule-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ox-gold-bright);
}

.rule-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--ox-text-main);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--ox-bg-card);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.contact-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card p {
    margin: 0;
    font-size: 13px;
    color: var(--ox-text-muted);
}

/* Footer Harmonization */
.epic-footer {
    background: #050608;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    color: var(--ox-text-muted);
}

.epic-footer .epic-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unified-dev-link {
    color: rgba(212, 175, 55, 0.5);
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.unified-dev-link:hover {
    color: #ffd700;
    border-color: #ffd700;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
    .classic-layout {
        grid-template-columns: 260px 1fr;
    }
    .classic-right-sidebar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .epic-header-inner {
        flex-direction: column;
        gap: 14px;
    }
    .epic-topnav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .classic-layout {
        grid-template-columns: 1fr;
    }
    .features-grid, .staff-grid, .contact-grid, .rankings-podium {
        grid-template-columns: 1fr;
    }
}

/* Official Artwork Hero Slider */
.oxidian-slider-wrap {
    position: relative;
    width: 100%;
    min-height: 280px;
    height: 320px;
    border-radius: var(--ox-radius);
    overflow: hidden;
    border: 1px solid var(--ox-border-gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.08);
    margin-bottom: 24px;
    background: #08090b;
}

.oxidian-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.02);
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

/* Scrim overlay: dark gradient on the left half to protect text legibility without covering characters on the right */
.slider-scrim {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 9, 11, 0.96) 0%, rgba(8, 9, 11, 0.75) 48%, rgba(8, 9, 11, 0.15) 100%);
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 62%;
}

.slider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ox-gold-bright);
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.slider-slide h2 {
    margin: 4px 0 8px;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.slider-desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ox-text-main);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.slider-foot {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Slider Controls: Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(14, 12, 10, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--ox-border-gold);
    color: var(--ox-gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.slider-arrow:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: #ffd700;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.slider-prev {
    left: 14px;
}

.slider-next {
    right: 14px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 36px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    box-shadow: 0 0 8px #ffd700;
}

@media (max-width: 768px) {
    .oxidian-slider-wrap {
        height: auto;
        min-height: 240px;
    }
    .slider-scrim {
        max-width: 100%;
        padding: 24px;
        background: linear-gradient(180deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.85) 100%);
    }
    .slider-arrow {
        display: none;
    }
}

/* Login / Item Shop Form Styles */
.login-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.login-submit-btn {
    justify-content: center;
    text-align: center;
    margin-top: 8px;
    border-color: #ffd700 !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(20, 16, 12, 0.95)) !important;
    cursor: pointer;
    width: 100%;
}


/* ==========================================================================
   3D WEAPON CATALOG & MODAL TURNTABLE (Option 3 AAA Studio Moderno)
   ========================================================================== */

.catalog-telemetry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.cat-stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 15, 12, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--ox-radius);
    padding: 8px 14px;
    backdrop-filter: var(--ox-acrylic-blur);
}

.cat-chip-icon {
    font-size: 18px;
}

.cat-stat-chip strong {
    display: block;
    color: #ffd700;
    font-size: 14px;
    line-height: 1.2;
}

.cat-stat-chip span {
    font-size: 11px;
    color: var(--ox-text-muted);
}

/* Controls Card */
.catalog-controls-card {
    background: var(--ox-bg-card);
    border: 1px solid var(--ox-border-gold);
    border-radius: var(--ox-radius);
    padding: 18px;
    margin-bottom: 24px;
    backdrop-filter: var(--ox-acrylic-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.catalog-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.search-input-wrap {
    flex: 1;
    min-width: 240px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap svg {
    position: absolute;
    left: 12px;
    color: var(--ox-gold-core);
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--ox-radius);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrap input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.catalog-selects-wrap {
    display: flex;
    gap: 10px;
}

.cat-select {
    padding: 10px 14px;
    background: rgba(14, 12, 10, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--ox-radius);
    color: var(--ox-text-main);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cat-select:focus {
    border-color: #ffd700;
}

.filter-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ox-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 55px;
}

.client-pill, .subtype-pill {
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    color: var(--ox-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-pill:hover, .subtype-pill:hover {
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
}

.client-pill.active, .subtype-pill.active {
    color: #07080a;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.catalog-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 6px;
}

/* Grid Layout */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.weapon-card {
    background: var(--ox-bg-card);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--ox-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: var(--ox-acrylic-blur);
}

.weapon-card:hover {
    transform: translateY(-4px);
    border-color: #ffd700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(212, 175, 55, 0.25);
    background: var(--ox-bg-card-hover);
}

.weapon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge-oxidian {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
    letter-spacing: 0.5px;
}

.badge-marty {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
    letter-spacing: 0.5px;
}

.badge-guabina {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.weapon-level-badge {
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.weapon-icon-box {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(30, 25, 18, 0.8) 0%, rgba(10, 9, 8, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.weapon-img {
    max-height: 95px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
    transition: transform 0.25s ease;
}

.weapon-card:hover .weapon-img {
    transform: scale(1.08);
}

.weapon-meta-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--ox-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.weapon-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weapon-stats-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 10px;
    font-size: 11px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    line-height: 1.4;
}

.stat-lbl {
    color: var(--ox-text-muted);
}

.stat-val {
    font-weight: 700;
}

.att-color {
    color: #fca5a5;
}

.mag-color {
    color: #93c5fd;
}

.def-color {
    color: #86efac;
}

.weapon-classes-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.class-pill {
    font-size: 10px;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    color: var(--ox-text-muted);
}

.class-pill-lg {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #ffd700;
    font-weight: 600;
}

.btn-view-3d {
    width: 100%;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(15, 12, 9, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--ox-radius);
    color: #ffd700;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-view-3d:hover {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #07080a;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

/* Pagination */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0 40px;
}

.page-btn {
    padding: 8px 14px;
    background: rgba(14, 12, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--ox-radius);
    color: var(--ox-text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(.disabled) {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(212, 175, 55, 0.1);
}

.page-btn.active {
    background: #ffd700;
    color: #07080a;
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: var(--ox-text-muted);
    padding: 0 4px;
}

/* ==========================================
   3D WEAPON MODAL
   ========================================== */
.weapon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.weapon-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 7, 0.88);
    backdrop-filter: blur(16px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1050px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(20, 17, 13, 0.98), rgba(9, 10, 13, 0.98));
    border: 1px solid var(--ox-border-gold-bright);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #ffd700;
    color: #07080a;
    transform: scale(1.1);
}

.modal-body-split {
    display: flex;
    flex: 1;
    min-height: 520px;
}

.modal-viewport-wrap {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    background: #0a0c10;
    position: relative;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.canvas-3d-box {
    flex: 1;
    width: 100%;
    min-height: 440px;
    position: relative;
    cursor: grab;
}

.canvas-3d-box:active {
    cursor: grabbing;
}

.modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
    z-index: 5;
}

.modal-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin-modal 0.8s linear infinite;
}

@keyframes spin-modal {
    to { transform: rotate(360deg); }
}

.viewport-toolbar {
    padding: 10px 14px;
    background: rgba(7, 8, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: var(--ox-text-main);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #ffd700;
    color: #ffd700;
}

.viewport-hint {
    font-size: 11px;
    color: var(--ox-text-muted);
    margin-left: auto;
}

/* Modal Right Sidebar */
.modal-sidebar-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: rgba(14, 12, 10, 0.6);
}

.modal-info-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.modal-refine-box {
    margin-bottom: 18px;
}

.refine-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ox-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.variants-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.variant-btn {
    padding: 6px 11px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: var(--ox-text-main);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.variant-btn:hover {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(212, 175, 55, 0.15);
}

.variant-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #07080a;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.modal-stats-table {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.mstat-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.mstat-row:last-child {
    border-bottom: none;
}

.mstat-name {
    color: var(--ox-text-muted);
}

.mstat-val {
    font-weight: 700;
}

.modal-classes-box {
    margin-bottom: 18px;
}

.classes-pills-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.modal-technical-box {
    margin-top: auto;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Modal */
@media (max-width: 860px) {
    .modal-body-split {
        flex-direction: column;
        overflow-y: auto;
    }
    .modal-viewport-wrap {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        min-height: 320px;
    }
    .canvas-3d-box {
        min-height: 280px;
    }
    .viewport-hint {
        display: none;
    }
}

/* Category Pills Row */
.category-pills-row {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.15);
}

.category-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--ox-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--ox-gold-light);
}

.category-pill.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.12));
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   PJ Race Badges & 2D Relic Showcase Styling (Catalog 2026)
   ========================================================================== */

/* Prominent Character Badge on Cards */
.card-pj-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    width: fit-content;
    text-transform: uppercase;
}

.pj-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Guerrero: Crimson Fire */
.pj-guerrero {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}
.pj-guerrero .pj-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* Ninja: Emerald Poison */
.pj-ninja {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}
.pj-ninja .pj-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }

/* Sura: Amethyst Arcane */
.pj-sura {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #d8b4fe;
}
.pj-sura .pj-dot { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

/* Chamán: Celestial Cyan */
.pj-chaman {
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(6, 182, 212, 0.45);
    color: #67e8f9;
}
.pj-chaman .pj-dot { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }

/* Licano: Savage Bronze/Amber */
.pj-licano {
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #fdba74;
}
.pj-licano .pj-dot { background: #f97316; box-shadow: 0 0 6px #f97316; }

/* Todas las Razas: Imperial Gold */
.pj-all {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #fef08a;
}
.pj-all .pj-dot { background: #eab308; box-shadow: 0 0 6px #eab308; }

/* Universal / Hybrids: Steel / Silver */
.pj-universal, .pj-hybrid {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}
.pj-universal .pj-dot, .pj-hybrid .pj-dot { background: #94a3b8; }

.gender-pill {
    font-size: 10px;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Modal PJ Badge in Header */
.modal-header-pj-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 2D Modal Relic Showcase for Accessories & Objects */
.modal-2d-showcase {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: radial-gradient(circle at center, rgba(30, 24, 16, 0.9) 0%, rgba(8, 10, 14, 0.98) 100%);
    position: relative;
    overflow: hidden;
    min-height: 440px;
}

.modal-2d-pedestal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.modal-2d-halo {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
    animation: pulse-halo 4s ease-in-out infinite alternate;
}

@keyframes pulse-halo {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

.modal-2d-frame {
    position: relative;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, rgba(26, 22, 16, 0.95), rgba(10, 11, 14, 0.98));
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2;
}

.modal-2d-icon-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.9));
}

.modal-2d-caption {
    text-align: center;
    max-width: 380px;
    z-index: 2;
}

.modal-2d-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #ffd700;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.modal-2d-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ox-text-muted);
    margin: 0;
}

/* Button 2D details variant */
.btn-view-3d.btn-only-2d {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 12, 9, 0.9));
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.btn-view-3d.btn-only-2d:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #07080a;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    border-color: #38bdf8;
}

/* ==========================================================================
   Atmospheric Seasonal Halloween Effects Layer
   ========================================================================== */
.season-layer {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
    contain: paint;
}

.season-layer svg {
    position: absolute;
    overflow: visible;
}

.web-left {
    left: 0;
    top: 70px;
    width: 220px;
    height: 220px;
    color: #d4c8b6;
    opacity: 0.72;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.web-right {
    right: 0;
    top: 70px;
    width: 220px;
    height: 220px;
    transform: scaleX(-1);
    color: #d4c8b6;
    opacity: 0.72;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.spider {
    right: 6%;
    top: 110px;
    width: 42px;
    height: 110px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
    animation: spider-sway 7s ease-in-out infinite;
    transform-origin: top center;
}

.pumpkins {
    left: 3%;
    bottom: 24px;
    width: 170px;
    height: 116px;
    filter: drop-shadow(0 0 20px rgba(255, 139, 63, 0.55));
}

.pumpkins.right {
    left: auto;
    right: 3%;
    width: 155px;
    transform: scaleX(-1);
    filter: drop-shadow(0 0 20px rgba(255, 139, 63, 0.55));
}

.sparks {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 7% 65%, #ffcb77 0 2px, transparent 4px),
        radial-gradient(circle at 93% 70%, #ffd692 0 2px, transparent 5px),
        radial-gradient(circle at 12% 85%, #ff8b3f 0 2.5px, transparent 5px),
        radial-gradient(circle at 86% 88%, #ffad4c 0 2px, transparent 5px),
        radial-gradient(circle at 20% 25%, #ffcc8c 0 1.5px, transparent 4px),
        radial-gradient(circle at 80% 20%, #ff9d42 0 1.5px, transparent 4px);
    animation: spark-glow 4s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes spider-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(6deg); }
}

@keyframes spark-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.4; }
}

@media (max-width: 1400px) {
    .web-left, .web-right { width: 150px; height: 150px; }
    .pumpkins { width: 130px; height: 90px; }
    .pumpkins.right { width: 120px; }
    .spider { right: 3%; }
}

@media (max-width: 900px) {
    .web-left, .web-right { width: 100px; height: 100px; }
    .pumpkins, .pumpkins.right { display: none; }
    .spider { width: 32px; height: 85px; right: 2%; }
}

@media (prefers-reduced-motion: reduce) {
    .season-layer * { animation: none !important; }
}