/* ==========================================================================
   ROAD AVALON MAPS - DESIGN SYSTEM & TACTICAL HUD (AAA ULTRA-LEAN)
   Total weight: ~14 KB | Zero dependencies | 100% Mobile First
   ========================================================================== */

:root {
    --bg-body: #080b11;
    --bg-surface: #0e1422;
    --bg-card: #131b2e;
    --bg-card-hover: #19243c;
    --bg-input: #0b101d;
    --bg-modal: #0d1322;

    --border-subtle: #1e2a42;
    --border-medium: #2a3b5c;
    --border-glow: #e5b85c55;

    --gold-primary: #e5b85c;
    --gold-hover: #f5cb74;
    --gold-dim: #99742e;
    --gold-glow: 0 0 16px rgba(229, 184, 92, 0.25);

    --cyan-primary: #38bdf8;
    --cyan-glow: 0 0 16px rgba(56, 189, 248, 0.25);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --tier4-color: #38bdf8;
    --tier4-bg: rgba(56, 189, 248, 0.12);
    --tier4-border: rgba(56, 189, 248, 0.35);

    --tier6-color: #fbbf24;
    --tier6-bg: rgba(251, 191, 36, 0.12);
    --tier6-border: rgba(251, 191, 36, 0.4);

    --tier8-color: #f43f5e;
    --tier8-bg: rgba(244, 63, 94, 0.15);
    --tier8-border: rgba(244, 63, 94, 0.45);
    --tier8-glow: 0 0 12px rgba(244, 63, 94, 0.35);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, #151e36 0%, var(--bg-body) 65%);
    background-attachment: fixed;
}

a {
    color: var(--cyan-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* HUD Navigation Bar */
.hud-nav {
    background: rgba(9, 13, 24, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 184, 92, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10000;
    overflow: visible !important;
}

.hud-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 1.25rem;
    overflow: visible !important;
    position: relative;
}

/* Brand Branding & Logo */
.hud-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    user-select: none;
    transition: var(--transition);
}

.hud-brand:hover {
    text-decoration: none;
    opacity: 0.95;
    transform: translateY(-1px);
}

.hud-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.2) 0%, rgba(14, 20, 36, 0.8) 100%);
    border: 1px solid rgba(229, 184, 92, 0.4);
    box-shadow: 0 0 16px rgba(229, 184, 92, 0.25), inset 0 0 8px rgba(56, 189, 248, 0.2);
    transition: var(--transition);
}

.hud-brand:hover .hud-brand-logo {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(229, 184, 92, 0.4), inset 0 0 12px rgba(56, 189, 248, 0.3);
}

.hud-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hud-brand-title {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #f8fafc;
    text-transform: uppercase;
    line-height: 1.1;
    display: flex;
    align-items: center;
}

.hud-brand-gold {
    color: var(--gold-primary);
    text-shadow: 0 0 14px rgba(229, 184, 92, 0.4);
    margin-left: 2px;
}

.hud-brand-subtitle {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--cyan-primary);
    text-transform: uppercase;
    opacity: 0.9;
    line-height: 1;
    margin-top: 2px;
}

/* Nav Menu Tabs */
.hud-menu-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(13, 20, 34, 0.7);
    padding: 3px 5px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hud-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.65rem;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.hud-nav-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.hud-nav-link.active {
    color: var(--gold-primary);
    background: linear-gradient(180deg, rgba(229, 184, 92, 0.18) 0%, rgba(229, 184, 92, 0.05) 100%);
    border-color: rgba(229, 184, 92, 0.45);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(229, 184, 92, 0.22);
}

.hud-nav-link .hud-link-icon {
    font-size: 0.88rem;
    line-height: 1;
}

/* Action Utilities Group (Right) */
.hud-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: visible !important;
    flex-shrink: 0;
}

