/* ============================================================
   ABILOLATION SKINS - CSS COMPLETO (FIX DE TAMANHO E LAYOUT)
   ============================================================ */

:root {
    --bg-dark: #0b1421;
    --bg-panel: #111b29;
    --bg-card: #152030;
    --text-main: #ffffff;
    --text-muted: #6b798f;
    --accent-green: #00e08f;
    --accent-blue: #1b283d;
    --steam-blue: #00c8ff;
}

body { 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden;
}

/* NAVBAR - FIXA NO TOPO */
.navbar { 
    background-color: var(--bg-panel); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 40px; 
    height: 70px;
    border-bottom: 1px solid var(--accent-blue); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-weight: 900; font-size: 22px; color: #4CAF50; letter-spacing: 1px; }
.logo span { color: var(--steam-blue); }

.user-area { display: flex; align-items: center; gap: 15px; }

.balance { 
    background: rgba(0, 224, 143, 0.1); 
    color: var(--accent-green); 
    padding: 6px 15px; 
    border-radius: 4px; 
    font-weight: bold; 
    border: 1px solid rgba(0, 224, 143, 0.3);
}

.btn-steam img { 
    width: 140px; 
    cursor: pointer; 
    display: block; 
    transition: 0.3s;
}

.btn-steam img:hover { opacity: 0.8; }

/* CONTAINER PRINCIPAL */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 20px; 
    text-align: center; 
}

/* ==========================================
   INDEX (VITRINE DE CAIXAS) - ONDE ESTAVA O BUG
   ========================================== */

.cases-grid { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    margin-top: 40px; 
}

.case-card { 
    background: var(--bg-panel); 
    padding: 25px; 
    border-radius: 12px; 
    width: 260px; /* Largura travada do card */
    text-decoration: none; 
    color: white; 
    border: 1px solid var(--accent-blue); 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--steam-blue);
    background: #1a273a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* FIX DA IMAGEM GIGANTE */
.case-card img { 
    width: 100%;           /* Ocupa a largura do card interno */
    max-width: 200px;      /* Mas não passa de 200px */
    height: 180px;         /* Altura fixa para alinhar todas */
    object-fit: contain;   /* Não distorce a imagem do cachorro */
    margin-bottom: 15px; 
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
}

.case-card h3 { 
    font-size: 18px; 
    margin: 10px 0 5px 0; 
    color: #fff;
}

.case-price { 
    color: var(--accent-green); 
    font-weight: bold; 
    font-size: 16px; 
}

/* ==========================================
   ROLETA E CONTEÚDO DA CAIXA (caixa.php)
   ========================================== */

.case-window { 
    width: 100%;
    max-width: 900px; 
    height: 200px; 
    margin: 30px auto; 
    border: 2px solid var(--accent-blue); 
    background: #0d1521; 
    overflow: hidden; 
    position: relative; 
    border-radius: 10px;
}

.case-window::before { 
    content: ''; 
    position: absolute; 
    top: 0; bottom: 0; left: 50%; 
    width: 3px; 
    background: var(--steam-blue); 
    z-index: 10; 
    transform: translateX(-50%); 
    box-shadow: 0 0 15px var(--steam-blue); 
}

.roulette-container { 
    display: flex; 
    height: 100%; 
    will-change: transform;
}

.skin-item { 
    width: 160px; 
    height: 100%; 
    flex-shrink: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    border-right: 1px solid rgba(255,255,255,0.05); 
    background: linear-gradient(0deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
}

.skin-item img { width: 120px; height: 90px; object-fit: contain; }

/* GRADE DO CONTEÚDO (CATÁLOGO) */
.box-content-title { 
    margin: 50px 0 20px; 
    font-size: 20px; 
    text-transform: uppercase; 
    color: var(--text-muted); 
    text-align: left;
    border-bottom: 1px solid var(--accent-blue);
    padding-bottom: 10px;
}

.catalog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
    padding-bottom: 50px;
}

.catalog-item { 
    background: var(--bg-panel); 
    border-radius: 8px; 
    padding: 15px; 
    border-top: 4px solid #4b69ff; 
    text-align: center;
    transition: 0.2s;
}

.catalog-item:hover { background: #1a273a; }

.catalog-item img { width: 100%; height: 100px; object-fit: contain; }

.weapon-name { font-weight: bold; font-size: 14px; margin-top: 10px; color: #fff; }
.skin-name { font-size: 12px; color: var(--text-muted); }
.probability { font-size: 11px; color: var(--accent-green); margin-bottom: 5px; font-weight: bold; }

.btn-open { 
    background: var(--steam-blue); 
    color: #000; 
    border: none; 
    padding: 18px 60px; 
    font-weight: 800; 
    border-radius: 5px; 
    cursor: pointer; 
    text-transform: uppercase;
    font-size: 16px;
    transition: 0.3s;
}

.btn-open:hover { transform: scale(1.05); filter: brightness(1.2); }
.btn-open:disabled { background: #333; color: #666; cursor: not-allowed; }
/* Paleta de Cores Abilolation Skins */
:root {
    --bg-dark: #0b1421;
    --bg-panel: #111b29;
    --bg-card: #152030;
    --text-main: #ffffff;
    --text-muted: #6b798f;
    --accent-green: #00e08f;
    --accent-blue: #1b283d;
    --steam-blue: #00c8ff;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-dark); color: var(--text-main); margin: 0; padding: 0; }

/* NAVBAR COMPLETA */
.navbar { 
    background-color: var(--bg-panel); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 40px; 
    height: 70px;
    border-bottom: 1px solid var(--accent-blue); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-weight: 900; font-size: 22px; color: #4CAF50; letter-spacing: 1px; }
.logo span { color: var(--steam-blue); }

.user-panel { display: flex; align-items: center; }

/* ÁREA DO PERFIL (LOGADO) - IGUAL AO CSGOSKINS */
.profile-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Avatar Redondo */
.avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}
.steam-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Área do ID e Sair */
.id-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.steam-id {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.btn-logout {
    font-size: 10px;
    color: #ff4b4b;
    text-decoration: none;
    font-weight: 600;
}

/* Área do Saldo */
.balance-area {
    display: flex;
    align-items: center;
    background-color: var(--accent-blue);
    border-radius: 4px;
    padding: 2px;
}
.balance-text {
    color: var(--accent-green);
    font-weight: bold;
    font-size: 13px;
    padding: 0 10px;
}
.btn-deposit {
    background-color: var(--accent-green);
    color: #000;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    font-weight: 900;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-deposit:hover { opacity: 0.9; }

/* Botão Steam (Não Logado) */
.btn-steam img { 
    width: 150px; 
    transition: 0.3s; 
    cursor: pointer; 
}
.btn-steam img:hover { opacity: 0.8; }