/* ============================================
   DOMÍNIO URBANO - CAMPANHA (LOBBY)
   ESTILOS COMPLETOS - VERSÃO 4.3.5
   ============================================ */

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

:root {
    --gold: #ffd700;
    --gold-dark: #b8960f;
    --gold-glow: rgba(255, 215, 0, 0.15);
    --bg-primary: #0a0a12;
    --bg-secondary: #0d0d1a;
    --bg-card: rgba(20, 20, 35, 0.6);
    --bg-card-hover: rgba(30, 30, 50, 0.8);
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --text-muted: #555;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-gold: rgba(255, 215, 0, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --radius-card: 12px;
    --radius-btn: 8px;
}

html, body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

body {
    background: var(--bg-primary);
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#app::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/img/background_campanha.jpeg') no-repeat center center / cover;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

#app::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(10, 10, 18, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 0;
    pointer-events: none;
}

.header, .main-content, .bottom-nav {
    position: relative;
    z-index: 1;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.2); border-radius: 2px; }

.hidden { display: none !important; }

/* ============ BOTÕES ============ */
.btn {
    padding: 10px 20px; border: none; border-radius: var(--radius-btn);
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06rem; cursor: pointer; transition: all 0.2s ease;
    font-family: inherit; display: inline-flex; align-items: center;
    justify-content: center; gap: 6px;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: rgba(255, 215, 0, 0.1); border: 1px solid var(--border-gold); color: var(--gold); }