.hud-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-live {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-count {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* Hero Section */
.hero-section {
    padding: 1.25rem 0 0.75rem;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.hero-title span {
    color: var(--gold-primary);
}

/* Tactical Search & Filters Box */
.hud-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-bar-row {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}

.search-bar-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.85rem 3.5rem 0.85rem 2.85rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-kbd {
    position: absolute;
    right: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 2.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem 0.4rem;
    display: none;
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

/* Button Toggle Filters - Attached next to search bar */
.btn-toggle-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.btn-toggle-filters:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--gold-primary);
}

.btn-toggle-filters.active {
    background: var(--gold-dim);
    border-color: var(--gold-primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(229, 184, 92, 0.25);
}

.btn-toggle-filters .filter-funnel-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-toggle-filters .filter-chevron-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.btn-toggle-filters.active .filter-chevron-icon {
    transform: rotate(180deg);
}

.filter-count-badge {
    background: var(--gold-primary);
    color: #080b11;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    box-shadow: 0 0 6px rgba(229, 184, 92, 0.5);
}

/* Multi-Filter Pills - Collapsed by default */
.filter-groups {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 1px dashed var(--border-subtle);
    animation: filterSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-groups.open {
    display: flex;
}

@keyframes filterSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 65px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.pill-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.pill-btn.active {
    background: var(--gold-dim);
    border-color: var(--gold-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(229, 184, 92, 0.3);
}

.pill-btn img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* Controls Toolbar (View Toggle, Sort, Count) */
.toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.counter-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.counter-value {
    color: var(--gold-primary);
    font-weight: 700;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.select-compact {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.select-compact:focus {
    border-color: var(--gold-primary);
}

.view-toggle-group {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.view-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--bg-surface);
    color: var(--gold-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Tier Badges */
.tier-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
}

.tier-4 {
    color: var(--tier4-color);
    background: var(--tier4-bg);
    border: 1px solid var(--tier4-border);
}

.tier-6 {
    color: var(--tier6-color);
    background: var(--tier6-bg);
    border: 1px solid var(--tier6-border);
}

.tier-8 {
    color: var(--tier8-color);
    background: var(--tier8-bg);
    border: 1px solid var(--tier8-border);
    box-shadow: var(--tier8-glow);
}

/* TABLE VIEW (DEFAULT) */
.table-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 2rem;
}

.hud-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.hud-table th {
    background: #0b101c;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-medium);
}

.hud-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    color: var(--text-primary);
}

.hud-table tr {
    transition: var(--transition);
    cursor: pointer;
}

.hud-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.hud-table tr:last-child td {
    border-bottom: none;
}

.map-name-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.map-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.map-suffix-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.resource-icons-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.icon-badge-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-badge-box img {
    width: 26px;
    height: 26px;
    display: block;
    user-select: none;
}

.icon-badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.btn-action-map {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-medium);
    color: var(--gold-primary);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-action-map:hover {
    border-color: var(--gold-primary);
    background: var(--gold-dim);
    color: #fff;
    box-shadow: var(--gold-glow);
}

.btn-submit-map {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(202, 138, 4, 0.22) 100%);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #facc15;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-submit-map:hover {
    border-color: #facc15;
    background: rgba(234, 179, 8, 0.32);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
    transform: translateY(-1px);
}

/* SUBMISSION MODAL STYLES */
.submit-modal-window {
    max-width: 620px;
}

.submit-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.submit-zone-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: rgba(14, 20, 34, 0.75);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
}

.submit-callout {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.28);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.submit-callout strong {
    color: #facc15;
}

.submit-steps {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
}

.submit-steps-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.2rem;
}

.submit-step-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    line-height: 1.4;
}

.submit-dropzone {
    border: 2px dashed rgba(234, 179, 8, 0.4);
    background: rgba(11, 16, 29, 0.6);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.submit-dropzone:hover, .submit-dropzone.dragover {
    border-color: #facc15;
    background: rgba(234, 179, 8, 0.12);
}

.submit-dropzone-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.submit-dropzone-text {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 600;
}

.submit-dropzone-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.submit-preview-wrap {
    display: none;
    text-align: center;
    margin-top: 0.5rem;
}

.submit-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-medium);
}

.submit-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-submit-primary {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #e5b85c 0%, #d49e35 100%);
    color: #0b0f19;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-submit-primary:hover {
    background: #f5cb74;
    box-shadow: 0 0 16px rgba(229, 184, 92, 0.4);
    transform: translateY(-1px);
    color: #000;
    text-decoration: none;
}

.btn-submit-copy {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-submit-copy:hover {
    border-color: var(--cyan-primary);
    color: #fff;
}

/* GRID VIEW (EXPLICIT USER ACTIVATION) */
.hud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.map-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-card:hover {
    background: var(--bg-card);
    border-color: var(--gold-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.map-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.map-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
}

/* INTERACTIVE MAP INSPECTOR MODAL (AAA PAN & ZOOM) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--bg-modal);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-header {
    padding: 0.85rem 1.25rem;
    background: #0a0f1d;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Pan & Zoom Viewport */
.modal-viewport {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 380px;
    background: #05080f;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-viewport:active {
    cursor: grabbing;
}

.map-zoom-target {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.05s ease-out;
    pointer-events: none;
}

.map-zoom-target.high-contrast {
    filter: contrast(140%) brightness(115%) saturate(120%);
}

/* Viewport HUD Controls */
.viewport-hud {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 29, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-medium);
    border-radius: 9999px;
    padding: 0.35rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.hud-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.hud-btn:hover {
    color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.08);
}

.hud-separator {
    width: 1px;
    height: 16px;
    background: var(--border-subtle);
}

.zoom-level-text {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-muted);
    min-width: 42px;
    text-align: center;
}

