/* css/style.css - DIO-MICCIA RADAR INTERFACE - VERSIONE COMPLETA */

:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59,130,246, 0.32);
    --secondary: #10b981;
    --secondary-glow: rgba(16,185,129, 0.32);
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --bg-dark: #070b14;
    --bg-darker: #0a0f1d;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --glass-bg: rgba(10, 15, 30, 0.9);
    --card-bg: rgba(10, 15, 30, 0.95);
    --border: rgba(59,130,246, 0.2);
    --text-main: #e0f0ff;
    --text-muted: #8a9bb5;
    --text-dark: #05050c;
    --efesto: #ff5500;
    --poseidone: #0099ff;
    --colosso: #ffaa00;
}

html.theme-light {
    --bg-dark: transparent;
    --bg-darker: transparent;
    --card-bg: transparent;
    --glass-bg: rgba(255,255,255,.7);
    --text-main: #28466b;
    --text-muted: #5d779b;
}


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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    min-width: 1200px;
    position: relative;
    overflow-x: auto;
}

/* ===== SFONDO cosmico (versione sobria/professionale, immagine mantenuta) ===== */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(6,9,18,.55) 0%, rgba(6,9,18,.72) 55%, rgba(6,9,18,.9) 100%),
        url('../sfondologin.png') center 22% / cover no-repeat fixed;
    filter: saturate(1.05) brightness(0.8);
    z-index: -3;
}

.grid-overlay {
    display: none;
}

.scanline {
    display: none;
}

.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    animation: float 15s infinite linear;
    opacity: 0.3;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 50px;
}

.glitch-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 2px;
    position: relative;
}

.brand-version {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.nav-menu {
    display: flex;
    gap: 5px;
    flex: 1;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(59,130,246, 0.1);
    text-shadow: 0 0 8px var(--primary-glow);
}

.nav-server select {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    outline: none;
}

.nav-server select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ===== INFO SIDEBAR ===== */
.info-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    width: 260px;
    background: rgba(3, 8, 22, 0.95);
    border-right: 1px solid var(--border);
    padding: 20px 15px;
    z-index: 900;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Banner sidebar — si adatta alla larghezza disponibile */
.ika-sidebar-ad {
    width: 100%;
    overflow: visible !important;
    text-align: center;
    border-radius: 6px;
    flex-shrink: 0;
}
.ika-sidebar-ad > * {
    max-width: 100% !important;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(59,130,246, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.user-info .user-name {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.user-info .user-rank {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== SISTEMA STATS SIDEBAR ===== */
.system-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 5px;
    margin-bottom: 15px;
}

.system-stats .stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}

.system-stats .stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    display: block;
}

.system-stats .stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
    line-height: 1.2;
    display: block;
}

.system-stats .stat-value#online-players {
    font-size: 0.8rem;
}

.system-stats .stat-value#server-latency {
    font-size: 0.8rem;
}

