/* Etiqueta de tipo no topo do card (Faca, Luva, Agente, Música) */
.card-tipo {
    display: block;
    margin-bottom: 4px;
    color: var(--lado-cor, var(--accent));
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Quando o item é "Default" e não tem imagem */
.skin-image-vazio {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.select optgroup {
    background: #151920;
    color: var(--muted);
    font-style: normal;
}

/* =========================
   POPUP DO SETTINGS (maior)
   ========================= */

.modal-dialog.modal-skin {
    max-width: 800px;
}

.modal-skin .modal-header {
    padding: 22px 32px;
}

.modal-skin .modal-header .item-name {
    font-size: 17px;
}

.modal-skin .modal-body {
    padding: 30px 32px;
}

.modal-skin .modal-footer {
    padding: 18px 32px;
}

.modal-skin label {
    font-size: 12px;
}

.modal-skin .form-control,
.modal-skin .form-select {
    min-height: 44px;
    font-size: 13px;
}

.modal-skin .form-text {
    margin-top: 6px;
    font-size: 12px;
}

.modal-skin .campo-label-extra {
    margin-top: 20px;
}

/* campo à esquerda, vídeo de ajuda à direita */
.campo-com-video {
    --video-ajuda: 220px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.campo-com-video + .campo-com-video {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.campo-texto {
    flex: 1;
    min-width: 0;
}

/* vídeo (caixa quadrada) + legenda embaixo */
.campo-midia {
    flex: 0 0 auto;
    width: min(var(--video-ajuda), 100%);
}

.campo-legenda {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .04em;
    text-align: center;
    opacity: .75;
}

.campo-video {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    background: #0e1115;
}

.campo-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 560px) {
    .modal-skin .modal-header,
    .modal-skin .modal-body,
    .modal-skin .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .campo-com-video {
        flex-direction: column;
        gap: 16px;
    }
}

/* =========================
   BOTÃO "VOLTAR AO SITE"
   ========================= */

/* Quando estiver dentro da tela de login */
.login-botoes .btn-voltar {
    --escala: 1;
    position: static;
    z-index: auto;
    white-space: nowrap;
    transform: scale(var(--escala));
    transform-origin: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.login-botoes .btn-voltar:hover {
    transform: scale(var(--escala)) translateY(-2px);
}

/* Quando estiver no cabeçalho da página logada */
.bg-primary .btn-voltar {
    --escala: 1;
    position: fixed;
    top: 18px;
    left: 6vw;
    z-index: 1030;
    white-space: nowrap;
    transform: scale(var(--escala));
    transform-origin: top left;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
}

.bg-primary .btn-voltar:hover {
    transform: scale(var(--escala)) translateY(-2px);
}

@media (max-width: 900px) {
    .bg-primary .btn-voltar {
        left: 5vw;
    }
}

.modal-dialog.modal-skin {
	max-width: 1100px;
	width: calc(100% - 1rem);
}

.modal-3col {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 260px;
	gap: 16px;
	align-items: stretch;
}

.modal-bloco {
	border: 1px solid var(--bs-border-color);
	border-radius: 12px;
	padding: 16px;
	background: var(--bs-tertiary-bg);
}

.bloco-skin {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 12px;
}

.bloco-skin-nome {
	margin: 0;
	font-weight: 700;
}

.bloco-skin-img {
	width: 100%;
	max-height: 200px;
	object-fit: contain;
}

.bloco-controles .form-group + .form-group {
	margin-top: 16px;
}

.bloco-ajuda {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bloco-ajuda .campo-midia {
	width: 100%;
}

.campo-midia-titulo {
	display: block;
	margin-bottom: 6px;
	font-size: .85rem;
}

@media (max-width: 900px) {
	.modal-3col {
		grid-template-columns: 1fr;
	}
}

.seed-topo {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.seed-topo label {
	margin: 0;
}

.btn-aleatorio {
	margin-left: auto;
	flex-shrink: 0;
}

.picker-dialog {
	max-width: 1200px;
	width: calc(100% - 1rem);
}

.picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.picker-busca {
	max-width: 260px;
}

.picker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

.picker-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--bs-border-color);
	border-radius: 12px;
	background: var(--bs-tertiary-bg);
	color: inherit;
	cursor: pointer;
	transition: transform .12s ease, border-color .12s ease;
}

.picker-item:hover {
	transform: translateY(-2px);
	border-color: var(--bs-primary);
}

.picker-item.selecionada {
	border-color: var(--bs-danger);
	box-shadow: 0 0 0 2px var(--bs-danger);
}

.picker-nome {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.4em;
	font-size: .8rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
}

.picker-img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
}

.picker-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

@media (max-width: 600px) {
	.picker-header { flex-direction: column; align-items: stretch; }
	.picker-busca { max-width: none; }
	.picker-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

.picker-item {
	content-visibility: auto;
	contain-intrinsic-size: 170px 190px;
}

.picker-vazio {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 1px dashed var(--bs-border-color);
	border-radius: 8px;
	font-size: .8rem;
	opacity: .7;
}

/* =========================
   NOVO: botões lado a lado no card (faca: Modelo | Skins | Modificar, luva: Modelo e Skins | Modificar)
   ========================= */

.botoes-card {
	display: flex;
	gap: 6px;
}

.botoes-card .btn {
	flex: 1 1 0;
	min-width: 0;
	padding: .4rem .25rem;
	font-size: .75rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* =========================
   NOVO: categorias dentro da grade (luvas: Sport, Specialist...)
   ========================= */

.picker-grupo {
	grid-column: 1 / -1;
	margin-top: 10px;
	padding-top: 16px;
	border-top: 2px solid var(--bs-border-color);
	font-size: .95rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.picker-grupo:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* =========================================================
   Tela para usuário não logado
   ========================================================= */

.login-page {
	min-height: calc(100vh - 100px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

.login-box {
	width: min(620px, 100%);
	padding: 40px;
	border-radius: 12px;
	background: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
	text-align: center;
}

.login-content h2 {
	margin-bottom: 25px;
	font-weight: 700;
}

.login-content p {
	margin: 0 auto 16px;
	max-width: 520px;
	line-height: 1.6;
	color: var(--bs-secondary-color);
}

.login-content .login-aviso {
	margin-top: 25px;
	margin-bottom: 0;
	padding: 15px 18px;
	border-radius: 8px;
	background: rgba(255, 153, 0, 0.08);
	border: 1px solid rgba(255, 153, 0, 0.25);
	color: var(--bs-body-color);
}

.login-botoes {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
}

.login-botoes .btn {
	min-width: 150px;
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.login-botoes img {
	height: 40px;
	width: auto;
}

@media (max-width: 576px) {
	.login-box {
		padding: 30px 20px;
	}

	.login-botoes {
		flex-direction: column;
	}

	.login-botoes .btn {
		width: 100%;
	}
}

.btn-entrar-server {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    text-decoration: none;
}
/* =========================
   VÍDEO DE FUNDO - LOGIN
   ========================= */
.login-video-bg {
    position: fixed;
    inset: -20px;

    width: calc(100% + 40px);
    height: calc(100% + 40px);

    object-fit: cover;

    filter: blur(8px) brightness(0.45);
    opacity: 0.8;

    pointer-events: none;
    user-select: none;

    z-index: 0;
}
.login-page {
    position: relative;
    z-index: 1;
}

.login-box {
    position: relative;
    z-index: 2;
}
.bg-primary {
    position: relative;
    z-index: 10;
}

.login-seguranca {
	font-size: 0.75rem;
	line-height: 1.4;
	opacity: 0.7;
	text-align: center;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.steam-nome {
    margin-left: 15px;
    margin-right: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    vertical-align: middle;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: #bb2d3b;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.user-status {
    padding: 7px 10px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.user-status strong {
    color: var(--text);
}

.btn-entrar-server {
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s ease;
    transform: none !important;
}

.btn-entrar-server:hover {
    border-color: #ff9900;
    transform: none !important;
}

.btn-danger:hover {
    transform: none !important;
    border-color: #ff9900;
    box-shadow: none !important;
}


.bg-primary h2 {
    position: relative;
    display: flex;
    align-items: center;
}

.textoskins {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.faixa-lados {
    display: flex;
    width: 100%;
}

.faixa-lados img {
    width: 50%;
    height: auto;
    display: block;
}