.modal-footer {
    padding: 0.85rem 1.25rem;
    background: #0a0f1d;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-resources-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Loading & Empty States */
.hud-loading {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(229, 184, 92, 0.15);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.faq-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-medium);
}

.faq-summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: var(--text-primary);
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--gold-primary);
    transition: transform 0.2s ease;
}

details[open] .faq-summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Footer */
.hud-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: #05080f;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hud-footer a {
    color: var(--text-secondary);
}

/* Detail Page & General Card Layouts */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

.breadcrumb-separator {
    color: var(--border-medium);
}

.breadcrumb-active {
    color: var(--text-primary);
    font-weight: 600;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.card-header {
    background: #0b101c;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--gold-primary);
}

.card-body {
    padding: 1.25rem;
}

.map-view-box {
    text-align: center;
    background: #05080f;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
}

.map-view-box img {
    max-height: 520px;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.related-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--cyan-primary);
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
}

.related-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
    text-decoration: none;
    color: #7dd3fc;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.info-list li strong {
    color: var(--text-primary);
}

/* RESPONSIVE DESIGN - MOBILE FRIENDLY */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.35rem;
    }

    .hud-panel {
        padding: 0.85rem;
    }

    .btn-toggle-filters {
        padding: 0 0.85rem;
        font-size: 0.82rem;
        gap: 0.35rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding-left: 2.5rem;
    }

    .filter-label {
        width: 100%;
        margin-bottom: 0.15rem;
    }

    .pill-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.78rem;
    }

    .toolbar-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .modal-viewport {
        height: 52vh;
        min-height: 280px;
    }

    .viewport-hud {
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }

    .hud-btn {
        padding: 0.25rem 0.35rem;
        font-size: 0.75rem;
    }

    /* Mobile Table: keep columns readable and allow comfortable tap targets */
    .hud-table th, .hud-table td {
        padding: 0.65rem 0.5rem;
    }

    .map-title {
        font-size: 0.9rem;
    }

    .btn-action-map {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   LANGUAGE TOGGLE & HOW TO READ A ZONE (ALBION BATTLE HUB STYLE)
   ========================================================================== */

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    gap: 0.25rem;
    user-select: none;
}

.lang-toggle-btn:hover {
    border-color: var(--gold-primary);
}

.lang-toggle-btn .lang-opt {
    transition: color 0.15s ease;
}

.lang-toggle-btn .lang-opt.active {
    color: var(--gold-primary);
    text-shadow: 0 0 8px rgba(229, 184, 92, 0.4);
}

.lang-divider {
    color: var(--border-medium);
    font-weight: 400;
}

/* How to Read a Zone Section */
.zone-guide-section {
    margin-bottom: 1.5rem;
}

.zone-guide-header {
    margin-bottom: 0.85rem;
}

.zone-guide-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-guide-title svg {
    color: var(--gold-primary);
}

.zone-guide-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.zone-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.zone-guide-card {
    background: rgba(7, 17, 27, 0.85);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.zone-guide-card:hover {
    border-color: rgba(214, 165, 88, 0.45);
}

.zone-guide-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.guide-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 20, 34, 0.95);
    color: var(--text-secondary);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.guide-pill:hover {
    border-color: var(--cyan-primary);
    color: var(--text-primary);
}

.guide-pill.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--cyan-primary);
    color: var(--cyan-primary);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.guide-pill-letter {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    border-color: rgba(214, 165, 88, 0.45);
    color: #e6bf78;
    background: rgba(7, 17, 27, 0.85);
}

.guide-pill-letter:hover {
    border-color: var(--gold-primary);
    color: #fff;
    background: rgba(229, 184, 92, 0.15);
}

.guide-pill-letter.active {
    background: rgba(229, 184, 92, 0.25);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 14px rgba(229, 184, 92, 0.4);
}

.guide-pill-count {
    font-size: 0.75rem;
    opacity: 0.65;
    font-weight: 500;
}

.zone-guide-card-desc {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   BUILDS & GUILD SYSTEM STYLES (AAA BATTLEHUB SPEC)
   ========================================================================== */

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--bg-surface);
    color: var(--gold-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Nav Auth Profile */
.nav-auth-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem 0.25rem 0.35rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-btn:hover {
    border-color: var(--gold-primary);
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-medium);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

/* Subheader Tabs "Create Build" Button (Right-aligned in tabs-nav) */
.btn-create-build-header {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0b0f19;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.28);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-create-build-header:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
    color: #050811;
}

.btn-create-build-header:active {
    transform: translateY(0);
}

.btn-create-build-header svg {
    flex-shrink: 0;
}

/* Global HUD Navbar Quick "Create Build" Button */
.hud-btn-create-build {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b0f19;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    margin-right: 0.35rem;
    flex-shrink: 0;
}