.server-info {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.server-info h4 {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.server-label {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.last-update {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* ===== BLOCCO PUBBLICITA ===== */
.ad-space {
    background: linear-gradient(135deg, rgba(16,185,129, 0.1), rgba(59,130,246, 0.1));
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    position: relative;
    overflow: visible; /* importantissimo per il video */
    min-height: 450px; /* spazio per il video */
}

.ad-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ad-subtext {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.ad-button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.ad-button:hover {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.signal-strength {
    display: flex;
    gap: 5px;
    align-items: center;
}

.signal-strength .bar {
    width: 4px;
    height: 20px;
    background: rgba(59,130,246, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.signal-strength .bar.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 1.5s infinite;
}

.btn-back {
    background: rgba(59,130,246, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateX(-5px);
}

/* ===== FEED CONTROLS ===== */
.feed-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    border: 1px solid var(--border);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59,130,246, 0.2);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
    font-weight: 700;
    box-shadow: 0 0 20px var(--primary-glow);
}

.feed-refresh {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Score filter pill buttons (svacanzati history) */
.svac-sfilt {
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(0,255,136,.3);
    color: #8a9bb5;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.svac-sfilt:hover {
    border-color: #00ff88;
    color: #00ff88;
    transform: translateY(-1px);
}
.svac-sfilt.active {
    background: rgba(0,255,136,.2);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0,255,136,.25);
}

.last-update {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.refresh-btn {
    background: rgba(59,130,246, 0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
}

.refresh-btn:hover {
    background: var(--primary);
    color: var(--text-dark);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* ===== FEED CARDS ===== */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.feed-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(59,130,246, 0.2);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.event-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.event-badge.new {
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.event-badge.lost {
    color: var(--error);
    border: 1px solid var(--error);
    box-shadow: 0 0 10px var(--error);
}

.feed-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Inter', monospace;
}

.feed-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.player-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(90deg, rgba(59,130,246, 0.2), rgba(16,185,129, 0.1));
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.action-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

.city-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 8px var(--primary-glow);
    background: rgba(59,130,246, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px dashed var(--primary);
}

.in-text {
    color: #666;
    font-size: 0.8rem;
}

.coords {
    font-family: 'Inter', monospace;
    color: var(--warning);
    background: rgba(255, 170, 0, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 170, 0, 0.3);
    font-weight: 600;
}

.ally-tag {
    color: var(--secondary);
    font-weight: 700;
    background: rgba(16,185,129, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(16,185,129, 0.3);
    text-transform: uppercase;
    box-shadow: 0 0 8px var(--secondary-glow);
}

.player-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
}

.stat-item i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.stat-item.total i { color: var(--primary); }
.stat-item.army i { color: var(--error); }
.stat-item.research i { color: var(--success); }
.stat-item.building i { color: #ffaa00; }
.stat-item.gold i { color: #ffd700; }
.stat-item.cities i { color: var(--warning); }

.stat-value {
    font-weight: 700;
    color: #fff;
}

.stat-label {
    color: var(--text-muted);
    margin-left: 2px;
    font-size: 0.65rem;
    text-transform: lowercase;
}

/* ── Miracoli player (PNG chips) ── */
.miracle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.25);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 5px;
}

.miracle-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 3px 8px 3px 5px;
}

.miracle-chip-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.miracle-chip-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* ── Isola evento (risorsa + miracolo) ── */
.island-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 3px 8px;
}

.island-res,
.island-won {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.island-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.island-icon-lv {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.9;
}

.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.6rem;
}

.event-id {
    font-family: 'Inter', monospace;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 12px;
    color: var(--text-muted);
}

.server-tag {
    background: rgba(59,130,246, 0.15);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.65rem;
}

/* ===== PROFILO GIOCATORE ===== */
.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    border-top: 4px solid var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-dark);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.profile-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.profile-ally {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ally-badge {
    background: rgba(16,185,129, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* STATS GRID - 4 COLONNE COMPATTE */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    padding: 12px 8px;
    text-align: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(59,130,246, 0.2);
}

.stat-box span {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box strong {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    display: block;
    line-height: 1.2;
}

.stat-box .stat-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 2rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* SECONDA RIGA DI STATS (oro e miracoli) */
.stats-grid.secondary {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    margin-bottom: 20px;
}

/* CITTÀ HEADER */
.cities-header {
    margin: 15px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.cities-header h3 {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* TABELLA CITTÀ */
.details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.85rem;
}

.details-table th {
    background: rgba(59,130,246, 0.15);
    color: var(--primary);
    padding: 10px 12px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
}

.details-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

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

.details-table tr:last-child td {
    border-bottom: none;
}

.city-level {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 12px;
    white-space: nowrap;
}

.island-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    padding: 3px 8px;
    background: rgba(59,130,246, 0.1);
    border-radius: 16px;
    border: 1px solid transparent;
}

.island-link:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.coords-small {
    font-size: 0.65rem;
    color: var(--warning);
    margin-left: 5px;
    font-family: 'Inter', monospace;
    background: rgba(255, 170, 0, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
}

.resource-icon {
    margin-right: 5px;
    color: var(--success);
    font-size: 0.8rem;
}

/* AZIONI PROFILO */
.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.btn-back, .btn-refresh {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-back:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-refresh {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-refresh:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

/* ===== LOADING E STATI ===== */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
}

.loading i {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--primary-glow);
    animation: pulse 2s infinite;
}

.hologram-loading {
    text-align: center;
    padding: 80px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.scanning-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59,130,246, 0.1) 50%, 
        transparent 100%);
    animation: scanLight 2s ease-in-out infinite;
}

.loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--primary-glow);
    position: relative;
}

.loading-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    position: relative;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px auto 0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: progress 2s ease-out infinite;
}

/* ===== ERROR CARD ===== */
.error-card {
    text-align: center;
    padding: 60px 30px;
    color: var(--error);
    border-color: var(--error) !important;
    background: rgba(255, 51, 102, 0.1);
}

.error-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--error);
    text-shadow: 0 0 20px var(--error);
}

.error-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn-retry {
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 35px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background: var(--error);
    color: var(--text-dark);
    box-shadow: 0 0 25px var(--error);
}

/* ===== STATUS MESSAGES ===== */
.status-message {
    margin: 20px 0;
    padding: 15px 25px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: none;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.status-message.status-success {
    border-left-color: var(--success);
    color: var(--success);
    background: rgba(0, 255, 136, 0.15);
}

.status-message.status-error {
    border-left-color: var(--error);
    color: var(--error);
    background: rgba(255, 51, 102, 0.15);
}

.status-message.status-warning {
    border-left-color: var(--warning);
    color: var(--warning);
    background: rgba(255, 170, 0, 0.15);
}

/* ===== BADGES ===== */
.new-events-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--text-dark);
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid var(--text-dark);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: pulse 2s infinite;
    z-index: 10;
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@keyframes scanLight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 90%; }
    100% { width: 100%; }
}

@keyframes adPulse {
    0%, 100% { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
    50% { border-color: var(--secondary); box-shadow: 0 0 20px var(--secondary-glow); }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .main-content {
        padding: 25px;
    }
    
    .stats-grid,
    .stats-grid.secondary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feed-body {
        gap: 6px 10px;
    }
    
    .player-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .top-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    .info-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-back, .btn-refresh {
        width: 100%;
        justify-content: center;
    }
}

/* Su telefono (<768px) nascondiamo il menu dal 992px wrap e usiamo hamburger */
@media (max-width: 768px) {
    .top-nav {
        flex-wrap: nowrap !important;
        height: 60px !important;
        padding: 0 10px !important;
        align-items: center;
    }
    .nav-menu {
        display: none !important;
        order: 0 !important;
        width: auto !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .feed-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .feed-refresh {
        justify-content: space-between;
    }
    
    .feed-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .player-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .miracle-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .details-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .section-header h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .filter-tabs {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-tab {
        width: 100%;
        text-align: center;
    }
    
    .stats-grid,
    .stats-grid.secondary {
        grid-template-columns: 1fr;
    }
    
    .player-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .miracle-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* ===== SIDEBAR SEO & LEGAL ===== */
.sidebar-manual {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.sidebar-manual h4 {
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.manual-content p {
    margin-bottom: 8px;
}

.sidebar-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 5px;
}

.sidebar-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-legal a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary-glow);
}

/* ===== COOKIE BANNER CYBERPUNK ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 280px;
    background: rgba(5, 5, 12, 0.95);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 10px rgba(59,130,246, 0.1);
    z-index: 9999;
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.cookie-content i {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-main);
    flex: 1;
}

.cookie-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-btn {
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.05);
}

.cookie-link {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .cookie-banner {
        left: 20px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
.system-dossier {
    margin-top: 60px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.system-dossier h3 {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-shadow: 0 0 10px var(--primary-glow);
}
.system-dossier p { margin-bottom: 15px; }

.sidebar-legal {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-legal a {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.3s;
}
.sidebar-legal a:hover { color: var(--primary); }

.btn-info {
    background: rgba(59,130,246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-info:hover {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--bg-darker);
    border: 1px solid var(--primary);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px var(--primary-glow);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-darker);
}

.modal-body { padding: 30px; }

.guide-section { margin-bottom: 30px; }
.guide-section h3 { color: var(--primary); margin-bottom: 15px; font-family: 'Inter'; }
.guide-section p { color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }

.manual-list { list-style: none; }
.manual-list li { margin-bottom: 10px; color: var(--text-main); font-size: 0.9rem; }

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 10px;
}
.badge.new { border: 1px solid var(--success); color: var(--success); }
.badge.lost { border: 1px solid var(--error); color: var(--error); }
.badge.ghost { border: 1px solid var(--text-muted); color: var(--text-muted); }

.close-modal {
    background: none; border: none; color: var(--primary);
    font-size: 2rem; cursor: pointer;
}

/* STORICO NOMI E ALLEANZE */
.history-section {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 20, 40, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.history-section h3 {
    font-family: 'Inter';
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.history-container {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.8rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(59,130,246, 0.1);
}

.history-item.current {
    background: rgba(59,130,246, 0.1);
    border-left: 2px solid var(--primary);
}

.history-date {
    color: var(--text-muted);
    font-family: monospace;
}

.history-value {
    color: var(--text);
    font-weight: 600;
}

/* STATO GIOCATORE */
.status-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.status-active .status-badge {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.status-vacation .status-badge {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
}

.status-inactive .status-badge {
    background: rgba(128, 128, 128, 0.2);
    color: #cccccc;
}

.status-banned .status-badge {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.status-dates {
    color: var(--text-muted);
}

/* MOVIMENTI CITTA */
.movements-container {
    max-height: 200px;
    overflow-y: auto;
}

.movement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.movement-date {
    color: var(--text-muted);
    font-family: monospace;
    min-width: 140px;
}

.movement-icon {
    min-width: 80px;
}

.movement-icon .success {
    color: #00ff88;
}

.movement-icon .danger {
    color: #ff3366;
}

.movement-city {
    color: var(--primary);
    font-weight: 600;
}

.movement-coords {
    color: var(--text-muted);
}
/* Banner mid-content */
.ika-mid-ad {
    width: 100%;
    overflow: hidden;
    text-align: center;
    border-radius: 6px;
    margin: 16px 0;
}
.ika-mid-ad > * {
    max-width: 100% !important;
}
/* Banner mobile nel main content */
.ika-mobile-ad {
    display: none;
    width: 100%;
    text-align: center;
    margin: 16px 0;
}
@media (max-width: 768px) {
    .ika-mobile-ad { display: block; }
}

/* ============================================================
   IKASEARCH — FIX MOBILE + BANNER + MODAL UNIFICATO v2
   ============================================================ */

/* ── 1. BANNER IFRAME: altezza di default visibile subito ──
   NON partiamo da height:0 — causa banner invisibili su tutti i browser.
   L'iframe ha un'altezza minima sensata per formato; postMessage la aggiusta. */
.ika-ad-zone {
    width: 100%;
    overflow: hidden;
    text-align: center;
    border-radius: 6px;
    margin: 14px 0;
}
.ika-ad-zone iframe {
    display: block;
    width: 100%;
    border: none;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* ── 2. HAMBURGER MENU — solo sotto 768px ──
   A 992px il CSS originale riposiziona già il menu.
   Il hamburger entra solo su telefono (<768px). */
.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--primary);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    /* Hamburger visibile */
    .nav-hamburger { display: flex !important; align-items: center; justify-content: center; }

    /* Top nav compatta su mobile — riga singola */
    .top-nav {
        padding: 0 10px !important;
        height: 60px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    .nav-brand { margin-right: 0 !important; }
    .nav-brand img { height: 30px !important; }
    .brand-version { display: none !important; }
    .nav-server {
        margin-left: auto !important;
        margin-right: 4px !important;
        order: 2 !important;
        margin-top: 0 !important;
        width: auto !important;
        flex-wrap: nowrap !important;
    }
    .nav-server select {
        max-width: 100px !important;
        font-size: 0.7rem !important;
        padding: 4px 6px !important;
        min-width: 80px !important;
    }

    /* Menu SEMPRE nascosto di default su mobile */
    .nav-menu {
        display: none !important;
        order: 99 !important;
        width: auto !important;
        margin-top: 0 !important;
    }

    /* Menu APERTO: overlay fisso */
    .nav-menu.nav-open {
        display: flex !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(3,8,22,0.99) !important;
        border-bottom: 2px solid rgba(59,130,246,0.25) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        padding: 8px 12px 20px !important;
        flex-direction: column !important;
        gap: 3px !important;
        z-index: 1000 !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
        order: 0 !important;
        margin-top: 0 !important;
    }
    .nav-menu.nav-open .nav-link {
        padding: 14px 18px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
        border: 1px solid transparent !important;
        width: 100% !important;
        justify-content: flex-start !important;
        display: flex !important;
        gap: 12px !important;
        color: #ccc !important;
    }
    .nav-menu.nav-open .nav-link.active,
    .nav-menu.nav-open .nav-link:hover {
        border-color: rgba(59,130,246,0.3) !important;
        background: rgba(59,130,246,0.08) !important;
        color: var(--primary) !important;
    }
}

/* ── 3. MODAL SBLOCCO UNIFICATO ─────────────────────────── */
.ika-unlock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    flex-direction: column;
    padding: 12px;
    overflow: hidden;
}
.ika-modal-box {
    width: 100%;
    max-width: 760px;
    background: #08081a;
    border: 1px solid var(--primary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(59,130,246,0.15);
    display: flex;
    flex-direction: column;
    max-height: 94vh;
}
.ika-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(59,130,246,0.12);
    background: rgba(59,130,246,0.04);
    flex-shrink: 0;
}
.ika-modal-title {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ika-modal-timer {
    font-family: 'Inter', sans-serif;
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: 900;
    min-width: 60px;
    text-align: right;
}
.ika-modal-video {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 320px;
    background: #000;
    overflow: hidden;
}
.ika-modal-video iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    display: block;
}
.ika-modal-loading {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.ika-modal-footer {
    padding: 10px 22px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .ika-modal-box { border-radius: 10px; }
    .ika-modal-video { min-height: 240px; }
    .ika-modal-video iframe { min-height: 240px; }
    .ika-modal-title { font-size: 0.72rem; }
    .ika-modal-timer { font-size: 1.1rem; }
    .ika-modal-header { padding: 10px 14px; }
}

/* ── 4. BANNER MOBILE ── */
.ika-mobile-ad { display: none; width: 100%; text-align: center; margin: 10px 0; }
@media (max-width: 768px) { .ika-mobile-ad { display: block; } }

/* ═══════════════════════════════════════════════════════════════════
   DOSSIER — stile app (dos-*)
   ═══════════════════════════════════════════════════════════════════ */
.dos-wrap { display:flex; flex-direction:column; gap:10px; padding:0 0 40px; width:100%; }

/* Hero card */
.dos-hero-card { display:flex; align-items:center; gap:12px; background:rgba(8,8,24,.85); border:1px solid rgba(255,255,255,.07); border-radius:14px; padding:14px 16px; }
.dos-avatar { width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,rgba(59,130,246,.25),rgba(157,78,221,.2)); border:2px solid rgba(59,130,246,.35); display:flex; align-items:center; justify-content:center; font-family:'Inter',sans-serif; font-size:1rem; font-weight:900; color:#3b82f6; flex-shrink:0; }
.dos-hero-info { flex:1; min-width:0; }
.dos-hero-name-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.dos-hero-name { font-family:'Inter',sans-serif; font-size:1.05rem; font-weight:900; color:#fff; }
.dos-ally-badge { background:rgba(157,78,221,.18); border:1px solid rgba(157,78,221,.4); color:#c084fc; border-radius:12px; padding:2px 10px; font-size:.72rem; font-weight:700; }
.dos-hero-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dos-server-tag { background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.25); color:#3b82f6; border-radius:8px; padding:2px 8px; font-size:.65rem; font-family:'Inter',sans-serif; font-weight:700; }
.dos-status-pill { display:inline-flex; align-items:center; gap:5px; border:1px solid; border-radius:20px; padding:2px 10px; font-size:.72rem; font-weight:600; }
.dos-status-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.dos-access-badge { border-radius:20px; padding:2px 10px; font-size:.65rem; font-weight:700; }
.dos-access-badge.dos-prem { background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3); color:#ff66cc; }
.dos-access-badge.dos-unlocked { background:rgba(0,255,136,.1); border:1px solid rgba(0,255,136,.3); color:#00ff88; }
.dos-header-btns { display:flex; gap:6px; flex-shrink:0; }
.dos-icon-btn { width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); color:#aaa; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:.8rem; transition:all .15s; }
.dos-icon-btn:hover { background:rgba(59,130,246,.12); border-color:rgba(59,130,246,.35); color:#3b82f6; }

/* Stats grid */
.dos-stats-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.dos-stat-card { background:rgba(8,8,24,.8); border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:12px 8px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.dos-stat-icon { font-size:1.1rem; line-height:1; }
.dos-stat-val { font-family:'Inter',sans-serif; font-size:.82rem; font-weight:900; }
.dos-stat-label { font-size:.58rem; color:#64748b; text-transform:uppercase; letter-spacing:.5px; text-align:center; }

/* Section cards */
.dos-section-card { background:rgba(8,8,24,.8); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:14px 16px; }
.dos-section-head { display:flex; align-items:center; gap:8px; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.05); }
.dos-section-icon { font-size:.95rem; }
.dos-section-title { font-family:'Inter',sans-serif; font-size:.7rem; font-weight:700; color:#3b82f6; letter-spacing:1.5px; text-transform:uppercase; }
.dos-section-head { border-bottom:1px solid rgba(59,130,246,0.12) !important; }

/* Wonder row */
.dos-wonder-row { display:flex; flex-wrap:wrap; gap:10px; }
.dos-wonder-item { display:flex; flex-direction:column; align-items:center; gap:3px; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.07); border-radius:10px; padding:6px 10px; }
.dos-wonder-img { width:32px; height:32px; object-fit:contain; }
.dos-wonder-count { font-size:.72rem; font-weight:700; color:#e2e8f0; }

/* City rows */
.dos-city-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.04); }
.dos-city-row:last-child { border-bottom:none; }
.dos-city-num { font-size:.65rem; color:#475569; font-family:'Inter',sans-serif; min-width:20px; }
.dos-city-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.dos-city-name { font-size:.85rem; font-weight:700; color:#e2e8f0; }
.dos-island-link { text-decoration:none; display:flex; align-items:center; gap:6px; }
.dos-island-name { font-size:.72rem; color:#64748b; }
.dos-city-coords { font-size:.68rem; font-family:'Inter',sans-serif; color:#ffaa00; background:rgba(255,170,0,.1); padding:1px 6px; border-radius:8px; }
.dos-city-icons { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.dos-city-icon { width:18px; height:18px; object-fit:contain; }

/* History rows — timeline verticale */
.dos-hist-list { display:flex; flex-direction:column; gap:0; position:relative; padding-left:18px; }
.dos-hist-list::before { content:''; position:absolute; left:6px; top:8px; bottom:8px; width:1px; background:linear-gradient(to bottom, rgba(59,130,246,0.4), rgba(59,130,246,0.05)); }
.dos-hist-row { display:flex; align-items:flex-start; gap:12px; padding:8px 0; position:relative; }
.dos-hist-row:last-child { padding-bottom:0; }
.dos-hist-dot { position:absolute; left:-18px; top:12px; width:9px; height:9px; border-radius:50%; background:#1e3a4a; border:2px solid rgba(59,130,246,0.3); flex-shrink:0; transition:all .2s; }
.dos-hist-row.dos-hist-current .dos-hist-dot { background:#3b82f6; border-color:#3b82f6; box-shadow:0 0 8px rgba(59,130,246,0.7); width:11px; height:11px; left:-19px; top:11px; }
.dos-hist-body { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.dos-hist-date { font-size:.62rem; color:#475569; font-family:'Inter',sans-serif; letter-spacing:.5px; }
.dos-hist-val { font-size:.85rem; color:#8fa8c0; font-weight:500; }
.dos-hist-row.dos-hist-current .dos-hist-val { color:#3b82f6; font-weight:700; }
.dos-hist-current-badge { display:inline-flex; align-items:center; gap:4px; font-size:.55rem; font-family:'Inter',sans-serif; font-weight:700; letter-spacing:1px; color:#3b82f6; background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.3); border-radius:20px; padding:1px 7px; margin-top:1px; width:fit-content; }

/* Status rows */
.dos-status-row { display:flex; align-items:center; gap:12px; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.04); flex-wrap:wrap; }
.dos-status-row:last-child { border-bottom:none; }
.dos-status-badge { display:inline-flex; align-items:center; gap:5px; border:1px solid; border-radius:20px; padding:3px 12px; font-size:.72rem; font-weight:700; }
.dos-status-dates { font-size:.7rem; color:#64748b; }

/* Movement rows */
.dos-mov-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.04); flex-wrap:wrap; }
.dos-mov-row:last-child { border-bottom:none; }
.dos-mov-date { font-size:.65rem; color:#475569; min-width:80px; }
.dos-mov-badge { font-size:.65rem; font-weight:700; padding:2px 8px; border-radius:10px; font-family:'Inter',sans-serif; }
.dos-mov-badge.dos-mov-new { background:rgba(0,255,136,.12); color:#00ff88; border:1px solid rgba(0,255,136,.25); }
.dos-mov-badge.dos-mov-lost { background:rgba(255,51,102,.12); color:#ff3366; border:1px solid rgba(255,51,102,.25); }
.dos-mov-city { font-size:.78rem; color:#e2e8f0; font-weight:600; }
.dos-mov-coords { font-size:.68rem; font-family:'Inter',sans-serif; color:#ffaa00; background:rgba(255,170,0,.1); padding:1px 6px; border-radius:8px; }

/* Lock box */
.dos-lock-box { background:rgba(8,8,24,.9); border:1px dashed rgba(16,185,129,.3); border-radius:14px; padding:28px 20px; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.dos-lock-icon { font-size:2.5rem; }
.dos-lock-title { font-family:'Inter',sans-serif; color:#ff66cc; font-size:.9rem; font-weight:700; }
.dos-lock-sub { color:#94a3b8; font-size:.8rem; }
.dos-lock-counter { font-size:.75rem; font-weight:600; }
.dos-lock-btn { background:linear-gradient(135deg,#10b981,#ff66cc); border:none; color:#fff; padding:10px 24px; border-radius:20px; font-family:'Inter',sans-serif; font-size:.75rem; font-weight:700; cursor:pointer; transition:opacity .2s; }
.dos-lock-btn:hover { opacity:.85; }
.dos-lock-btn--disabled { background:#333; color:#666; cursor:not-allowed; opacity:.6; }

/* Responsive */
@media (max-width:600px) {
    .dos-stats-grid { grid-template-columns:repeat(3,1fr); }
    .dos-hero-card { flex-wrap:wrap; }
    .dos-header-btns { margin-left:auto; }
}
@media (max-width:400px) {
    .dos-stats-grid { grid-template-columns:repeat(2,1fr); }
}

/* ── Dossier city rows v2 ── */
.dos-city-row { padding:10px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.dos-city-row:last-child { border-bottom:none; }
.dos-city-header { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.dos-city-num { font-size:.65rem; color:#475569; font-family:'Inter',sans-serif; min-width:22px; }
.dos-city-name { font-size:.92rem; font-weight:700; color:#e2e8f0; flex:1; }
.dos-city-gamelink { color:#475569; font-size:.7rem; padding:3px 6px; border-radius:6px; border:1px solid rgba(255,255,255,.08); transition:all .15s; text-decoration:none; }
.dos-city-gamelink:hover { color:#3b82f6; border-color:rgba(59,130,246,.3); }
.dos-city-island { display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.dos-island-name { font-size:.75rem; color:#64748b; }
.dos-city-coords { font-size:.68rem; font-family:'Inter',sans-serif; color:#ffaa00; background:rgba(255,170,0,.1); padding:1px 7px; border-radius:8px; }
.dos-city-resources { display:flex; flex-wrap:wrap; gap:10px; }
.dos-city-res { display:flex; align-items:center; gap:8px; background:rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.06); border-radius:10px; padding:6px 10px; }
.dos-city-res-img { width:28px; height:28px; object-fit:contain; }
.dos-city-res-info { display:flex; flex-direction:column; gap:1px; }
.dos-city-res-name { font-size:.75rem; font-weight:700; }
.dos-city-res-lv { font-size:.65rem; color:#64748b; }

/* ── Wonder name sotto icona ── */
.dos-wonder-item { display:flex; flex-direction:column; align-items:center; gap:3px; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.07); border-radius:10px; padding:8px 12px; }
.dos-wonder-img { width:36px; height:36px; object-fit:contain; }
.dos-wonder-name { font-size:.65rem; color:#94a3b8; text-align:center; }
.dos-wonder-count { font-size:.78rem; font-weight:700; color:#3b82f6; }

/* ── Show more btn ── */
.dos-showmore-btn { width:100%; margin-top:10px; padding:9px; background:rgba(59,130,246,.07); border:1px solid rgba(59,130,246,.2); border-radius:10px; color:#3b82f6; font-family:'Inter',sans-serif; font-size:.8rem; font-weight:600; cursor:pointer; transition:all .15s; }
.dos-showmore-btn:hover { background:rgba(59,130,246,.14); }

/* ── Watchlist btn nel dossier ── */
.dos-wl-btn { font-size:1rem; }

/* ── Modal movimenti città ── */
.dos-mov-modal { position:fixed; inset:0; background:rgba(0,0,0,.75); z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; }
.dos-mov-modal-box { background:#0a0a18; border:1px solid rgba(59,130,246,.25); border-radius:14px; width:100%; max-width:560px; max-height:80vh; display:flex; flex-direction:column; overflow:hidden; }
.d
/* ═══════════════════════════════════════════════════════════════════
   RADAR CARD v2 (rc-*)
   ═══════════════════════════════════════════════════════════════════ */
.rc-card { background:var(--card-bg); border:1px solid rgba(255,255,255,.07); border-radius:14px; padding:14px 18px; cursor:pointer; transition:all .2s; display:flex; flex-direction:column; gap:10px; }
.rc-card:hover { border-color:var(--primary); box-shadow:0 0 20px rgba(59,130,246,.15); transform:translateX(4px); }

/* Header: badge + tempo */
.rc-header { display:flex; justify-content:space-between; align-items:center; }
.rc-badge { font-family:'Inter',sans-serif; font-size:.68rem; font-weight:700; display:flex; align-items:center; gap:7px; padding:4px 14px; border-radius:20px; background:rgba(0,0,0,.5); }
.rc-badge.new { color:#3b82f6; border:1px solid #3b82f6; box-shadow:0 0 10px rgba(59,130,246,.3); }
.rc-badge.lost { color:#ff3366; border:1px solid #ff3366; box-shadow:0 0 10px rgba(255,51,102,.3); }
.rc-time { font-family:'Inter',monospace; font-size:.68rem; color:#475569; background:rgba(255,255,255,.04); padding:3px 10px; border-radius:20px; }

/* Corpo principale */
.rc-main { display:flex; flex-direction:column; gap:6px; }
.rc-row1 { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.rc-player { color:#fff; font-weight:700; font-size:.95rem; background:linear-gradient(90deg,rgba(59,130,246,.15),rgba(157,78,221,.1)); padding:4px 12px; border-radius:20px; border:1px solid rgba(59,130,246,.3); box-shadow:0 0 8px rgba(59,130,246,.2); }
.rc-action { color:#64748b; font-style:italic; font-size:.82rem; }
.rc-city { color:#3b82f6; font-weight:700; font-size:.95rem; background:rgba(59,130,246,.08); padding:4px 12px; border-radius:20px; border:1px dashed rgba(59,130,246,.35); text-shadow:0 0 8px rgba(59,130,246,.4); }
.rc-sep { color:#334155; }

/* Riga 2: coordinate + isola */
.rc-row2 { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rc-coords { font-family:'Inter',monospace; color:#ffaa00; background:rgba(255,170,0,.12); padding:3px 12px; border-radius:20px; font-size:.78rem; font-weight:700; border:1px solid rgba(255,170,0,.25); box-shadow:0 0 8px rgba(255,170,0,.2); letter-spacing:.5px; }

/* Isola chips */
.rc-island-row { display:flex; align-items:center; gap:6px; }
.rc-island-chip { display:inline-flex; align-items:center; gap:5px; background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.08); border-radius:10px; padding:3px 8px; }
.rc-island-img { width:20px; height:20px; object-fit:contain; }
.rc-island-lv { font-size:.7rem; font-weight:700; }

/* Stats */
.rc-stats { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:8px 12px; background:rgba(0,0,0,.25); border-radius:20px; border:1px solid rgba(255,255,255,.05); font-size:.78rem; }
.rc-stat { display:flex; align-items:center; gap:5px; font-weight:700; color:#e2e8f0; }
.rc-stat i { font-size:.72rem; }

/* Miracoli */
.rc-miracle-row { display:flex; flex-wrap:wrap; gap:6px; padding:6px 10px; background:rgba(0,0,0,.2); border-radius:14px; border:1px solid rgba(255,255,255,.05); }
.rc-mir-chip { display:inline-flex; align-items:center; gap:4px; background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.07); border-radius:10px; padding:3px 8px 3px 5px; }
.rc-mir-img { width:22px; height:22px; object-fit:contain; }
.rc-mir-count { font-size:.72rem; font-weight:700; color:#e2e8f0; }

/* Footer */
.rc-footer { display:flex; justify-content:space-between; align-items:center; border-top:1px solid rgba(255,255,255,.04); padding-top:8px; }
.rc-num { font-family:'Inter',monospace; font-size:.58rem; color:#334155; letter-spacing:1px; }
.rc-server { font-family:'Inter',sans-serif; font-size:.6rem; color:#475569; background:rgba(255,255,255,.04); padding:2px 8px; border-radius:8px; }

/* ── City row v3 — riga unica ── */
.dos-city-row { display:flex; align-items:center; gap:8px; padding:7px 4px; border-bottom:1px solid rgba(255,255,255,.04); flex-wrap:wrap; }
.dos-city-row:last-child { border-bottom:none; }
.dos-city-num { font-size:.65rem; color:#475569; font-family:'Inter',sans-serif; min-width:18px; flex-shrink:0; }
.dos-city-name-link { font-size:.88rem; font-weight:700; color:#3b82f6; text-decoration:none; white-space:nowrap; transition:opacity .15s; }
.dos-city-name-link:hover { opacity:.75; text-decoration:underline; }
.dos-city-lv { font-size:.65rem; color:#475569; background:rgba(255,255,255,.05); padding:1px 6px; border-radius:6px; white-space:nowrap; }
.dos-city-sep { color:rgba(255,255,255,.12); font-size:.8rem; flex-shrink:0; }
.dos-city-icons { display:inline-flex; align-items:center; gap:5px; flex-shrink:0; }
.dos-city-coords { font-family:'Inter',monospace; font-size:.72rem; font-weight:700; color:#ffaa00; background:rgba(255,170,0,.1); padding:2px 8px; border-radius:10px; border:1px solid rgba(255,170,0,.2); box-shadow:0 0 6px rgba(255,170,0,.2); white-space:nowrap; }

/* Resource chips inline */
.dcr-chip { display:inline-flex; align-items:center; gap:3px; background:rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.07); border-radius:8px; padding:2px 6px; }
.dcr-img { width:18px; height:18px; object-fit:contain; }
.dcr-lv { font-size:.65rem; font-weight:700; }

/* ── City row v4 — grid colonne fisse ── */
.dos-city-row {
    display: grid;
    grid-template-columns: 24px 180px 52px 16px 140px 16px 120px 16px 110px;
    align-items: center;
    gap: 0 8px;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.dos-city-row:last-child { border-bottom: none; }
.dos-city-num { font-size:.65rem; color:#475569; font-family:'Inter',sans-serif; }
.dos-city-name-link { font-size:.88rem; font-weight:700; color:#3b82f6; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:opacity .15s; }
.dos-city-name-link:hover { opacity:.75; text-decoration:underline; }
.dos-city-lv { font-size:.62rem; color:#475569; background:rgba(255,255,255,.05); padding:1px 7px; border-radius:6px; text-align:center; }
.dos-city-sep { color:rgba(255,255,255,.1); font-size:.8rem; justify-self:center; }
.dos-island-name { font-size:.78rem; color:#64748b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dos-city-icons { display:inline-flex; align-items:center; gap:5px; }
.dos-city-coords { font-family:'Inter',monospace; font-size:.72rem; font-weight:700; color:#ffaa00; background:rgba(255,170,0,.1); padding:3px 10px; border-radius:10px; border:1px solid rgba(255,170,0,.22); box-shadow:0 0 7px rgba(255,170,0,.2); white-space:nowrap; }

/* ── Modal movimenti v2 ── */
.dos-mov-modal { position:fixed; inset:0; background:rgba(0,0,0,.8); z-index:9999; display:flex; align-items:center; justify-content:center; padding:30px; }
.dos-mov-modal-box { background:#080816; border:1px solid rgba(59,130,246,.2); border-radius:16px; width:100%; max-width:680px; max-height:85vh; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.8); }
.dos-mov-modal-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid rgba(255,255,255,.07); font-family:'Inter',sans-serif; font-size:.78rem; font-weight:700; color:#3b82f6; letter-spacing:1px; flex-shrink:0; }
.dos-mov-modal-body { overflow-y:auto; padding:8px 20px 20px; flex:1; }
.dos-mov-modal-body .dos-mov-row { display:grid; grid-template-columns:130px 90px 1fr 100px; gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.04); }
.dos-mov-modal-body .dos-mov-row:last-child { border-bottom:none; }
.dos-mov-modal-body .dos-mov-date { font-size:.7rem; color:#475569; }
.dos-mov-modal-body .dos-mov-badge { font-size:.65rem; font-weight:700; padding:2px 10px; border-radius:10px; font-family:'Inter',sans-serif; text-align:center; }
.dos-mov-modal-body .dos-mov-city { font-size:.82rem; color:#e2e8f0; font-weight:600; }
.dos-mov-modal-body .dos-mov-coords { font-size:.68rem; font-family:'Inter',sans-serif; color:#ffaa00; background:rgba(255,170,0,.1); padding:2px 8px; border-radius:8px; text-align:center; }
