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

/* Structure globale de la page */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 50px !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #120c08;
    font-family: 'Spectral', 'Georgia', serif; 
    font-weight: 400; 
    font-size: 14px; 
    color: #2c1d11;
}

/* En-tête principal externe fixé en haut sur toute la largeur */
.hub-nav-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 50px !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    background-color: #1a120b !important;
    border-bottom: 2px solid #b8860b !important;
    padding: 0 15px !important;
    color: #f4ebd0 !important;
}

/* Conteneur principal sous le header */
.main-layout-container, #map-main-layout {
    position: absolute !important;
    top: 50px !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
    overflow: hidden !important;
}

/* Panneau de gauche */
#sidebar-gauche, .left-sidebar, .sidebar-left {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    background: #ead5b5 !important;
    border-right: 2px solid #b8860b !important;
}

/* Conteneur central de la carte */
#map-container {
    flex-grow: 1 !important;
    height: 100% !important;
    position: relative !important;
    background: #e3d2b2 !important;
}

#map {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Panneau de droite */
#sidebar-droite, .right-sidebar, .sidebar-right {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    background: #ead5b5 !important;
    border-left: 2px solid #b8860b !important;
}

#sidebar, #sidebar-toggle, #right-panel, #right-panel-toggle { 
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

a { color: #8c2323; text-decoration: none; font-weight: 600; }
a:hover { color: #b82e2e; text-decoration: underline; }

.absolute { position:absolute; top:0; left:0; }
.transition { transition:all 200ms cubic-bezier(0.25, 0.8, 0.25, 1); }
.flex { display:flex; align-items:center; }

.z-page { z-index:0; }
.z-gui { z-index:100; }
.z-overlay { z-index:200; }

h1 { font-family:'Cinzel', 'MedievalSharp', serif; font-size:18px; font-weight:900; color:#5a1212; letter-spacing:0.5px; text-shadow:0 1px 0 rgba(255,255,255,0.6); }
.brand-title { display:flex; align-items:center; gap:8px; margin-bottom:12px; border-bottom:2px solid #3d2314; padding-bottom:8px; }
.royal-crest { font-size:18px; filter:drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.version-badge { font-family:'Cinzel', serif; font-size:10px; font-weight:700; background:#3d2314; color:#f8e8a6; padding:2px 6px; border-radius:4px; border:1px solid #d4af37; }
.section-title { font-family:'Cinzel', 'MedievalSharp', serif; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#6b1d1d; margin-bottom:8px; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.section-count-badge { font-family:'Cinzel', serif; font-size:10px; font-weight:700; background:#6b1d1d; color:#f8e8a6; padding:1px 6px; border-radius:8px; border:1px solid #d4af37; margin-left:auto; }
.item-count-tag { font-family:'Cinzel', serif; font-size:10px; font-weight:700; color:#5a1212; background:#e2d5bd; border:1px solid #c4b08f; padding:1px 6px; border-radius:8px; margin-left:auto; }

.world-tabs-container { margin-bottom:14px; }
.field-label { display:block; font-family:'Cinzel', serif; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.8px; color:#5c3818; margin-bottom:8px; padding:0; }
.world-tabs { display:flex; flex-direction:column; gap:8px; background:#e2d5bd; padding:8px; border-radius:6px; border:2px solid #8c6239; box-shadow:inset 0 2px 4px rgba(0,0,0,0.12); }

.world-tab-btn { display:flex; flex-direction:column; gap:4px; padding:10px 12px; font-size:12px; text-align:left; color:#3d2314; background:#fdf9f0; border:1px solid #c4b08f; border-radius:4px; cursor:pointer; transition:all 200ms ease; font-family:'Spectral', serif; box-shadow:0 1px 3px rgba(0,0,0,0.08); position:relative; }
.world-tab-btn:hover { border-color:#8c2323; background:#fffbf5; transform:translateY(-1px); box-shadow:0 3px 8px rgba(140,35,35,0.2); }
.world-tab-btn.active { background:linear-gradient(180deg, #6b1d1d 0%, #4a1010 100%); border-color:#d4af37; border-left:5px solid #d4af37; color:#fdf6e3; box-shadow:0 3px 10px rgba(0,0,0,0.3); }

.tab-header-line { display:flex; align-items:center; justify-content:space-between; gap:6px; width:100%; }
.world-name { font-family:'Cinzel', serif; font-size:12.5px; font-weight:700; color:#3d2314; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.world-tab-btn.active .world-name { color:#fdf6e3; text-shadow:0 1px 2px rgba(0,0,0,0.6); }

.status-indicator { width:10px; height:10px; border-radius:50%; display:inline-block; flex-shrink:0; transition:all 300ms ease; }
.status-indicator.online { background:#2e7d32; border:1px solid #1b5e20; box-shadow:0 0 0 2px rgba(46,125,50,0.3); animation:pulse-status-online 2s infinite; }
.status-indicator.offline { background:#e53935; border:1px solid #b71c1c; box-shadow:0 0 0 3px rgba(229,57,53,0.5); animation:pulse-status-offline 1.2s infinite; }

@keyframes pulse-status-online {
	0% { transform:scale(0.95); box-shadow:0 0 0 0 rgba(46, 125, 50, 0.7); }
	70% { transform:scale(1.1); box-shadow:0 0 0 5px rgba(46, 125, 50, 0); }
	100% { transform:scale(0.95); box-shadow:0 0 0 0 rgba(46, 125, 50, 0); }
}

@keyframes pulse-status-offline {
	0% { transform:scale(0.95); box-shadow:0 0 0 0 rgba(229, 57, 53, 0.8); }
	70% { transform:scale(1.2); box-shadow:0 0 0 7px rgba(229, 57, 53, 0); }
	100% { transform:scale(0.95); box-shadow:0 0 0 0 rgba(229, 57, 53, 0); }
}

.status-badge { display:inline-flex; align-items:center; font-family:'Cinzel', serif; font-size:9px; font-weight:700; padding:1px 5px; border-radius:3px; text-transform:uppercase; letter-spacing:0.5px; white-space:nowrap; flex-shrink:0; }
.status-badge.online { color:#1b5e20; background:#e8f5e9; border:1px solid #a5d6a7; }
.world-tab-btn.active .status-badge.online { background:#1b5e20; color:#f1f8e9; border-color:#81c784; }

.status-badge.offline { color:#b71c1c; background:#ffebee; border:1px solid #ef9a9a; animation:pulse-text-offline 1.8s infinite; }
.world-tab-btn.active .status-badge.offline { background:#c62828; color:#ffffff; border-color:#ef5350; }

@keyframes pulse-text-offline {
	0% { opacity:1; }
	50% { opacity:0.65; }
	100% { opacity:1; }
}

.tab-player-badge { display:inline-flex; align-items:center; gap:3px; font-weight:700; color:#1b5e20; background:#e8f5e9; border:1px solid #a5d6a7; padding:2px 6px; border-radius:4px; font-size:10px; font-family:'Cinzel', serif; flex-shrink:0; white-space:nowrap; }
.world-tab-btn.active .tab-player-badge { background:#1b5e20; color:#f1f8e9; border-color:#81c784; }
.player-icon { font-size:10px; }

.tab-details-grid { display:flex; align-items:center; justify-content:space-between; gap:6px; width:100%; flex-wrap:wrap; margin-top:2px; }
.server-ip-tag { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-family:'Consolas', 'Monaco', 'Courier New', monospace; font-weight:700; color:#2c1d11; background:#e6d8be; border:1px solid #9c8360; padding:2px 6px; border-radius:4px; letter-spacing:0.2px; box-shadow:0 1px 2px rgba(0,0,0,0.06); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ip-icon { font-size:10px; opacity:0.85; flex-shrink:0; }
.ip-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.world-tab-btn.active .server-ip-tag { color:#ffffff; background:#21140c; border-color:#ffd700; box-shadow:0 1px 4px rgba(0,0,0,0.4); text-shadow:0 1px 1px rgba(0,0,0,0.8); }

.world-tz-tag { display:inline-flex; align-items:center; gap:3px; font-size:10px; font-family:'Spectral', serif; font-weight:600; color:#4a3018; background:#ebdcc3; border:1px solid #b8860b; padding:2px 6px; border-radius:4px; white-space:nowrap; }
.tz-icon { font-size:10px; opacity:0.9; }
.world-tab-btn.active .world-tz-tag { color:#fdf6e3; background:#3d2314; border-color:#d4af37; }

.world-uptime-tag { display:inline-flex; align-items:center; gap:3px; font-size:10px; font-family:'Spectral', serif; font-weight:700; color:#1b5e20; background:#e8f5e9; border:1px solid #a5d6a7; padding:2px 6px; border-radius:4px; white-space:nowrap; }
.uptime-icon { font-size:10px; opacity:0.9; }
.world-tab-btn.active .world-uptime-tag { color:#f1f8e9; background:#1b5e20; border-color:#81c784; }

.radar-status { display:flex; align-items:center; gap:8px; font-size:12px; font-family:'Cinzel', serif; font-weight:600; color:#3d2314; background:#e8dcbe; padding:8px 12px; border-radius:4px; border:1px solid #c4b08f; box-shadow:inset 0 1px 2px rgba(0,0,0,0.06); }
.radar-dot { width:9px; height:9px; border-radius:50%; background:#2e7d32; display:inline-block; animation:pulse-dot 1.5s infinite; border:1px solid #1b5e20; }
.update-time { font-size:10px; color:#7a6048; font-family:'Spectral', serif; font-style:italic; }
@keyframes pulse-dot {
	0% { transform:scale(0.95); box-shadow:0 0 0 0 rgba(46, 125, 50, 0.7); }
	70% { transform:scale(1); box-shadow:0 0 0 6px rgba(46, 125, 50, 0); }
	100% { transform:scale(0.95); box-shadow:0 0 0 0 rgba(46, 125, 50, 0); }
}

#sidebar { height:100%; width:380px; left:-380px; background:#f4ecd8; overflow-y:auto; box-shadow:3px 0 12px rgba(0,0,0,0.3); border-right:3px solid #3d2314; }
#sidebar-toggle { left:0; top:12px; width:44px; height:46px; line-height:44px; background:#3d2314; border:2px solid #d4af37; border-left:none; border-radius:0 6px 6px 0; box-shadow:2px 2px 10px rgba(0,0,0,0.3); font-size:22px; text-align:center; cursor:pointer; color:#f8e8a6; }
#sidebar-toggle:hover { background:#5a331c; color:#ffffff; }

#gui.sidebar #sidebar { left:0; }
#gui.sidebar #sidebar-toggle { left:380px; }

#sidebar .block { display:none; border-bottom:1px solid #d8c8a8; padding:12px 16px; overflow-y:auto; max-height:80vh; }
#sidebar .block.padding { padding:16px; }
#sidebar.loaded .block { display:block; }

#sidebar label { display:flex; align-items:center; padding:6px 0; cursor:pointer; font-size:13px; font-weight:600; color:#3d2314; }
#sidebar label:hover { color:#6b1d1d; }
#sidebar input[type="checkbox"] { -webkit-appearance:none; appearance:none; display:inline-block; width:17px; height:17px; margin-right:8px; border-radius:3px; border:2px solid #8c6239; background:#fffbf5; outline:none; vertical-align:middle; cursor:pointer; position:relative; box-shadow:inset 0 1px 2px rgba(0,0,0,0.1); }
#sidebar input[type="checkbox"]:checked { border-color:#6b1d1d; background:linear-gradient(180deg, #8c2323 0%, #5a1212 100%); }
#sidebar input[type="checkbox"]:checked::after { content:'✓'; display:block; color:#f8e8a6; font-size:12px; text-align:center; line-height:13px; font-weight:bold; }

#sidebar label.inactive { opacity:0.45; pointer-events:none; }

.coords-input-group { display:flex; gap:6px; margin-top:6px; }
.coord-input { width:70px; height:34px; border:1px solid #8c6239; border-radius:4px; padding:0 8px; font-size:13px; outline:none; font-family:'Spectral', serif; background:#fdf9f0; color:#2c1d11; }
.coord-input:focus { border-color:#6b1d1d; box-shadow:0 0 0 2px rgba(107,29,29,0.2); }
.btn-go { flex:1; height:34px; background:linear-gradient(180deg, #5c3818 0%, #3d2314 100%); color:#f8e8a6; border:1px solid #d4af37; border-radius:4px; font-family:'Cinzel', serif; font-weight:700; font-size:12px; cursor:pointer; text-transform:uppercase; }
.btn-go:hover { background:linear-gradient(180deg, #784a22 0%, #4f2d1a 100%); color:#ffffff; }

.btn-tool { width:100%; height:34px; background:linear-gradient(180deg, #e2d5bd 0%, #cfc0a2 100%); border:1px solid #8c6239; border-radius:4px; font-size:12px; font-family:'Cinzel', serif; font-weight:700; color:#3d2314; cursor:pointer; margin-top:4px; }
.btn-tool:hover { background:#d8c8a8; }
.btn-tool.active { background:linear-gradient(180deg, #8c2323 0%, #5a1212 100%); color:#f8e8a6; border-color:#d4af37; }
.measure-result { margin-top:8px; font-size:12px; font-family:'Spectral', serif; color:#5a1212; background:#f5e2e2; padding:6px 10px; border-radius:4px; border:1px solid #dca6a6; font-weight:600; }

.search-block { background:#f9f4e8; }
.sidebar-search-box { position:relative; width:100%; margin-top:4px; }
.search-input-wrapper { position:relative; display:flex; align-items:center; }
.sidebar-search-box input { display:block; width:100%; height:42px; line-height:42px; padding:0 34px 0 12px; background:#fdf9f0; border:2px solid #3d2314; border-radius:6px; box-shadow:inset 0 1px 3px rgba(0,0,0,0.12); font-family:'Spectral', serif; font-size:13px; font-weight:600; outline:none; color:#2c1d11; }
.sidebar-search-box input:focus { border-color:#6b1d1d; box-shadow:0 0 0 2px rgba(107, 29, 29, 0.25); }
.sidebar-search-box.open input { border-radius:6px 6px 0 0; border-bottom:1px solid #d8c8a8; }
.clear-search-btn { position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:13px; color:#8c6239; cursor:pointer; font-weight:bold; padding:2px 6px; }
.clear-search-btn:hover { color:#6b1d1d; }

#search-results { display:none; }
.sidebar-search-box.open #search-results { display:block; background:#fdf9f0; border:2px solid #3d2314; border-top:none; border-radius:0 0 6px 6px; box-shadow:0 4px 12px rgba(0,0,0,0.25); max-height:280px; overflow-y:auto; }

#search-results div { display:block; padding:8px 12px 8px 38px; cursor:pointer; color:#3d2314; border-top:1px solid #e8dcbe; background:8px 10px no-repeat; background-size:20px; font-family:'Spectral', serif; font-size:12px; transition:background-color 0.15s ease; }
#search-results div.village { background-image:url('../markers/v2-search-village.png'); }
#search-results div.guardtower { background-image:url('../markers/v2-search-guardtower.png'); }
#search-results div.player { background-image:url('../markers/v2-search-player.png'); }
#search-results div.structure { background-image:url('../markers/v2-search-structure.png'); }

#search-results div:hover { background-color:#f4ecd8; color:#5a1212; }
#search-results div p { margin:0; line-height:1.3; }
#search-results div p strong { font-family:'Cinzel', serif; font-weight:700; color:#5a1212; }
#search-results div p.small { font-size:11px; color:#7a6048; margin-top:2px; }

.custom-pin-marker { position:relative; }
.pin-pulse { width:20px; height:20px; border-radius:50%; background:#8c2323; border:3px solid #f8e8a6; box-shadow:0 0 10px rgba(0,0,0,0.5); animation:pin-bounce 1s infinite alternate; }
@keyframes pin-bounce {
	0% { transform:scale(0.8); }
	100% { transform:scale(1.25); }
}

#right-panel { height:100%; width:290px; right:-290px; left:auto; background:#f4ecd8; box-shadow:-3px 0 12px rgba(0,0,0,0.3); border-left:3px solid #3d2314; display:flex; flex-direction:column; overflow-y:auto; overflow-x:hidden; }
#right-panel.open { right:0; }

#right-panel-toggle { right:0; left:auto; top:12px; width:48px; height:46px; line-height:44px; background:#3d2314; border:2px solid #d4af37; border-right:none; border-radius:6px 0 0 6px; box-shadow:-2px 2px 10px rgba(0,0,0,0.3); font-size:18px; text-align:center; cursor:pointer; color:#f8e8a6; display:flex; align-items:center; justify-content:center; gap:3px; padding:0 4px; }
#right-panel-toggle:hover { background:#5a331c; color:#ffffff; }
#right-panel-toggle.open { right:290px; }

.panel-count-badge { font-family:'Cinzel', serif; font-size:10px; font-weight:700; background:#6b1d1d; color:#f8e8a6; padding:1px 6px; border-radius:8px; border:1px solid #d4af37; }

.right-panel-header { padding:14px 16px; border-bottom:2px solid #3d2314; background:#e8dcbe; }
.panel-title-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.panel-title-row h3 { font-family:'Cinzel', 'MedievalSharp', serif; font-size:15px; font-weight:900; color:#5a1212; margin:0; }
.village-count-chip { font-family:'Cinzel', serif; font-size:11px; font-weight:700; color:#5a1212; background:#fdf9f0; border:1px solid #8c6239; padding:2px 8px; border-radius:12px; }

.panel-search-box { position:relative; width:100%; }
.panel-search-box input { width:100%; height:34px; padding:0 28px 0 10px; font-size:12px; font-family:'Spectral', serif; font-weight:600; border:1px solid #8c6239; border-radius:4px; outline:none; background:#fdf9f0; color:#2c1d11; }
.panel-search-box input:focus { border-color:#6b1d1d; box-shadow:0 0 0 2px rgba(107, 29, 29, 0.2); }
.panel-search-box .clear-btn { position:absolute; right:8px; top:8px; font-size:12px; color:#7a6048; cursor:pointer; }
.panel-search-box .clear-btn:hover { color:#3d2314; }

.villages-scroll-list { padding:12px; display:flex; flex-direction:column; gap:10px; overflow:visible; }
.no-villages-found { text-align:center; padding:30px 10px; color:#7a6048; font-family:'Cinzel', serif; font-size:13px; }

.village-card { background:#fdf9f0; border:1px solid #c4b08f; border-radius:6px; padding:10px 12px; cursor:pointer; box-shadow:0 2px 4px rgba(0,0,0,0.06); }
.village-card:hover { border-color:#6b1d1d; background:#fffbf5; transform:translateY(-1px); box-shadow:0 4px 12px rgba(107, 29, 29, 0.18); }
.village-card-top { display:flex; align-items:center; gap:6px; margin-bottom:4px; }
.village-badge { font-size:14px; }
.village-card-name { font-family:'Cinzel', serif; font-size:13px; font-weight:700; color:#3d2314; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.village-card:hover .village-card-name { color:#6b1d1d; }
.permanent-tag { color:#d4af37; font-size:14px; text-shadow:0 1px 2px rgba(0,0,0,0.3); }

.village-card-details { font-size:11px; color:#5c4838; margin-bottom:6px; display:flex; flex-direction:column; gap:2px; }
.village-mayor-line .label { color:#7a6048; }
.village-mayor-line strong { color:#3d2314; }
.village-motto-line { color:#6b533e; font-size:11px; font-style:italic; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.village-card-meta { display:flex; align-items:center; justify-content:space-between; font-size:11px; color:#7a6048; border-top:1px dashed #d8c8a8; padding-top:6px; margin-top:4px; }
.meta-coords { font-family:monospace; color:#6b1d1d; font-weight:700; }
.meta-citizens { color:#1b5e20; font-weight:700; font-family:'Cinzel', serif; font-size:10px; }

.world-mapgen-tag { display:inline-flex; align-items:center; gap:3px; font-weight:700; color:#5c3818; background:#f4ecd8; border:1px solid #c4b08f; padding:2px 6px; border-radius:4px; font-size:10px; font-family:'Cinzel', serif; flex-shrink:0; white-space:nowrap; }
.world-tab-btn.active .world-mapgen-tag { background:#3d2314; color:#f8e8a6; border-color:#8c6239; }

.mapgen-card { background:#e8dcbe; border:1px solid #c4b08f; border-radius:6px; padding:10px; display:flex; flex-direction:column; gap:8px; box-shadow:inset 0 1px 3px rgba(0,0,0,0.06); }
.mapgen-grid-2col { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.mapgen-box { background:#fdf9f0; border:1px solid #c4b08f; border-radius:5px; padding:6px 6px; display:flex; flex-direction:column; gap:3px; text-align:center; }
.mapgen-box.highlight-box { background:#e8f5e9; border-color:#a5d6a7; }
.mapgen-label { font-family:'Cinzel', serif; font-size:10px; font-weight:700; color:#5a1212; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mapgen-box.highlight-box .mapgen-label { color:#1b5e20; }
.mapgen-val { font-family:'Spectral', serif; font-weight:700; color:#2c1d11; font-size:11px; }
.mapgen-val.highlight { color:#1b5e20; font-weight:800; }

.mapgen-row-item { background:#fdf9f0; border:1px solid #8c6239; border-radius:5px; padding:6px 6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; text-align:center; }
.mapgen-row-item.highlight-item { border-color:#3d2314; }
.mapgen-sublabel { font-family:'Cinzel', serif; font-size:10px; font-weight:700; color:#5c3818; }
.mapgen-subval { font-family:'Spectral', serif; font-size:11px; font-weight:700; color:#2c1d11; }
.mapgen-subval.countdown { font-family:monospace; font-size:11.5px; font-weight:800; color:#1b5e20; letter-spacing:0.5px; }
.mapgen-subval.countdown.is-generating { color:#d97706 !important; font-size:11px; font-weight:800; animation: pulseGen 2s infinite ease-in-out; }
.mapgen-row-item.highlight-item.generating-active { border-color:#d97706; background:#fffbeb; }
@keyframes pulseGen { 0% { opacity: 1; } 50% { opacity: 0.55; } 100% { opacity: 1; } }

.lang-switch-btn { margin-left:auto; background:#3d2314; color:#f8e8a6; border:1px solid #d4af37; padding:3px 8px; border-radius:4px; font-family:'Cinzel', serif; font-size:11px; font-weight:700; cursor:pointer; }
.lang-switch-btn:hover { background:#5a331c; color:#ffffff; }

.discord-card { background:#e2d5bd; border:1px solid #c4b08f; border-radius:6px; padding:10px; display:flex; flex-direction:column; gap:8px; box-shadow:inset 0 1px 3px rgba(0,0,0,0.06); }
.discord-info { display:flex; align-items:flex-start; gap:8px; }
.discord-badge-icon { font-size:20px; line-height:1; }
.discord-text { flex:1; font-size:11px; color:#3d2314; }
.discord-text strong { font-family:'Cinzel', serif; font-weight:700; color:#5a1212; display:block; margin-bottom:2px; }
.discord-text p { color:#5c4838; line-height:1.3; font-size:11px; }
.btn-discord { display:flex; align-items:center; justify-content:center; gap:6px; background:linear-gradient(180deg, #5865F2 0%, #404EED 100%); color:#ffffff; font-family:'Cinzel', serif; font-weight:700; font-size:11px; padding:8px 12px; border-radius:4px; text-decoration:none; border:1px solid #3131a0; text-shadow:0 1px 2px rgba(0,0,0,0.3); }
.btn-discord:hover { background:linear-gradient(180deg, #6975FF 0%, #4752e6 100%); color:#ffffff; text-decoration:none; transform:translateY(-1px); box-shadow:0 3px 8px rgba(88,101,242,0.3); }
.ext-icon { font-size:12px; font-weight:bold; }

.future-block { background:#f9f5eb; }
.future-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:5px; font-size:11px; font-family:'Spectral', serif; color:#5c4838; }
.future-list li { background:#f4ecd8; border:1px solid #e0d0b0; padding:5px 8px; border-radius:4px; font-weight:600; }

body.dark-theme { background:#0f0d0a; color:#e0d0c0; }
body.dark-theme #sidebar { background:#1b1713; color:#e0d0c0; border-right-color:#5c3818; box-shadow:3px 0 15px rgba(0,0,0,0.6); }
body.dark-theme #sidebar-toggle { background:#2c2118; border-color:#8c6239; color:#d4af37; }
body.dark-theme #sidebar-toggle:hover { background:#423224; color:#ffffff; }
body.dark-theme #sidebar .block { border-bottom-color:#2f271f; }
body.dark-theme h1 { color:#d4af37; text-shadow:0 1px 3px rgba(0,0,0,0.8); }
body.dark-theme .section-title { color:#d4af37; }
body.dark-theme #sidebar label { color:#d8c8b8; }
body.dark-theme #sidebar label:hover { color:#f8e8a6; }
body.dark-theme .world-tabs { background:#13100d; border-color:#5c3818; }
body.dark-theme .world-tab-btn { background:#251f18; border-color:#3e3226; color:#d8c8b8; }
body.dark-theme .world-tab-btn:hover { background:#322a21; border-color:#d4af37; }
body.dark-theme .world-tab-btn.active { background:linear-gradient(180deg, #5a1212 0%, #3a0b0b 100%); border-color:#d4af37; border-left-color:#d4af37; color:#f8e8a6; }
body.dark-theme .world-name { color:#e8d8c8; }
body.dark-theme .world-tab-btn.active .world-name { color:#f8e8a6; }
body.dark-theme .tab-player-badge { background:#123315; color:#a5d6a7; border-color:#2e7d32; }
body.dark-theme .world-tab-btn.active .tab-player-badge { background:#1b5e20; color:#f1f8e9; border-color:#81c784; }
body.dark-theme .status-badge.online { background:#123315; color:#a5d6a7; border-color:#2e7d32; }
body.dark-theme .world-tab-btn.active .status-badge.online { background:#1b5e20; color:#f1f8e9; border-color:#81c784; }
body.dark-theme .status-badge.offline { background:#3a1212; color:#ef9a9a; border-color:#b71c1c; }
body.dark-theme .world-tab-btn.active .status-badge.offline { background:#c62828; color:#ffffff; border-color:#ef5350; }
body.dark-theme .server-ip-tag { background:#1b1713; color:#f8e8a6; border-color:#8c6239; }
body.dark-theme .world-tab-btn.active .server-ip-tag { background:#0a0806; color:#ffd700; border-color:#d4af37; }
body.dark-theme .world-tz-tag { background:#1b1713; color:#d8c8b8; border-color:#5c3818; }
body.dark-theme .world-tab-btn.active .world-tz-tag { background:#0a0806; color:#f8e8a6; border-color:#d4af37; }
body.dark-theme .world-uptime-tag { background:#123315; color:#a5d6a7; border-color:#2e7d32; }
body.dark-theme .world-tab-btn.active .world-uptime-tag { background:#1b5e20; color:#f1f8e9; border-color:#81c784; }
body.dark-theme .world-mapgen-tag { background:#1b1713; color:#f8e8a6; border-color:#5c3818; }
body.dark-theme .world-tab-btn.active .world-mapgen-tag { background:#0a0806; color:#ffd700; border-color:#d4af37; }
body.dark-theme .mapgen-card { background:#1b1713; border-color:#5c3818; }
body.dark-theme .mapgen-box { background:#13100d; border-color:#3e3226; }
body.dark-theme .mapgen-box.highlight-box { background:#123315; border-color:#2e7d32; }
body.dark-theme .mapgen-label { color:#d4af37; }
body.dark-theme .mapgen-box.highlight-box .mapgen-label { color:#a5d6a7; }
body.dark-theme .mapgen-val { color:#e0d0c0; }
body.dark-theme .mapgen-val.highlight { color:#a5d6a7; }

body.dark-theme .mapgen-row-item { background:#13100d; border-color:#5c3818; }
body.dark-theme .mapgen-row-item.highlight-item { border-color:#8c6239; }
body.dark-theme .mapgen-sublabel { color:#f8e8a6; }
body.dark-theme .mapgen-subval { color:#e0d0c0; }
body.dark-theme .mapgen-subval.countdown { color:#81c784; }
body.dark-theme .radar-status { background:#251f18; border-color:#3e3226; color:#d8c8b8; }
body.dark-theme #search input { background:#251f18; color:#f0e4d4; border-color:#5c3818; box-shadow:0 3px 12px rgba(0,0,0,0.6); }
body.dark-theme #search-results { background:#251f18; border-color:#5c3818; }
body.dark-theme #search-results div { border-top-color:#322a21; color:#e0d0c0; }
body.dark-theme #search-results div:hover { background-color:#322a21; }
body.dark-theme #search-results div p strong { color:#d4af37; }
body.dark-theme .coord-input { background:#251f18; color:#f0e4d4; border-color:#5c3818; }
body.dark-theme .btn-tool { background:linear-gradient(180deg, #2c2118 0%, #1c150e 100%); color:#d8c8b8; border-color:#5c3818; }
body.dark-theme .btn-tool:hover { background:#382b1f; color:#ffffff; }

body.dark-theme #right-panel { background:#1b1713; border-left-color:#5c3818; box-shadow:-3px 0 15px rgba(0,0,0,0.6); }
body.dark-theme #right-panel-toggle { background:#2c2118; border-color:#8c6239; color:#d4af37; }
body.dark-theme .right-panel-header { background:#251f18; border-bottom-color:#5c3818; }
body.dark-theme .panel-title-row h3 { color:#d4af37; }
body.dark-theme .village-count-chip { background:#13100d; color:#d4af37; border-color:#5c3818; }
body.dark-theme .panel-search-box input { background:#1b1713; color:#f0e4d4; border-color:#5c3818; }
body.dark-theme .village-card { background:#251f18; border-color:#3e3226; }
body.dark-theme .village-card:hover { background:#322a21; border-color:#d4af37; box-shadow:0 4px 14px rgba(0,0,0,0.6); }
body.dark-theme .village-card-name { color:#e8d8c8; }
body.dark-theme .village-card:hover .village-card-name { color:#f8e8a6; }
body.dark-theme .village-card-details { color:#a89480; }
body.dark-theme .village-mayor-line strong { color:#e0d0c0; }
body.dark-theme .village-card-meta { border-top-color:#3e3226; color:#a89480; }
body.dark-theme .meta-coords { color:#d4af37; }
body.dark-theme .meta-citizens { color:#81c784; }

body.dark-theme .lang-switch-btn { background:#2c2118; color:#d4af37; border-color:#8c6239; }
body.dark-theme .lang-switch-btn:hover { background:#423224; color:#ffffff; }
body.dark-theme .discord-card { background:#251f18; border-color:#3e3226; }
body.dark-theme .discord-text { color:#e0d0c0; }
body.dark-theme .discord-text strong { color:#d4af37; }
body.dark-theme .discord-text p { color:#a89480; }
body.dark-theme .future-block { background:#1b1713; }
body.dark-theme .future-list { color:#a89480; }
body.dark-theme .future-list li { background:#251f18; border-color:#3e3226; color:#e0d0c0; }
body.dark-theme .section-count-badge { background:#5a1212; color:#f8e8a6; border-color:#d4af37; }
body.dark-theme .item-count-tag { background:#251f18; color:#d4af37; border-color:#5c3818; }

.leaflet-popup-content-wrapper {
	background: #fdf9f0;
	color: #2c1d11;
	border: 2px solid #3d2314;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.35);
	padding: 4px;
	font-family: 'Spectral', 'Georgia', serif;
}

.leaflet-popup-tip {
	background: #3d2314;
}

.leaflet-popup-content {
	margin: 10px 14px;
	font-size: 13px;
	line-height: 1.5;
	max-height: 380px;
	overflow-y: auto;
	overflow-x: hidden;
}

.leaflet-popup-content h4 {
	font-family: 'Cinzel', 'MedievalSharp', serif;
	font-size: 15px;
	font-weight: 900;
	color: #5a1212;
	margin: 0 0 4px 0;
	text-align: center;
	border-bottom: 1px dashed #d8c8a8;
	padding-bottom: 5px;
}

.leaflet-popup-content .permanent-tag {
	color: #d4af37;
	font-size: 14px;
}

.leaflet-popup-content .popup-motto {
	font-style: italic;
	color: #6b533e;
	text-align: center;
	font-size: 11px;
	margin-bottom: 8px;
	display: block;
}

.leaflet-popup-content .popup-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 12px;
	color: #3d2314;
}

.leaflet-popup-content .popup-row strong {
	color: #5a1212;
	font-family: 'Cinzel', serif;
}

.leaflet-container a.leaflet-popup-close-button {
	color: #5a1212;
	padding: 6px 6px 0 0;
	font-size: 16px;
	font-weight: bold;
}
.leaflet-container a.leaflet-popup-close-button:hover {
	color: #8c2323;
}

body.dark-theme .leaflet-popup-content-wrapper {
	background: #251f18;
	color: #e0d0c0;
	border-color: #d4af37;
	box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

body.dark-theme .leaflet-popup-tip {
	background: #d4af37;
}

body.dark-theme .leaflet-popup-content h4 {
	color: #d4af37;
	border-bottom-color: #3e3226;
}

body.dark-theme .leaflet-popup-content .popup-motto {
	color: #a89480;
}

body.dark-theme .leaflet-popup-content .popup-row {
	color: #d8c8b8;
}

body.dark-theme .leaflet-popup-content .popup-row strong {
	color: #d4af37;
}

body.dark-theme .leaflet-container a.leaflet-popup-close-button {
	color: #d4af37;
}
body.dark-theme .leaflet-container a.leaflet-popup-close-button:hover {
	color: #f8e8a6;
}

img {
	image-rendering: optimizeSpeed;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: pixelated;
	image-rendering: optimize-contrast;
	-ms-interpolation-mode: nearest-neighbor;
}

.panel-nav-tabs {
	display: flex;
	background: #3d2314;
	border-bottom: 2px solid #d4af37;
	padding: 4px 6px;
	gap: 4px;
	flex-shrink: 0;
}
.panel-tab-btn {
	flex: 1;
	padding: 8px 3px;
	background: #2b180d;
	border: 1px solid #5c3818;
	border-radius: 4px 4px 0 0;
	color: #c4b08f;
	font-family: 'Cinzel', serif;
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 150ms ease;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.panel-tab-btn:hover {
	background: #4a2d1a;
	color: #f8e8a6;
}
.panel-tab-btn.active {
	background: linear-gradient(180deg, #6b1d1d 0%, #4a1010 100%);
	color: #fdf6e3;
	border-color: #d4af37;
	border-bottom-color: #6b1d1d;
	box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
}

.panel-content-tab {
	display: flex;
	flex-direction: column;
	border-bottom: 2px solid #3d2314;
	overflow: visible;
}

.panel-content-tab:last-child {
	border-bottom: none;
}

.leaderboard-container {
	padding: 10px;
	overflow: visible;
}

.ecosystem-container {
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: visible;
}

.deed-size-badge {
	font-family: 'Cinzel', serif;
	font-size: 10px;
	font-weight: 700;
	background: #e2d5bd;
	color: #5a1212;
	padding: 1px 6px;
	border-radius: 4px;
	border: 1px solid #c4b08f;
	margin-left: auto;
}

.skill-subtabs {
	display: flex;
	gap: 4px;
	margin-top: 6px;
}
.skill-tab-btn {
	flex: 1;
	padding: 5px 2px;
	background: #e2d5bd;
	border: 1px solid #8c6239;
	border-radius: 4px;
	color: #3d2314;
	font-family: 'Cinzel', serif;
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 150ms ease;
	text-align: center;
}
.skill-tab-btn:hover {
	background: #ebdcc3;
	color: #6b1d1d;
}
.skill-tab-btn.active {
	background: #6b1d1d;
	color: #f8e8a6;
	border-color: #d4af37;
}

.leaderboard-table {
	width: 100%;
	border-collapse: collapse;
	background: #fdf9f0;
	border: 1px solid #c4b08f;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.leaderboard-table th {
	background: #e2d5bd;
	color: #5a1212;
	font-family: 'Cinzel', serif;
	font-size: 11px;
	font-weight: 700;
	padding: 8px 10px;
	text-align: left;
	border-bottom: 2px solid #8c6239;
}
.leaderboard-row {
	border-bottom: 1px solid #e8dcbe;
	transition: background 150ms ease;
}
.leaderboard-row:hover {
	background: #f5ede0;
}
.leaderboard-row td {
	padding: 8px 10px;
	vertical-align: middle;
}
.rank-td {
	width: 36px;
	text-align: center;
}
.rank-badge {
	font-family: 'Cinzel', serif;
	font-weight: 800;
	font-size: 12px;
}
.player-td {
	display: flex;
	flex-direction: column;
}
.player-name {
	font-family: 'Cinzel', serif;
	font-size: 12px;
	color: #3d2314;
}
.player-title {
	font-size: 10px;
	color: #7a6048;
	font-style: italic;
}
.level-td {
	text-align: right;
}
.level-badge {
	font-family: monospace;
	font-weight: 800;
	font-size: 12px;
	color: #1b5e20;
	background: #e8f5e9;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #a5d6a7;
}

.ecosystem-grid {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.creature-cat-card {
	background: #fdf9f0;
	border: 1px solid #c4b08f;
	border-radius: 6px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cat-card-top {
	display: flex;
	align-items: center;
	gap: 8px;
}
.cat-icon {
	font-size: 16px;
}
.cat-title {
	font-family: 'Cinzel', serif;
	font-size: 12px;
	color: #3d2314;
	flex: 1;
}
.cat-count-badge {
	font-family: monospace;
	font-weight: 800;
	font-size: 11px;
	background: #e2d5bd;
	color: #5a1212;
	padding: 1px 7px;
	border-radius: 10px;
	border: 1px solid #c4b08f;
}
.danger-badge {
	font-family: 'Cinzel', serif;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 1px 6px;
	border-radius: 3px;
	display: inline-block;
}
.danger-badge.danger-inoffensif { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.danger-badge.danger-moyen { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.danger-badge.danger-élevé, .danger-badge.danger-eleve { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.danger-badge.danger-légendaire, .danger-badge.danger-legendaire { background: #f3e5f5; color: #6a1b9a; border: 1px solid #ce93d8; }

.uniques-section {
	margin-top: 6px;
}
.uniques-title {
	font-family: 'Cinzel', serif;
	font-size: 12px;
	font-weight: 700;
	color: #5a1212;
	margin-bottom: 6px;
}
.uniques-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.unique-card {
	background: #fdf9f0;
	border: 1px solid #d4af37;
	border-left: 4px solid #d4af37;
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	transition: all 150ms ease;
}
.unique-card:hover {
	background: #fffbf5;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(212,175,55,0.25);
}
.unique-card-top {
	display: flex;
	align-items: center;
	gap: 6px;
}
.unique-icon { font-size: 16px; }
.unique-name {
	font-family: 'Cinzel', serif;
	font-size: 12px;
	color: #5a1212;
	flex: 1;
}
.unique-status-badge {
	font-family: 'Cinzel', serif;
	font-size: 9px;
	font-weight: 700;
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
	padding: 1px 5px;
	border-radius: 3px;
}
.unique-coords {
	font-family: monospace;
	font-size: 10px;
	color: #7a6048;
	margin-top: 4px;
}

body.dark-theme .panel-nav-tabs { background: #13100d; border-bottom-color: #5c3818; }
body.dark-theme .panel-tab-btn { background: #1b1713; border-color: #3e3226; color: #a89480; }
body.dark-theme .panel-tab-btn.active { background: linear-gradient(180deg, #5a1212 0%, #3a0b0b 100%); color: #f8e8a6; border-color: #d4af37; }
body.dark-theme .skill-tab-btn { background: #1b1713; border-color: #3e3226; color: #d8c8b8; }
body.dark-theme .skill-tab-btn.active { background: #5a1212; color: #f8e8a6; border-color: #d4af37; }
body.dark-theme .leaderboard-table { background: #1b1713; border-color: #3e3226; }
body.dark-theme .leaderboard-table th { background: #13100d; color: #d4af37; border-bottom-color: #5c3818; }
body.dark-theme .leaderboard-row { border-bottom-color: #2b231b; }
body.dark-theme .leaderboard-row:hover { background: #251f18; }
body.dark-theme .player-name { color: #f8e8a6; }
body.dark-theme .level-badge { background: #123315; color: #a5d6a7; border-color: #2e7d32; }
body.dark-theme .creature-cat-card { background: #1b1713; border-color: #3e3226; }
body.dark-theme .cat-title { color: #f8e8a6; }
body.dark-theme .cat-count-badge { background: #13100d; color: #d4af37; border-color: #5c3818; }
body.dark-theme .unique-card { background: #1b1713; border-color: #d4af37; }
body.dark-theme .unique-name { color: #f8e8a6; }
body.dark-theme .deed-size-badge { background: #13100d; color: #f8e8a6; border-color: #5c3818; }

.merchant-marker-badge {
	width: 32px;
	height: 32px;
	background: radial-gradient(circle, #fff8e1 0%, #ffe082 100%);
	border: 2px solid #d4af37;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.5);
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease;
}
.merchant-marker-badge:hover {
	transform: scale(1.15);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 215, 0, 0.8);
}

.coin-gold {
	color: #b78103;
	font-weight: 700;
	background: #fff8e1;
	border: 1px solid #ffe082;
	padding: 1px 4px;
	border-radius: 3px;
	font-size: 11px;
}
.coin-silver {
	color: #546e7a;
	font-weight: 700;
	background: #eceff1;
	border: 1px solid #cfd8dc;
	padding: 1px 4px;
	border-radius: 3px;
	font-size: 11px;
}
.coin-copper {
	color: #8d4004;
	font-weight: 700;
	background: #fbe9e7;
	border: 1px solid #ffccbc;
	padding: 1px 4px;
	border-radius: 3px;
	font-size: 11px;
}

.ql-badge {
	font-family: monospace;
	font-weight: 700;
	font-size: 10px;
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
	padding: 1px 4px;
	border-radius: 3px;
}

.merchant-popup-box {
	font-family: 'Spectral', Georgia, serif;
	min-width: 260px;
	max-width: 340px;
}
.merchant-popup-header {
	border-bottom: 2px solid #d4af37;
	padding-bottom: 6px;
	margin-bottom: 8px;
}
.merchant-popup-header h4 {
	font-family: 'Cinzel', serif;
	font-size: 14px;
	color: #5a1212;
	margin: 0;
}
.popup-village-subtitle {
	font-size: 11px;
	color: #7a6048;
}
.merchant-table-scroll {
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #d4af37;
	border-radius: 4px;
}
.merchant-popup-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
}
.merchant-popup-table th {
	background: #fdf8ed;
	color: #5a1212;
	font-family: 'Cinzel', serif;
	font-size: 10px;
	padding: 5px 6px;
	text-align: left;
	border-bottom: 1px solid #e2d1b0;
	position: sticky;
	top: 0;
	z-index: 2;
}
.merchant-popup-table td {
	padding: 4px 6px;
	border-bottom: 1px solid #f2e7d5;
}
.merchant-popup-table tr:last-child td {
	border-bottom: none;
}
.merchant-popup-table tr:hover td {
	background: #fffdf9;
}
.no-items-td {
	text-align: center;
	color: #888;
	font-style: italic;
	padding: 10px;
}

.popup-market-section {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #d4af37;
	max-height: 240px;
	overflow-y: auto;
	overflow-x: hidden;
}
.card-shops-section {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #d4af37;
	overflow: visible;
}
.card-merchants-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow: visible;
}
.card-shops-title, .market-section-header {
	font-family: 'Cinzel', serif;
	font-size: 11px;
	font-weight: 700;
	color: #5a1212;
	margin-bottom: 6px;
}
.card-merchant-item, .v-merchant-block {
	background: #faf6ee;
	border: 1px solid #e2d1b0;
	border-radius: 4px;
	padding: 6px;
	margin-bottom: 6px;
	max-height: 220px;
	overflow: visible;
}
.card-merchant-name, .v-merchant-title {
	font-family: 'Spectral', serif;
	font-size: 11px;
	color: #5a1212;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.merchant-items-count {
	font-size: 9.5px;
	font-weight: 600;
	color: #8c6239;
	background: #ebdcc4;
	padding: 1px 5px;
	border-radius: 8px;
}
.card-merchant-table-wrapper {
	max-height: 140px;
	overflow-y: auto;
	overflow-x: hidden;
	border-radius: 3px;
	border: 1px solid #ebdcc4;
}
.card-merchant-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 10px;
}
.card-merchant-table th {
	background: #f0e6d2;
	color: #5a1212;
	font-family: 'Cinzel', serif;
	font-size: 9px;
	padding: 3px 4px;
	text-align: left;
	position: sticky;
	top: 0;
	z-index: 2;
}
.card-merchant-table td {
	padding: 3px 4px;
	border-bottom: 1px solid #ebdcc4;
}

.popup-inventory-link {
	margin-top: 6px;
	padding-top: 4px;
	text-align: center;
	border-top: 1px dashed #d4af37;
	font-size: 10.5px;
}
.popup-inventory-link a {
	color: #5a1212;
	font-weight: 700;
	font-family: 'Cinzel', serif;
	text-decoration: none;
	display: inline-block;
	padding: 4px 10px;
	background: #f0e6d2;
	border: 1px solid #c2a878;
	border-radius: 4px;
	transition: all 150ms ease;
}
.popup-inventory-link a:hover {
	background: #5a1212;
	color: #f8e8a6;
	border-color: #d4af37;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes highlightFlash {
	0% { background-color: #fff3e0; outline: 2px solid #ff9800; box-shadow: 0 0 12px rgba(255,152,0,0.6); }
	50% { background-color: #ffe0b2; outline: 2px solid #ff9800; box-shadow: 0 0 16px rgba(255,152,0,0.8); }
	100% { background-color: transparent; outline: none; box-shadow: none; }
}
.highlight-flash {
	animation: highlightFlash 2.2s ease-out;
}

.central-market-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Spectral', serif;
	font-size: 10px;
	color: #2e7d32;
	background: #f1f8e9;
	border: 1px solid #c8e6c9;
	padding: 3px 8px;
	border-radius: 12px;
	margin-top: 2px;
}

body.dark-theme .merchant-popup-header h4 { color: #f8e8a6; }
body.dark-theme .popup-village-subtitle { color: #a89480; }
body.dark-theme .merchant-table-scroll { border-color: #5c3818; }
body.dark-theme .merchant-popup-table th { background: #13100d; color: #f8e8a6; border-bottom-color: #5c3818; }
body.dark-theme .merchant-popup-table td { border-bottom-color: #2b231b; color: #d8c8b8; }
body.dark-theme .merchant-popup-table tr:hover td { background: #251f18; }
body.dark-theme .card-shops-title, body.dark-theme .market-section-header { color: #f8e8a6; }
body.dark-theme .card-merchant-item, body.dark-theme .v-merchant-block { background: #1b1713; border-color: #3e3226; }
body.dark-theme .card-merchant-name, body.dark-theme .v-merchant-title { color: #f8e8a6; background: #1b1713; }
body.dark-theme .card-merchant-table th { background: #13100d; color: #d4af37; }
body.dark-theme .card-merchant-table td { border-bottom-color: #2b231b; color: #d8c8b8; }
body.dark-theme .merchant-items-count { background: #2b1f18; color: #d4af37; }
body.dark-theme .card-merchant-table-wrapper { border-color: #3e3226; }
body.dark-theme .popup-inventory-link { border-top-color: #5c3818; }
body.dark-theme .popup-inventory-link a { color: #f8e8a6; background: #2b1f18; border-color: #5c3818; }
body.dark-theme .popup-inventory-link a:hover { background: #d4af37; color: #120e0a; border-color: #f8e8a6; }
body.dark-theme .central-market-badge { background: #123315; color: #a5d6a7; border-color: #2e7d32; }
body.dark-theme .coin-gold { background: #3e2723; border-color: #ffd54f; color: #ffe082; }
body.dark-theme .coin-silver { background: #263238; border-color: #90a4ae; color: #cfd8dc; }
body.dark-theme .coin-copper { background: #3e1f18; border-color: #ffab91; color: #ffccbc; }
body.dark-theme .ql-badge { background: #123315; color: #a5d6a7; border-color: #2e7d32; }

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
::-webkit-scrollbar-track {
	background: rgba(61, 35, 20, 0.08);
	border-radius: 3px;
}
::-webkit-scrollbar-thumb {
	background: #8c6239;
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
	background: #5a1212;
}
body.dark-theme ::-webkit-scrollbar-track {
	background: rgba(19, 16, 13, 0.5);
}
body.dark-theme ::-webkit-scrollbar-thumb {
	background: #5c3818;
}
body.dark-theme ::-webkit-scrollbar-thumb:hover {
	background: #d4af37;
}

#market-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: 320px;
	height: 100vh;
	background: #f4ecd8;
	border-left: 3px solid #d4af37;
	box-shadow: -6px 0 24px rgba(0,0,0,0.45);
	display: flex;
	flex-direction: column;
	z-index: 1000;
	transform: translateX(100%);
	transition: transform 250ms cubic-bezier(0.25, 0.8, 0.25, 1);
	overflow: hidden;
}

#market-sidebar.open {
	transform: translateX(0);
}

.market-sidebar-header {
	padding: 14px 16px;
	background: #3d2314;
	color: #f8e8a6;
	border-bottom: 2px solid #d4af37;
	position: relative;
}

.market-sidebar-close-btn {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 28px;
	height: 28px;
	background: #6b1d1d;
	color: #f8e8a6;
	border: 1px solid #d4af37;
	border-radius: 4px;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 150ms ease;
}

.market-sidebar-close-btn:hover {
	background: #900c0c;
	color: #ffffff;
	transform: scale(1.08);
}

.market-sidebar-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	padding-right: 32px;
}

.market-sidebar-title-row h3 {
	font-family: 'Cinzel', 'MedievalSharp', serif;
	font-size: 15px;
	font-weight: 900;
	color: #f8e8a6;
	margin: 0;
	text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.merchant-items-count-badge {
	font-family: 'Cinzel', serif;
	font-size: 10px;
	font-weight: 700;
	background: #d4af37;
	color: #2c1d11;
	padding: 2px 8px;
	border-radius: 8px;
	display: inline-block;
}

.market-sidebar-subtitle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	color: #d8c8b8;
	margin-bottom: 8px;
}

.market-sidebar-meta-row {
	margin-bottom: 10px;
}

.market-village-tag {
	color: #e8dcbe;
}

.market-coords-tag {
	font-size: 10px;
	color: #d4af37;
}

.market-sidebar-search-box {
	position: relative;
	width: 100%;
}

.market-sidebar-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
}

.full-inventory-table {
	width: 100%;
	border-collapse: collapse;
}

.full-inventory-table th {
	position: sticky;
	top: 0;
	background: #2b180d;
	color: #d4af37;
	font-family: 'Cinzel', serif;
	font-size: 10.5px;
	padding: 6px 8px;
	z-index: 5;
	text-align: left;
	border-bottom: 1px solid #d4af37;
}

.full-inventory-table td {
	padding: 6px 8px;
	border-bottom: 1px solid #ebdcc4;
	font-size: 12px;
}

.merchant-name-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.inspect-shop-btn {
	font-family: 'Cinzel', serif;
	font-size: 9.5px;
	font-weight: 700;
	background: #6b1d1d;
	color: #f8e8a6;
	border: 1px solid #d4af37;
	border-radius: 4px;
	padding: 2px 6px;
	cursor: pointer;
	transition: all 150ms ease;
}

.inspect-shop-btn:hover {
	background: #900c0c;
	color: #ffffff;
}

body.dark-theme #market-sidebar {
	background: #181410;
	border-left-color: #8c6239;
}

body.dark-theme .market-sidebar-header {
	background: #120e0a;
	border-bottom-color: #5c3818;
}

body.dark-theme .full-inventory-table th {
	background: #120e0a;
	color: #d4af37;
	border-bottom-color: #5c3818;
}

body.dark-theme .full-inventory-table td {
	border-bottom-color: #2b231b;
	color: #d8c8b8;
}

.flora-section {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 2px dashed #d4af37;
}

.flora-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.flora-title {
	font-family: 'Cinzel', 'MedievalSharp', serif;
	font-size: 13.5px;
	font-weight: 800;
	color: #3d2314;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.server-host-badge {
	font-family: 'Cinzel', serif;
	font-size: 9.5px;
	font-weight: 700;
	background: #3d2314;
	color: #f8e8a6;
	border: 1px solid #d4af37;
	padding: 2px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.flora-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 8px;
}

.flora-card {
	background: #fdfaf2;
	border: 1px solid #c8b088;
	border-radius: 6px;
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: all 150ms ease;
}

.flora-card:hover {
	border-color: #d4af37;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.flora-card.harvest-ripe-card {
	background: #f3f9f1;
	border-color: #72b063;
}

.flora-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.flora-title-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.flora-icon {
	font-size: 15px;
}

.flora-name {
	font-size: 12px;
	font-weight: 700;
	color: #2c1d11;
}

.flora-count-badge {
	font-family: 'Cinzel', serif;
	font-size: 10px;
	font-weight: 800;
	background: #3d2314;
	color: #f8e8a6;
	padding: 1px 6px;
	border-radius: 6px;
}

.flora-card.harvest-ripe-card .flora-count-badge {
	background: #23581a;
	color: #ffffff;
}

.flora-card-bottom {
	display: flex;
	align-items: center;
}

.harvest-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	width: 100%;
}

.harvest-status-chip.ripe {
	background: #e2f3df;
	color: #1b5212;
	border: 1px solid #a3d999;
}

.harvest-status-chip.unripe {
	background: #f0ede6;
	color: #7a6e60;
	border: 1px solid #d8d0c2;
}

.status-indicator-dot {
	font-size: 9px;
	line-height: 1;
}

.status-indicator-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.dark-theme .flora-title {
	color: #f8e8a6;
}

body.dark-theme .server-host-badge {
	background: #181410;
	color: #d4af37;
	border-color: #8c6239;
}

body.dark-theme .flora-card {
	background: #1f1a14;
	border-color: #3d3124;
}

body.dark-theme .flora-card.harvest-ripe-card {
	background: #122112;
	border-color: #2f6927;
}

body.dark-theme .flora-name {
	color: #e8dcbe;
}

body.dark-theme .harvest-status-chip.ripe {
	background: #153313;
	color: #85e07a;
	border-color: #285922;
}

body.dark-theme .harvest-status-chip.unripe {
	background: #28211a;
	color: #a09282;
	border-color: #3d3124;
}

.fauna-section {
	margin-top: 16px;
	margin-bottom: 20px;
	background: #faf8f5;
	border: 1px solid #e2dacd;
	border-radius: 8px;
	padding: 12px 14px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.fauna-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e8e0d4;
}

.fauna-title-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fauna-title {
	font-family: "Cinzel", Georgia, serif;
	font-size: 13px;
	font-weight: 700;
	color: #3b2c1a;
	margin: 0;
	letter-spacing: 0.3px;
}

.fauna-total-tag {
	font-size: 10px;
	font-weight: 600;
	background: #3b2c1a;
	color: #f7e0a3;
	padding: 2px 7px;
	border-radius: 10px;
	letter-spacing: 0.3px;
}

.fauna-search-box {
	flex: 1;
	min-width: 140px;
	max-width: 220px;
}

.fauna-search-input {
	width: 100%;
	padding: 4px 8px;
	font-size: 11px;
	border: 1px solid #cfc4b4;
	border-radius: 4px;
	background: #ffffff;
	color: #33281a;
	outline: none;
	transition: border-color 0.2s ease;
}

.fauna-search-input:focus {
	border-color: #8c6239;
	box-shadow: 0 0 0 2px rgba(140, 98, 57, 0.15);
}

.fauna-species-scrollable {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-right: 4px;
	overflow: visible;
}

.fauna-species-scrollable::-webkit-scrollbar {
	width: 5px;
}
.fauna-species-scrollable::-webkit-scrollbar-track {
	background: #ece6dc;
	border-radius: 3px;
}
.fauna-species-scrollable::-webkit-scrollbar-thumb {
	background: #b8a894;
	border-radius: 3px;
}
.fauna-species-scrollable::-webkit-scrollbar-thumb:hover {
	background: #8c7355;
}

.fauna-empty {
	padding: 12px;
	text-align: center;
	font-size: 11px;
	color: #8c7d6b;
	font-style: italic;
}

.fauna-species-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 10px;
	background: #ffffff;
	border: 1px solid #e8e0d4;
	border-radius: 6px;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.fauna-species-card:hover {
	background: #fcf9f4;
	border-color: #c9bca9;
	transform: translateX(2px);
}

.fauna-species-left {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fauna-species-icon {
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

.fauna-species-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fauna-species-name {
	font-size: 11px;
	font-weight: 600;
	color: #2b2118;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fauna-template-tag {
	font-size: 9px;
	color: #8c7d6c;
	font-weight: 500;
}

.fauna-species-right {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.fauna-qty-badge {
	font-size: 10px;
	font-weight: 700;
	background: #f0e6d6;
	color: #4a3824;
	padding: 2px 7px;
	border-radius: 10px;
	border: 1px solid #dfd2be;
}

.danger-badge {
	font-size: 9px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.danger-badge.danger-inoffensif {
	background: #e2f3e2;
	color: #1e661e;
	border: 1px solid #b2e0b2;
}

.danger-badge.danger-moyen {
	background: #fff4d9;
	color: #8a5a00;
	border: 1px solid #ffe299;
}

.danger-badge.danger-eleve,
.danger-badge.danger-élevé {
	background: #fde8e8;
	color: #a81c1c;
	border: 1px solid #f8b4b4;
}

.danger-badge.danger-legendaire,
.danger-badge.danger-légendaire {
	background: #f3e5f5;
	color: #6a1b9a;
	border: 1px solid #ce93d8;
	box-shadow: 0 0 4px rgba(156, 39, 176, 0.2);
}

body.dark-theme .fauna-section {
	background: #181410;
	border-color: #3d3124;
}

body.dark-theme .fauna-title {
	color: #f8e8a6;
}

body.dark-theme .fauna-total-tag {
	background: #d4af37;
	color: #181410;
}

body.dark-theme .fauna-search-input {
	background: #241d17;
	border-color: #4a3b2b;
	color: #f0e6d6;
}

body.dark-theme .fauna-search-input:focus {
	border-color: #d4af37;
}

body.dark-theme .fauna-species-card {
	background: #1f1913;
	border-color: #382d21;
}

body.dark-theme .fauna-species-card:hover {
	background: #292119;
	border-color: #574633;
}

body.dark-theme .fauna-species-name {
	color: #f0e4cf;
}

body.dark-theme .fauna-template-tag {
	color: #a39380;
}

body.dark-theme .fauna-qty-badge {
	background: #2b2219;
	color: #e6d5bd;
	border-color: #453627;
}

body.dark-theme .danger-badge.danger-inoffensif {
	background: #132e13;
	color: #79d279;
	border-color: #225222;
}

body.dark-theme .danger-badge.danger-moyen {
	background: #33270d;
	color: #f0c05a;
	border-color: #574216;
}

body.dark-theme .danger-badge.danger-eleve,
body.dark-theme .danger-badge.danger-élevé {
	background: #361414;
	color: #f27979;
	border-color: #5c2222;
}

body.dark-theme .danger-badge.danger-legendaire,
body.dark-theme .danger-badge.danger-légendaire {
	background: #2b1138;
	color: #d68bf2;
	border-color: #52216b;
}

.cockpit {
	margin: 10px 0 14px 0;
	padding: 10px 14px;
	border-radius: 8px;
	border: 2px solid;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.cockpit-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cockpit-icon {
	font-size: 26px;
	line-height: 1;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,0.12));
}

.cockpit-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.cockpit-season-title {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.season-label-prefix {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.8;
	font-weight: 600;
}

.season-badge {
	font-family: "Cinzel", Georgia, serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.cockpit-timer {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.tab-season-row {
	margin: 3px 0 6px 0;
	display: flex;
}

.world-season-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 12px;
	letter-spacing: 0.3px;
	border: 1px solid;
	transition: all 0.2s ease;
}

.spring,
.cockpit.spring {
	border-color: #00ff66 !important;
}
.cockpit.spring {
	background: linear-gradient(135deg, #e8f8ec 0%, #d0f8d8 100%);
	color: #0d521f;
}
.cockpit.spring button,
.cockpit.spring .cockpit-btn,
.world-season-badge.spring {
	border: 1px solid #00b347;
	background: rgba(0, 200, 80, 0.15);
	color: #084217;
}

.summer,
.cockpit.summer {
	border-color: #ffcc00 !important;
}
.cockpit.summer {
	background: linear-gradient(135deg, #fffde6 0%, #fff3b3 100%);
	color: #594200;
}
.cockpit.summer button,
.cockpit.summer .cockpit-btn,
.world-season-badge.summer {
	border: 1px solid #d4a000;
	background: rgba(255, 204, 0, 0.18);
	color: #4d3900;
}

.autumn,
.cockpit.autumn {
	border-color: #d27d2d !important;
}
.cockpit.autumn {
	background: linear-gradient(135deg, #fdf2e9 0%, #f7d8c2 100%);
	color: #4a2305;
}
.cockpit.autumn button,
.cockpit.autumn .cockpit-btn,
.world-season-badge.autumn {
	border: 1px solid #c46d20;
	background: rgba(210, 110, 30, 0.18);
	color: #472104;
}

body.dark-theme .cockpit.spring {
	background: linear-gradient(135deg, #092610 0%, #103b1a 100%);
	color: #8af5a6;
}
body.dark-theme .world-season-badge.spring {
	background: rgba(0, 255, 102, 0.15);
	color: #8af5a6;
}

body.dark-theme .cockpit.summer {
	background: linear-gradient(135deg, #2e2600 0%, #453800 100%);
	color: #ffeb99;
}
body.dark-theme .world-season-badge.summer {
	background: rgba(255, 204, 0, 0.18);
	color: #ffeb99;
}

body.dark-theme .cockpit.autumn {
	background: linear-gradient(135deg, #2b1506 0%, #42200a 100%);
	color: #ffd0a6;
}
body.dark-theme .world-season-badge.autumn {
	background: rgba(210, 125, 45, 0.2);
	color: #ffd0a6;
}

#right-panel .panel-nav-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
}

#right-panel {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#right-panel .panel-content-tab,
#right-panel .villages-scroll-list,
#right-panel .leaderboard-container,
#right-panel .ecosystem-container,
#right-panel .fauna-species-scrollable,
#right-panel .card-shops-section,
#right-panel .card-merchants-list,
#right-panel .card-merchant-table-wrapper,
#right-panel .block {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow: visible !important;
    margin-bottom: 20px !important;
}

#right-panel::-webkit-scrollbar {
    width: 8px;
}
#right-panel::-webkit-scrollbar-track {
    background: #1e1a13;
    border-radius: 4px;
}
#right-panel::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 4px;
    border: 1px solid #1e1a13;
}
#right-panel::-webkit-scrollbar-thumb:hover {
    background: #e6b85c;
}

.world-tab-btn.active,
.server-card.active {
    color: #ffffff !important;
}

.world-tab-btn.active .world-season-badge,
.server-card.active .world-season-badge,
.server-card.active .season-badge,
.world-tab-btn.active .season-badge,
.active .world-season-badge {
    background: rgba(0, 0, 0, 0.45) !important;
    color: #ffcc00 !important;
    border: 1px solid #ffcc00 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
    font-weight: 800 !important;
}

.world-tab-btn.active .world-season-badge.spring,
.server-card.active .world-season-badge.spring {
    color: #ffffff !important;
    background: rgba(0, 50, 20, 0.7) !important;
    border-color: #00ff66 !important;
}

.world-tab-btn.active .world-season-badge.summer,
.server-card.active .world-season-badge.summer {
    color: #ffcc00 !important;
    background: rgba(60, 45, 0, 0.7) !important;
    border-color: #ffcc00 !important;
}

.world-tab-btn.active .world-season-badge.autumn,
.server-card.active .world-season-badge.autumn {
    color: #ffcc00 !important;
    background: rgba(60, 25, 5, 0.7) !important;
    border-color: #ff9933 !important;
}

.world-tab-btn.active .world-name {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.server-card.active img, 
.server-card.active .icon {
    filter: brightness(0) invert(1) !important;
}

.db-status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.1);
}
.db-ok {
    background: rgba(0, 255, 102, 0.1);
    color: #00ff66;
}
.db-err {
    background: rgba(255, 0, 51, 0.1);
    color: #ff0033;
}

.village-map-banner {
    font-size: 9px !important;
    padding: 1px 4px !important;
    background: #fdf6e2 !important;
    border: 1px solid #b8860b !important;
    border-radius: 3px !important;
    color: #3b2a1a !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.clean-village-pin {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.village-map-pin {
    background: rgba(20, 20, 20, 0.75) !important;
    border: 1px solid #c2a866 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important;
}

.pin-icon-symbol {
    font-size: 13px !important;
}

.badge-new-tag {
    background: #d9534f !important;
    color: #fff !important;
    font-size: 9px !important;
    padding: 1px 3px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
}

.village-card-name-badge {
    background: linear-gradient(to bottom, #fffef9, #f7ebd0) !important;
    border: 1px solid #c2a866 !important;
    border-radius: 4px;
    padding: 3px 7px;
    display: inline-block;
    margin-bottom: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.custom-village-pin-container {
    width: 24px !important;
    height: 24px !important;
    margin-left: -12px !important;
    margin-top: -12px !important;
}

.custom-village-pin-container div[style*="font-size: 18px"],
.custom-village-pin-container div[style*="font-size: 14px"] {
    font-size: 13px !important;
}

.leaflet-zoom-max .custom-village-pin-container div:last-child,
.leaflet-zoom-max .custom-pin-icon {
    transform: translate(-50%, -50%) scale(2) !important;
}

.citizen-deed-link {
    color: #1e90ff !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}
.citizen-deed-link:hover {
    color: #b8860b !important;
}

.citizen-link {
    color: #1e90ff !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}
.citizen-link:hover {
    color: #b8860b !important;
}

/* ==========================================================================
   FORCE 100% TRANSPARENCE : AUCUN REMPLISSAGE SUR TOUS LES TRACÉS VECTORIELS
   ========================================================================== */
path,
path[fill],
path.leaflet-interactive,
.leaflet-pane path,
.leaflet-overlay-pane path,
.leaflet-overlay-pane svg path {
    fill: none !important;
    fill-opacity: 0 !important;
}