.hud-btn-create-build:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.42);
    transform: translateY(-1px);
    color: #050811;
}

.hud-btn-create-build:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hud-btn-create-build span {
        display: none;
    }
    .hud-btn-create-build {
        padding: 0.42rem 0.55rem;
        margin-right: 0.2rem;
    }
}

/* Build Loadout Grid (Albion Character Doll) */
.builder-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 960px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
}

.equipment-doll {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.doll-grid {
    display: grid;
    grid-template-columns: repeat(3, 86px);
    grid-gap: 1rem;
    justify-content: center;
}

.doll-slot-box {
    position: relative;
    width: 86px;
    height: 86px;
    background: radial-gradient(circle, #19243c 0%, #0d1322 100%);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.doll-slot-box:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(229, 184, 92, 0.25);
    transform: translateY(-2px);
}

.doll-slot-box.filled {
    border-color: rgba(229, 184, 92, 0.4);
    background: radial-gradient(circle, #1c2b4c 0%, #0b1120 100%);
}

.doll-slot-box.disabled {
    opacity: 0.35;
    pointer-events: none;
    border-style: dashed;
}

.slot-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.slot-placeholder-icon {
    font-size: 1.5rem;
    opacity: 0.3;
    pointer-events: none;
}

.slot-name-badge {
    position: absolute;
    bottom: -8px;
    background: var(--bg-modal);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 1px 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.doll-slot-box:hover .slot-name-badge {
    color: var(--gold-primary);
    border-color: var(--gold-dim);
}

/* Mini Spell Sockets Attached to Slots */
.spells-socket-container {
    width: 100%;
    background: #090e1a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spell-socket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.spell-socket-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
}

.spell-socket-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spell-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 0;
    overflow: hidden;
}

.spell-circle-btn:hover {
    border-color: var(--cyan-primary);
    color: var(--cyan-primary);
    box-shadow: var(--cyan-glow);
}

.spell-circle-btn.selected {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(229, 184, 92, 0.4);
    background: #142036;
}

.spell-circle-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swaps Row */
.swaps-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.swap-slot {
    width: 54px;
    height: 54px;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.swap-slot:hover {
    border-color: var(--cyan-primary);
}

.swap-slot img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* Build Form Controls */
.build-form-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Cards for Visibility */
.visibility-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .visibility-options {
        grid-template-columns: 1fr;
    }
}

.vis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vis-card:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
}

.vis-card.active {
    border-color: var(--gold-primary);
    background: rgba(229, 184, 92, 0.1);
    box-shadow: 0 0 12px rgba(229, 184, 92, 0.2);
}

.vis-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.vis-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-approved {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-rejected {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Builds Explorer Grid */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.build-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.build-card:hover {
    border-color: var(--gold-dim);
    background: var(--bg-card);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.build-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.build-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.build-author-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.build-gear-preview {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    background: #090e1a;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.gear-icon-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.build-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
    font-size: 0.82rem;
}

/* Guild Management Panel */
.guild-panel-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.guild-header-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.guild-name-h {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guild-tag-badge {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    color: var(--gold-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.member-table th {
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.6rem 0.85rem;
    background: #090e1a;
    border-bottom: 1px solid var(--border-subtle);
}

.member-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.88rem;
}

/* Modal for Item Picker */
.item-picker-modal {
    max-width: 800px;
    max-height: 85vh;
}

.item-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    max-height: 55vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.item-select-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
}

.item-select-card:hover {
    border-color: var(--gold-primary);
    background: var(--bg-card-hover);
}

.item-select-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.item-select-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

/* ==========================================================================
   MARKET TOOLS & ECONOMY SUITE (FLIPPER, PRICE CHECK, CRAFTING, KILLBOARD)
   ========================================================================== */

/* Server Selector Pills */
.server-selector {
    display: inline-flex;
    align-items: center;
    background: rgba(14, 20, 34, 0.9);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full, 9999px);
    padding: 3px;
    gap: 2px;
}

.server-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
}

.server-btn:hover {
    color: var(--text-primary);
}

.server-btn.active {
    background: var(--gold-primary);
    color: #080b11;
    box-shadow: 0 0 10px rgba(229, 184, 92, 0.4);
}

/* Metrics & Stat Cards */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-primary);
}

.metric-card.cyan::before {
    background: var(--cyan-primary);
}

.metric-card.emerald::before {
    background: #10b981;
}

.metric-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.metric-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Data Tables (Flipper, Prices, Crafting) */
.market-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 780px;
}

.market-table th {
    background: #090e1a;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-medium);
    white-space: nowrap;
    user-select: none;
}

.market-table th.sortable {
    cursor: pointer;
}

.market-table th.sortable:hover {
    color: var(--gold-primary);
}

.market-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
}

.market-table tr:hover td {
    background: rgba(229, 184, 92, 0.04);
}