.btn-primary:hover { background: rgba(255, 215, 0, 0.15); }
.btn-full { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #111; font-weight: 800; border: none; }
.btn-gold:hover { transform: scale(1.02); box-shadow: 0 0 25px var(--gold-glow); }
.btn-small { padding: 4px 12px; font-size: 0.55rem; border-radius: 4px; }

/* ============ TELA DE LOGIN ============ */
.login-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(10px); padding: 20px; }
.login-overlay.hidden { display: none; }
.login-container { width: 100%; max-width: 360px; background: rgba(20, 20, 35, 0.8); border: 1px solid var(--border-gold); border-radius: 16px; padding: 24px; backdrop-filter: blur(10px); }
.login-logo { text-align: center; margin-bottom: 20px; }
.login-logo .logo-icon { font-size: 3rem; display: block; }
.login-logo .logo-icon img { width: 48px; height: 48px; }
.login-logo h1 { color: var(--gold); font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1rem; margin-top: 4px; }
.login-logo p { color: var(--text-secondary); font-size: 0.65rem; letter-spacing: 0.2rem; text-transform: uppercase; }
.login-tabs { display: flex; gap: 4px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 4px; margin-bottom: 16px; }
.tab-btn { flex: 1; padding: 8px; background: transparent; border: none; color: var(--text-secondary); font-size: 0.65rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.tab-btn.active { background: rgba(255, 215, 0, 0.12); color: var(--gold); }
.login-form { display: none; flex-direction: column; gap: 12px; }
.login-form.active { display: flex; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { color: var(--text-secondary); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04rem; }
.form-group input { padding: 10px 14px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 8px; color: #fff; font-size: 0.85rem; font-family: inherit; }
.form-group input:focus { outline: none; border-color: rgba(255, 215, 0, 0.3); }
.error-message { color: #e74c3c; font-size: 0.65rem; text-align: center; padding: 8px; background: rgba(231, 76, 60, 0.1); border-radius: 6px; }
.error-message.hidden { display: none; }

/* ============ HEADER ============ */
.header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent); flex-shrink: 0; }
.btn-back { background: none; border: none; color: var(--text-secondary); font-size: 0.6rem; font-weight: 600; cursor: pointer; font-family: inherit; padding: 4px 8px; }
.btn-back:hover { color: #fff; }
.header-title { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06rem; display: flex; align-items: center; gap: 6px; }
.header-title img { width: 20px; height: 20px; vertical-align: middle; }
.header-badge { display: flex; align-items: center; }
.badge-rank { background: rgba(255, 215, 0, 0.1); border: 1px solid var(--border-gold); color: var(--gold); font-size: 0.5rem; font-weight: 700; padding: 2px 10px; border-radius: 12px; }

/* ============ MAIN CONTENT ============ */
.main-content { flex: 1; overflow-y: auto; padding: 0 16px 100px; display: flex; flex-direction: column; gap: 12px; }

/* ============ PERFIL ============ */
.profile-card { background: linear-gradient(135deg, rgba(20, 20, 35, 0.85), rgba(0, 0, 0, 0.5)); border: 1px solid var(--border-gold); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--shadow-card); backdrop-filter: blur(4px); }
.profile-header { display: flex; align-items: center; gap: 12px; }
.profile-avatar { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(255, 215, 0, 0.05); border-radius: 50%; border: 2px solid var(--border-gold); transition: all 0.3s ease; overflow: hidden; flex-shrink: 0; font-size: 2.2rem; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar.equipped { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); animation: avatarPulse 2s ease-in-out infinite; }
@keyframes avatarPulse { 0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); } 50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.4); } }
.personagem-tag { font-size: 0.5rem; color: var(--gold); background: rgba(255, 215, 0, 0.1); padding: 1px 8px; border-radius: 10px; margin-left: 4px; font-weight: 400; display: inline-block; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { color: #fff; font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.profile-faction { color: var(--gold); font-size: 0.6rem; }
.profile-rank { color: var(--text-secondary); font-size: 0.5rem; }
.profile-trophies { text-align: center; flex-shrink: 0; }
.trophy-icon { font-size: 1.2rem; display: block; }
.trophy-value { color: var(--gold); font-size: 1rem; font-weight: 800; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.stat-item { text-align: center; background: rgba(0, 0, 0, 0.3); padding: 6px 4px; border-radius: 6px; }
.stat-value { color: var(--gold); font-size: 0.9rem; font-weight: 700; display: block; }
.stat-label { color: var(--text-secondary); font-size: 0.45rem; text-transform: uppercase; letter-spacing: 0.04rem; }
.xp-bar { margin-top: 10px; background: rgba(0, 0, 0, 0.3); border-radius: 4px; height: 20px; overflow: hidden; position: relative; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #ff8800); transition: width 0.5s ease; border-radius: 4px; }
.xp-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.5rem; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

/* ============ CARD PVP ============ */
.pvp-card { background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 68, 68, 0.10)); border: 2px solid rgba(255, 215, 0, 0.5); border-radius: 16px; padding: 28px 22px; box-shadow: 0 0 50px rgba(255, 215, 0, 0.10), inset 0 0 50px rgba(255, 215, 0, 0.04); position: relative; overflow: hidden; transition: all 0.3s ease; min-height: 340px; }
.pvp-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(255, 215, 0, 0.10), transparent 70%); pointer-events: none; }
.pvp-card:hover { border-color: rgba(255, 215, 0, 0.8); box-shadow: 0 0 70px rgba(255, 215, 0, 0.20); transform: translateY(-3px); }
.pvp-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pvp-icon { font-size: 2.2rem; animation: pvp-pulse 2s infinite; }
@keyframes pvp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.pvp-title { font-size: 1.4rem; font-weight: 800; color: #ffd700; letter-spacing: 0.08rem; flex: 1; }
.pvp-badge { background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 5px 16px; border-radius: 16px; text-transform: uppercase; animation: badge-pulse 1.5s infinite; }
@keyframes badge-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.95); } }
.pvp-status { font-size: 0.65rem; color: #2ecc71; background: rgba(46, 204, 113, 0.18); padding: 5px 14px; border-radius: 14px; font-weight: 600; }
.pvp-rewards { display: flex; justify-content: space-around; background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.reward-item { text-align: center; display: flex; align-items: center; gap: 6px; }
.reward-icon { font-size: 1.4rem; }
.reward-label { font-size: 0.55rem; color: #666; text-transform: uppercase; font-weight: 600; }
.reward-value { font-size: 0.75rem; color: #ffd700; font-weight: 700; }
.pvp-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, #ffd700, #f57c00); border: none; border-radius: 12px; color: #111; font-size: 1.2rem; font-weight: 800; cursor: pointer; transition: all 0.3s ease; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; overflow: hidden; min-height: 60px; }
.pvp-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent); transform: translateX(-100%); animation: btn-shine 3s infinite; }
@keyframes btn-shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pvp-btn:hover { transform: scale(1.03); box-shadow: 0 0 40px rgba(255, 215, 0, 0.4); }
.pvp-btn:active { transform: scale(0.95); }
.pvp-btn .btn-icon { font-size: 1.5rem; }
.pvp-btn .btn-text { font-size: 1.1rem; }
.pvp-btn .btn-sub { font-size: 0.6rem; font-weight: 400; opacity: 0.7; letter-spacing: 0.05rem; }
.pvp-info { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.6rem; color: #666; padding: 0 4px; }
.pvp-info .online-count { color: #2ecc71; font-weight: 600; }
.pvp-info .online-count::before { content: '● '; animation: online-blink 1.5s infinite; }
@keyframes online-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============ CAMPANHA - FASES ============ */
.campanha-container { background: linear-gradient(135deg, rgba(20, 20, 35, 0.85), rgba(0, 0, 0, 0.5)); border: 1px solid var(--border-gold); border-radius: var(--radius-card); padding: 12px 14px; box-shadow: var(--shadow-card); backdrop-filter: blur(4px); }
.campanha-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.campanha-icon { font-size: 1rem; display: flex; align-items: center; }
.campanha-icon img { width: 18px; height: 18px; vertical-align: middle; }
.campanha-label { color: var(--text-secondary); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08rem; text-transform: uppercase; flex: 1; }
.campanha-progresso { color: var(--gold); font-size: 0.6rem; font-weight: 700; background: rgba(255, 215, 0, 0.06); padding: 2px 10px; border-radius: 10px; }
.campanha-fases { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.campanha-fases::-webkit-scrollbar { width: 2px; }
.campanha-fases::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.2); border-radius: 2px; }
.fase-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; transition: all 0.25s ease; }
.fase-item:last-child { margin-bottom: 0; }
.fase-item:hover:not(.fase-locked) { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 215, 0, 0.12); transform: translateX(2px); }
.fase-item.completado { background: rgba(46, 204, 113, 0.04); border-color: rgba(46, 204, 113, 0.08); }
.fase-item.fase-locked { opacity: 0.4; cursor: default; }
.fase-icon { font-size: 1.2rem; min-width: 28px; text-align: center; }
.fase-info { flex: 1; min-width: 0; }
.fase-nome { font-size: 0.65rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fase-descricao { font-size: 0.48rem; color: #666; }
.fase-estrelas { font-size: 0.5rem; color: #ffd700; margin-top: 2px; }
.fase-recompensas { text-align: right; font-size: 0.45rem; color: #666; min-width: 55px; flex-shrink: 0; }
.fase-recompensas span { display: block; line-height: 1.4; }
.fase-recompensas span:first-child { color: var(--gold); }
.fase-btn { background: rgba(255, 215, 0, 0.08); border: 1px solid rgba(255, 215, 0, 0.12); color: var(--gold); padding: 3px 10px; border-radius: 4px; font-size: 0.45rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.fase-btn:hover { background: rgba(255, 215, 0, 0.15); }
.fase-btn.liberado { background: rgba(46, 204, 113, 0.12); border-color: rgba(46, 204, 113, 0.15); color: #2ecc71; }

/* ============ AÇÕES RÁPIDAS ============ */
.quick-actions { display: flex; flex-direction: column; gap: 6px; }
.quick-item { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-card); padding: 10px 14px; transition: all 0.2s ease; cursor: pointer; backdrop-filter: blur(4px); }
.quick-item:hover { background: var(--bg-card-hover); border-color: var(--border-gold); }
.quick-icon { font-size: 1.2rem; display: flex; align-items: center; }
.quick-icon img { width: 24px; height: 24px; }
.quick-label { flex: 1; font-size: 0.65rem; font-weight: 600; color: var(--text-secondary); }
.quick-badge { font-size: 0.55rem; color: var(--gold); font-weight: 700; background: rgba(255, 215, 0, 0.06); padding: 2px 8px; border-radius: 8px; }
.quick-btn { background: rgba(255, 215, 0, 0.08); border: 1px solid var(--border-gold); color: var(--gold); padding: 4px 12px; border-radius: 4px; font-size: 0.5rem; font-weight: 600; cursor: pointer; font-family: inherit; }

/* ============ NAVBAR INFERIOR ============ */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; background: rgba(10, 10, 18, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--border-color); display: flex; justify-content: space-around; padding: 6px 0 env(safe-area-inset-bottom, 10px) 0; z-index: 50; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-muted); font-size: 0.45rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.2s ease; padding: 4px 12px; border-radius: 8px; min-width: 44px; }
.nav-item:hover { color: var(--text-secondary); }
.nav-item.active { color: var(--gold); }
.nav-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.nav-icon img { width: 24px; height: 24px; display: block; opacity: 0.5; transition: opacity 0.3s ease, transform 0.2s ease; }
.nav-item.active .nav-icon img { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5)); }
.nav-item:hover .nav-icon img { opacity: 0.8; }
.nav-label { font-size: 0.4rem; text-transform: uppercase; letter-spacing: 0.04rem; }

/* ============ MODAL ============ */
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 60; backdrop-filter: blur(4px); padding: 20px; }
.modal-overlay.hidden { display: none; }
.modal-content { background: linear-gradient(135deg, #0d0d1a, #111122); border: 1px solid var(--border-gold); border-radius: var(--radius-card); padding: 20px; max-width: 360px; width: 100%; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-title { color: var(--gold); font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; }

/* ============ LOADING ============ */
.loading-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 70; backdrop-filter: blur(4px); }
.loading-overlay.hidden { display: none; }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(255, 215, 0, 0.1); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { margin-top: 12px; color: var(--text-secondary); font-size: 0.7rem; }

/* ============ NOTIFICAÇÃO ============ */
.notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.95); border: 1px solid var(--border-gold); border-radius: 10px; padding: 12px 20px; display: flex; align-items: center; gap: 10px; z-index: 80; backdrop-filter: blur(10px); transition: all 0.3s ease; max-width: 90%; }
.notification.hidden { opacity: 0; transform: translateX(-50%) translateY(-20px); pointer-events: none; }
.notification-icon { font-size: 1.2rem; }
.notification-text { color: #fff; font-size: 0.7rem; }

/* ============ MODOS DE JOGO ============ */
.modos-jogo-container { background: linear-gradient(135deg, rgba(20, 20, 35, 0.85), rgba(0, 0, 0, 0.5)); border: 1px solid var(--border-gold); border-radius: var(--radius-card); padding: 12px 14px; box-shadow: var(--shadow-card); backdrop-filter: blur(4px); margin-top: 12px; }
.modos-jogo-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.modos-jogo-icon { font-size: 1rem; display: flex; align-items: center; }
.modos-jogo-icon img { width: 18px; height: 18px; vertical-align: middle; }
.modos-jogo-label { color: var(--text-secondary); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08rem; text-transform: uppercase; flex: 1; }
.modo-lista { display: flex; flex-direction: column; gap: 8px; }
.modo-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.06); transition: all 0.25s ease; background: rgba(10, 10, 20, 0.5); backdrop-filter: blur(4px); overflow: hidden; }
.modo-card:hover { border-color: rgba(255, 215, 0, 0.3); transform: translateX(3px); box-shadow: 0 4px 16px rgba(255, 215, 0, 0.1); background: rgba(20, 20, 40, 0.7); }
.modo-card-icon { flex-shrink: 0; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(255, 215, 0, 0.05); border-radius: 10px; border: 1px solid rgba(255, 215, 0, 0.1); font-size: 1.3rem; overflow: hidden; }
.modo-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.modo-card-info { flex: 1; min-width: 0; text-align: left; }
.modo-card-nome { color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04rem; margin-bottom: 2px; }
.modo-card-desc { color: #888; font-size: 0.5rem; margin-bottom: 4px; }
.modo-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.modo-badge { background: rgba(255, 255, 255, 0.05); color: #777; font-size: 0.42rem; padding: 2px 7px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); }
.modo-card-arrow { color: rgba(255, 215, 0, 0.3); font-size: 1.2rem; font-weight: 300; flex-shrink: 0; }
.modo-card[data-modo="guerra"] { border-left: 2px solid rgba(255, 107, 107, 0.4); }
.modo-card[data-modo="rapido"] { border-left: 2px solid rgba(52, 152, 219, 0.4); }
.modo-card[data-modo="sobrevivencia"] { border-left: 2px solid rgba(46, 204, 113, 0.4); }
.war-save-badge { position: absolute; top: 8px; right: 30px; background: #2ecc71; color: #fff; font-size: 0.4rem; padding: 2px 6px; border-radius: 8px; font-weight: 600; animation: savePulse 2s infinite; }
@keyframes savePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }

/* ============ SELEÇÃO DE FACÇÃO ============ */
.faccao-selection-section, .tropas-selection-section { background: linear-gradient(135deg, rgba(20, 20, 35, 0.95), rgba(0, 0, 0, 0.9)); border: 1px solid var(--border-gold); border-radius: var(--radius-card); padding: 16px; box-shadow: var(--shadow-card); backdrop-filter: blur(8px); margin-top: 12px; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.faccao-selection-section.hidden, .tropas-selection-section.hidden { display: none !important; }
.faccao-selection-header, .tropas-selection-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 215, 0, 0.1); }
.btn-back-selection { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #aaa; padding: 6px 12px; border-radius: 6px; font-size: 0.55rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.btn-back-selection:hover { border-color: #ffd700; color: #ffd700; }
.faccao-selection-title, .tropas-selection-title { color: #ffd700; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06rem; text-transform: uppercase; }
.faccao-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.faccao-card { position: relative; border-radius: 10px; cursor: pointer; border: 2px solid rgba(255, 255, 255, 0.08); transition: all 0.2s ease; background: rgba(10, 10, 20, 0.6); padding: 10px 6px; text-align: center; backdrop-filter: blur(4px); }
.faccao-card:hover { border-color: rgba(255, 215, 0, 0.4); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15); }
.faccao-card.selected { border-color: #ffd700 !important; box-shadow: 0 0 16px rgba(255, 215, 0, 0.5) !important; background: rgba(255, 215, 0, 0.08); }
.faccao-card.selected::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: #ffd700; color: #111; font-size: 0.55rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.faccao-emoji { font-size: 1.5rem; margin-bottom: 4px; }
.faccao-nome { color: #fff; font-size: 0.48rem; font-weight: 700; letter-spacing: 0.03rem; margin-bottom: 3px; line-height: 1.2; }
.faccao-bonus { color: #ffd700; font-size: 0.42rem; font-weight: 500; margin-bottom: 2px; }
.faccao-income { color: #4caf50; font-size: 0.4rem; font-weight: 600; margin-bottom: 2px; }
.faccao-territory { color: rgba(255, 255, 255, 0.5); font-size: 0.4rem; }
.btn-iniciar-modo { width: 100%; padding: 12px; background: linear-gradient(135deg, #ffd700, #f57c00); border: none; border-radius: 8px; color: #111; font-size: 0.8rem; font-weight: 800; cursor: pointer; font-family: inherit; letter-spacing: 0.06rem; transition: all 0.3s ease; text-transform: uppercase; }
.btn-iniciar-modo:hover:not(:disabled) { transform: scale(1.02); box-shadow: 0 0 30px rgba(255, 215, 0, 0.3); }
.btn-iniciar-modo:disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.5); }

/* ============ SELEÇÃO DE TROPAS ============ */
.tropas-setup { background: rgba(10, 10, 20, 0.5); border: 1px solid rgba(255, 215, 0, 0.15); border-radius: 10px; padding: 14px; margin-bottom: 14px; max-height: 350px; overflow-y: auto; }
.tropas-setup::-webkit-scrollbar { width: 3px; }
.tropas-setup::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.2); border-radius: 2px; }
.tropa-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; font-size: 0.65rem; color: #fff; padding: 4px 0; }
.tropa-controls { display: flex; align-items: center; gap: 6px; }
.tropa-btn { background: rgba(20, 20, 40, 0.8); color: #ffd700; border: 1px solid #555; padding: 3px 12px; border-radius: 4px; cursor: pointer; font-size: 0.7rem; font-weight: bold; transition: all 0.15s; min-width: 28px; font-family: inherit; }
.tropa-btn:hover:not(:disabled) { background: rgba(40, 40, 70, 0.9); border-color: #ffd700; }
.tropa-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.tropa-value { color: #ffd700; font-weight: 700; font-size: 0.85rem; min-width: 24px; text-align: center; }
.tropa-divider { width: 100%; height: 1px; background: rgba(255, 215, 0, 0.12); margin: 8px 0; }
.tropa-info { color: #aaa; font-size: 0.55rem; margin-top: 8px; text-align: center; border-top: 1px solid rgba(255, 215, 0, 0.1); padding-top: 8px; }
.tropa-info span { color: #ffd700; font-weight: 700; }

/* ============ MODAL DE CONFIRMAÇÃO ============ */
.modo-confirm-content { max-width: 340px; }
.modo-confirm-content .modal-body { text-align: center; padding: 16px 8px; }
.modo-confirm-icon { font-size: 3rem; display: block; margin-bottom: 12px; animation: bounceIn 0.5s ease; }
@keyframes bounceIn { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1); opacity: 1; } }
.modo-confirm-nome { color: #ffd700; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.modo-confirm-desc { color: #aaa; font-size: 0.6rem; margin-bottom: 4px; }
.modo-confirm-info { color: #888; font-size: 0.5rem; background: rgba(0, 0, 0, 0.3); padding: 8px 12px; border-radius: 8px; margin-top: 8px; text-align: left; }

/* ============ MODAL DE SAVE ============ */
.save-modal-content { background: linear-gradient(135deg, #0d0d1a 0%, #111122 100%); border: 1px solid rgba(255, 215, 0, 0.25); border-radius: 16px; padding: 20px 18px; width: 85%; max-width: 340px; text-align: center; }
.save-modal-icon { font-size: 2.5rem; margin-bottom: 6px; animation: savePulse 1.5s infinite; }
.save-modal-title { color: #ffd700; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1rem; margin-bottom: 12px; }
.save-info-grid { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
.save-info-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.58rem; }
.save-info-row:last-child { border-bottom: none; }
.save-info-row span:first-child { color: #888; }
.save-info-row span:last-child { color: #ffd700; font-weight: 600; }

/* ============ RESPONSIVO ============ */
@media (max-width: 380px) {
    .pvp-card { padding: 18px 14px; min-height: 280px; }
    .pvp-title { font-size: 1.1rem; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .profile-avatar { width: 44px; height: 44px; }
    .campanha-fases { max-height: 200px; }
    .modo-card { padding: 10px 12px; gap: 8px; }
    .modo-card-icon { width: 36px; height: 36px; }
    .faccao-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .faccao-card { padding: 8px 4px; }
    .faccao-emoji { font-size: 1.2rem; }
    .faccao-nome { font-size: 0.4rem; }
    .tropas-setup { padding: 10px; max-height: 280px; }
}
@media (max-width: 340px) {
    .pvp-card { padding: 14px 10px; min-height: 240px; }
    .faccao-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 420px) {
    #app { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); box-shadow: 0 0 60px rgba(0, 0, 0, 0.5); }
    .bottom-nav { max-width: 420px; }
}