/* Profit & Price Badges */
.badge-profit-pos {
    color: #10b981;
    font-weight: 700;
}

.badge-profit-neg {
    color: #ef4444;
    font-weight: 600;
}

.badge-roi {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-roi.super {
    background: rgba(229, 184, 92, 0.2);
    color: var(--gold-primary);
    border-color: var(--gold-dim);
    box-shadow: 0 0 8px rgba(229, 184, 92, 0.3);
}

.city-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(30, 42, 66, 0.6);
    border: 1px solid var(--border-subtle);
}

.city-badge.caerleon { border-color: #ef4444; color: #fca5a5; }
.city-badge.blackmarket { border-color: #8b5cf6; color: #c4b5fd; background: rgba(139, 92, 246, 0.15); }
.city-badge.bridgewatch { border-color: #f59e0b; color: #fcd34d; }
.city-badge.fortsterling { border-color: #e2e8f0; color: #ffffff; }
.city-badge.lymhurst { border-color: #10b981; color: #6ee7b7; }
.city-badge.martlock { border-color: #3b82f6; color: #93c5fd; }
.city-badge.thetford { border-color: #a855f7; color: #d8b4fe; }
.city-badge.brecilien { border-color: #ec4899; color: #f472b6; }

/* Item Cell in Tables */
.item-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-thumb {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.item-meta {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.item-tier-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Killboard Card Layout */
.kills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.kill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
}

.kill-card:hover {
    border-color: var(--border-medium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.kill-card.high-fame {
    border-color: rgba(229, 184, 92, 0.45);
    background: linear-gradient(135deg, rgba(229, 184, 92, 0.05) 0%, var(--bg-card) 60%);
}

.kill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kill-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.kill-fame-badge {
    background: rgba(229, 184, 92, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--gold-dim);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kill-participants {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .kill-participants {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.combatant {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.combatant.victim {
    text-align: right;
}

@media (max-width: 768px) {
    .combatant.victim {
        text-align: left;
    }
}

.combatant-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.combatant.killer .combatant-name {
    color: #34d399;
}

.combatant.victim .combatant-name {
    color: #f87171;
}

.combatant-guild {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.combatant-gear-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.combatant.victim .combatant-gear-row {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .combatant.victim .combatant-gear-row {
        justify-content: flex-start;
    }
}

.gear-icon-sm {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #090e1a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.versus-divider {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gold-primary);
    text-align: center;
    padding: 0 0.5rem;
}

/* AdSense Container Wrappers */
.ad-banner-wrap {
    width: 100%;
    margin: 1.75rem 0;
    padding: 0.75rem;
    background: rgba(14, 20, 34, 0.4);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

/* Crafting Calculator Form */
.crafting-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.calc-result-box {
    background: linear-gradient(145deg, rgba(229, 184, 92, 0.08), rgba(14, 20, 34, 0.9));
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-highlight-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-shadow: 0 0 12px rgba(229, 184, 92, 0.3);
}

/* Floating Cost Widget in Builds */
.build-cost-widget {
    background: rgba(14, 20, 34, 0.95);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.build-cost-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* ==========================================================================
   UNIFIED HEADER: TWITCH LIVE & 14-LANGUAGE DROPDOWNS & AUTH (AAA POLISH)
   ========================================================================== */

.twitch-live-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: twitchDotPulse 1.8s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes twitchDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Dropdown Container */
.nav-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible !important;
}

/* Twitch Live Button */
.nav-twitch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(145, 70, 255, 0.12);
    border: 1px solid rgba(169, 112, 255, 0.35);
    color: #f8fafc;
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.nav-twitch-btn:hover {
    background: rgba(145, 70, 255, 0.22);
    border-color: rgba(169, 112, 255, 0.65);
    box-shadow: 0 0 16px rgba(145, 70, 255, 0.3);
}

.nav-twitch-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Language Selector Button */
.nav-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.38rem 0.65rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.nav-lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(229, 184, 92, 0.4);
    color: #ffffff;
}

.nav-lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.nav-lang-code {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dropdown-chevron,
.dropdown-arrow {
    opacity: 0.7;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown-wrap:has(.nav-dropdown-menu.active) .dropdown-chevron,
.nav-dropdown-wrap:has(.nav-dropdown-menu.active) .dropdown-arrow {
    transform: rotate(180deg);
}

/* Google Sign-in Auth Button */
.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(229, 184, 92, 0.12);
    border: 1px solid rgba(229, 184, 92, 0.38);
    color: var(--gold-primary);
    padding: 0.38rem 0.8rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.nav-auth-btn:hover {
    background: rgba(229, 184, 92, 0.22);
    border-color: var(--gold-hover);
    box-shadow: 0 0 16px rgba(229, 184, 92, 0.3);
    color: #ffffff;
}

/* User Logged In Pill / Button */
.nav-user-profile,
.nav-user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 20, 36, 0.75);
    border: 1px solid rgba(229, 184, 92, 0.35);
    border-radius: 20px;
    padding: 3px 10px 3px 4px;
    cursor: pointer;
    color: #f8fafc;
    transition: var(--transition);
    user-select: none;
    font-family: inherit;
    text-decoration: none;
}

.nav-user-profile-btn:hover {
    background: rgba(22, 32, 58, 0.95);
    border-color: var(--gold-primary);
    box-shadow: 0 0 14px rgba(229, 184, 92, 0.28);
    color: #ffffff;
}

.nav-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-primary);
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-logout {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.nav-user-logout:hover {
    color: #f43f5e;
}

/* User Dropdown Menu */
.nav-user-dropdown {
    width: 300px;
    max-width: calc(100vw - 20px);
    right: 0;
    padding: 0.75rem;
}

.nav-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem 0.65rem;
}

.nav-user-header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 10px rgba(229, 184, 92, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-header-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.nav-user-header-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-header-email {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.45rem 0;
}

.nav-user-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: #e2e8f0;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.nav-user-menu-item:hover {
    background: rgba(229, 184, 92, 0.1);
    border-color: rgba(229, 184, 92, 0.25);
    color: #ffffff;
}

.nav-user-menu-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.nav-user-menu-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.nav-user-menu-title {
    font-size: 0.83rem;
    font-weight: 600;
    color: #f1f5f9;
}

.nav-user-menu-item:hover .nav-user-menu-title {
    color: var(--gold-primary);
}

.nav-user-menu-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-footer {
    padding-top: 0.35rem;
}

.nav-user-logout-action {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-user-logout-action:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Floating Dropdowns (Zero Clipping, Absolute Stacking) */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #090e1a;
    border: 1px solid rgba(229, 184, 92, 0.25);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 0.6rem;
    display: none;
    z-index: 99999 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-dropdown-menu.active {
    display: block;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.6rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.45rem;
}

.nav-dropdown-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-stream-count-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Twitch Stream Dropdown */
.nav-stream-dropdown {
    width: 340px;
    max-width: calc(100vw - 20px);
    max-height: min(480px, 80vh);
    overflow-y: auto;
    border-color: rgba(169, 112, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(169, 112, 255, 0.15);
}

.nav-stream-dropdown::-webkit-scrollbar,
.nav-lang-dropdown::-webkit-scrollbar {
    width: 5px;
}
.nav-stream-dropdown::-webkit-scrollbar-thumb,
.nav-lang-dropdown::-webkit-scrollbar-thumb {
    background: #253550;
    border-radius: 4px;
}

.twitch-stream-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.twitch-stream-card:hover {
    background: rgba(169, 112, 255, 0.12);
    border-color: rgba(169, 112, 255, 0.35);
    text-decoration: none;
    transform: translateX(2px);
}

.twitch-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(169, 112, 255, 0.45);
    background: #131b2e;
}

.twitch-card-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.twitch-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.twitch-card-name-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
}

.twitch-card-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twitch-live-tag {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.twitch-card-viewers {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.twitch-card-title {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.twitch-card-footer {
    display: block;
    text-align: center;
    padding: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cyan-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.45rem;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
}

.twitch-card-footer:hover {
    background: rgba(56, 189, 248, 0.12);
    text-decoration: none;
}

/* Language Dropdown */
.nav-lang-dropdown {
    width: 260px;
    max-width: calc(100vw - 20px);
    max-height: min(440px, 80vh);
    overflow-y: auto;
}

.nav-lang-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-select-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.45rem 0.7rem;
    border-radius: 7px;
    font-size: 0.84rem;
    color: #cbd5e1;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.lang-select-item:hover {
    background: rgba(229, 184, 92, 0.1);
    color: #ffffff;
}

.lang-select-item.active {
    color: var(--gold-primary);
    background: rgba(229, 184, 92, 0.18);
    font-weight: 700;
}

.lang-select-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-select-name {
    flex: 1;
}

.lang-select-code {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
}

.lang-select-item.active .lang-select-code {
    color: var(--gold-primary);
    background: rgba(229, 184, 92, 0.2);
}

/* AdSense Safe Container Dimensions */
.ad-banner-wrap {
    min-height: 90px;
    width: 100%;
    display: block;
    overflow: hidden;
    text-align: center;
    margin: 1.5rem auto;
}

.ad-banner-wrap ins.adsbygoogle {
    display: block;
    min-width: 250px;
    min-height: 90px;
    width: 100%;
}

/* Single-Line Global Header - Never Wrap */
.hud-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    gap: 0.5rem;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hud-nav-inner::-webkit-scrollbar {
    display: none;
}

.hud-menu-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.hud-nav-link {
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Author Filter Chip */
.author-filter-chip {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(229, 184, 92, 0.12);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-md);
    color: #f8fafc;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.author-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--gold-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    transition: color 0.15s ease;
}

.author-link-btn:hover {
    color: #fff;
}

/* Interactive Item Popover / Tooltip */
.doll-slot-box {
    position: relative;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.doll-slot-box:hover {
    transform: scale(1.05);
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(229, 184, 92, 0.35);
}

.item-inspect-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0d1424;
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 0.75rem;
    width: 240px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    pointer-events: none;
    display: none;
    animation: dropdownFadeIn 0.15s ease;
}

.doll-slot-box:hover .item-inspect-popover,
.doll-slot-box:focus .item-inspect-popover {
    display: block;
}

.item-inspect-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.item-inspect-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--cyan-primary);
    margin-bottom: 0.35rem;
}

.item-inspect-prop {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

/* Multi-City Price Comparison Widget */
.build-price-column {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.city-price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.city-price-card:hover {
    border-color: var(--border-medium);
    background: #141c2e;
}

.city-price-card.cheapest {
    border: 1.5px solid var(--gold-primary);
    background: rgba(229, 184, 92, 0.08);
    box-shadow: 0 0 16px rgba(229, 184, 92, 0.15);
}

.city-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.city-name-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #f8fafc;
}

.city-total-silver {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold-primary);
    font-variant-numeric: tabular-nums;
}

.cheapest-badge {
    background: linear-gradient(135deg, #e5b85c, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.city-items-toggle {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--cyan-primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.city-items-table {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.city-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #cbd5e1;
}

/* Responsive Header */
@media (max-width: 900px) {
    .hud-brand-subtitle {
        display: none;
    }
    .hud-nav-link {
        padding: 0.25rem 0.45rem;
        font-size: 0.76rem;
    }
}

/* ==========================================================================
   COMBAT & PVP GLOBAL NAV DROPDOWN (Players + Battleboard + Killboard)
   ========================================================================== */
.nav-combat-dropdown-wrap,
.nav-market-dropdown-wrap {
    position: relative;
    display: inline-flex;
}

.hud-nav-dropdown-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.hud-nav-dropdown-btn .dropdown-chevron {
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.nav-combat-dropdown-wrap:has(.nav-combat-dropdown.active) .dropdown-chevron,
.nav-market-dropdown-wrap:has(.nav-market-dropdown.active) .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-combat-dropdown,
.nav-market-dropdown {
    width: 250px;
    padding: 0.45rem;
    left: 0;
    right: auto;
}

.combat-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.combat-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.combat-dropdown-item.active {
    background: rgba(229, 184, 92, 0.12);
    border-color: rgba(229, 184, 92, 0.35);
    color: var(--gold-primary);
}

.combat-item-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.combat-item-text {
    display: flex;
    flex-direction: column;
}

.combat-item-text strong {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.combat-item-text small {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.2;
    margin-top: 1px;
}

.combat-dropdown-item:hover .combat-item-text small {
    color: #94a3b8;
}

/* ==========================================================================
   ALBION ONLINE PLAYERS SEARCH & LIFETIME PROFILE STATS
   ========================================================================== */
.players-section {
    animation: fadeIn 0.25s ease-out;
}

.players-hero-header {
    text-align: center;
    margin-bottom: 2rem;
}

.players-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 0.35rem;
    text-transform: capitalize;
}

.players-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
}

/* Tactical Search Box */
.players-search-container {
    max-width: 740px;
    margin: 0 auto 2rem;
}

.players-search-form {
    display: flex;
    align-items: center;
    background: #090e1a;
    border: 1px solid rgba(229, 184, 92, 0.3);
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 184, 92, 0.08);
    gap: 0.5rem;
}

.server-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    position: relative;
}

.server-globe-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.server-select {
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    padding-right: 0.25rem;
}

.server-select option {
    background: #0c121e;
    color: #f8fafc;
}

.player-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-lens-icon {
    position: absolute;
    left: 0.75rem;
    color: #64748b;
    pointer-events: none;
}

.player-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 0.95rem;
    padding: 0.65rem 0.75rem 0.65rem 2.5rem;
    font-family: inherit;
}

.player-search-input::placeholder {
    color: #64748b;
}

.btn-find-player {
    background: linear-gradient(135deg, #00d2ff 0%, #00a3cc 100%);
    color: #041019;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.35);
    white-space: nowrap;
}

.btn-find-player:hover {
    background: linear-gradient(135deg, #38dcfc 0%, #00bce6 100%);
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(0, 210, 255, 0.55);
}

.player-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #090e1a;
    border: 1px solid rgba(229, 184, 92, 0.3);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(0, 210, 255, 0.1);
}

.autocomplete-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--cyan-primary);
}

.autocomplete-info {
    display: flex;
    flex-direction: column;
}

.autocomplete-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
}

.autocomplete-guild {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Searching Tag */
.searching-tag-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.82rem;
}

.searching-label {
    color: #64748b;
}

.server-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-dot.green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
}

/* Results Section */
.players-results-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.players-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 2.5rem 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.hud-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(229, 184, 92, 0.2);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: hudSpin 0.7s linear infinite;
}

@keyframes hudSpin {
    to { transform: rotate(360deg); }
}

.results-count-header {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.player-results-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 20, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.player-result-card:hover {
    border-color: rgba(0, 210, 255, 0.4);
    background: rgba(16, 26, 46, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 210, 255, 0.15);
}

.result-player-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-avatar-box .avatar-letter {
    font-size: 1.2rem;
    font-weight: 800;
    color: #38bdf8;
}

.result-player-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.result-player-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
}

.result-player-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alliance-tag {
    color: var(--gold-primary);
    font-weight: 700;
}

.fame-mini-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    color: #cbd5e1;
}

.btn-view-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: #38bdf8;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-stats:hover {
    background: rgba(0, 210, 255, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
}

.players-empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    color: #94a3b8;
}

.players-empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.players-empty-state h3 {
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 0.35rem;
}

/* Profile View */
.profile-nav-bar {
    margin-bottom: 1.25rem;
}

.btn-back-players {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-players:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.player-profile-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 20, 34, 0.9);
    border: 1px solid rgba(229, 184, 92, 0.25);
    border-radius: 14px;
    padding: 1.4rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    gap: 1.25rem;
}

.player-profile-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.player-avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #090e1a;
    border: 1px solid rgba(229, 184, 92, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px rgba(229, 184, 92, 0.15);
}

.player-initial {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--gold-primary);
}

.player-active-dot {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    border: 2px solid #090e1a;
}

.player-title-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-player-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.01em;
}

.profile-guild-badge {
    background: rgba(229, 184, 92, 0.12);
    border: 1px solid rgba(229, 184, 92, 0.3);
    color: var(--gold-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.server-pill {
    color: #38bdf8;
    font-weight: 600;
}

.meta-separator {
    color: #475569;
}

.player-id-text {
    color: #64748b;
    font-family: monospace;
}

.player-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-action-hud {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-hud:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.btn-share-hud:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* Total Fame Card */
.fame-highlight-card {
    background: rgba(13, 20, 34, 0.9);
    border: 1px solid rgba(229, 184, 92, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.25rem;
}

.fame-highlight-label {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.fame-highlight-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(229, 184, 92, 0.35);
}

/* 4 KPI Grid */
.kpi-fame-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.kpi-card {
    background: rgba(13, 20, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.kpi-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.kpi-value.cyan { color: #38bdf8; }
.kpi-value.gold { color: var(--gold-primary); }
.kpi-value.red { color: #f87171; }
.kpi-value.green { color: #34d399; }

/* Breakdown Cards */
.breakdown-card {
    background: rgba(13, 20, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.breakdown-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.breakdown-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.substat-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.substat-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #64748b;
    text-transform: uppercase;
}

.substat-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

.substat-num.highlight-amber {
    color: #fbbf24;
}

/* Recent Events */
.recent-events-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.events-column {
    background: rgba(13, 20, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.events-column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.events-empty-box {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
}

.event-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.event-mini-card.kill {
    border-left: 3px solid #34d399;
}

.event-mini-card.death {
    border-left: 3px solid #f87171;
}

.event-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-fame-tag {
    font-size: 0.74rem;
    font-weight: 700;
}

.event-fame-tag.kill { color: #34d399; }
.event-fame-tag.death { color: #f87171; }

.event-time-tag {
    font-size: 0.7rem;
    color: #64748b;
}

.event-combatant-row {
    display: flex;
    align-items: center;
}

.combatant-info {
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.combatant-prefix {
    color: #64748b;
}

.combatant-target-name {
    color: #f8fafc;
    font-weight: 700;
}

.combatant-target-guild {
    color: var(--gold-primary);
}

.combatant-target-ip {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.72rem;
}

.event-gear-strip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}

.gear-micro-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

@media (max-width: 768px) {
    .players-title {
        font-size: 1.8rem;
    }
    .players-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .kpi-fame-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recent-events-container {
        grid-template-columns: 1fr;
    }
    .player-profile-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .player-profile-actions {
        width: 100%;
        justify-content: flex-start;
    }
}




/* Build detail modal: 3 columns on wide screens, stacks on smaller ones */
.build-detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .build-detail-grid {
        grid-template-columns: 310px minmax(0, 1fr);
    }
    .build-detail-grid > :nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .build-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.modal-detail-columns {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2rem;
}

@media (max-width: 720px) {
    .modal-detail-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }
}
