:root {
    --m2-bg-main: #0a0f1d;
    --m2-card-bg: #111827;
    --m2-card-border: #1f293d;
    --m2-card-hover: #1e293b;
    --m2-orange-primary: #e67e22;
    --m2-orange-glow: #d35400;
    --m2-orange-dark: #b03a2e;
    --m2-gold: #fbbf24;
    --m2-text-muted: #94a3b8;
    --m2-font-heading: 'Cinzel', serif;
    --m2-font-body: 'Rajdhani', sans-serif;
    --m2-font-alt: 'Montserrat', sans-serif;
}

body {
    background-color: var(--m2-bg-main);
    color: #f1f5f9;
    font-family: var(--m2-font-body);
    font-size: 1.05rem;
    min-height: 100vh;
    /* Padrão sutil de pontos/grid escuro */
    background-image: 
        radial-gradient(rgba(230, 126, 34, 0.12) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Tipografia Personalizada */
h1, h2, h3, h4, h5, .brand-font {
    font-family: var(--m2-font-heading);
    letter-spacing: 0.5px;
}

/* Navbar Customizada */
.navbar-custom {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 0;
    z-index: 1030;
}

.navbar-brand {
    font-family: var(--m2-font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff !important;
    text-transform: uppercase;
}

.navbar-brand span {
    color: var(--m2-orange-primary);
    text-shadow: 0 0 12px rgba(230, 126, 34, 0.6);
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    margin: 0 0.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--m2-orange-primary) !important;
    text-shadow: 0 0 8px rgba(230, 126, 34, 0.5);
}

/* Botões Estilo Fogo / Aço Metin2 */
.btn-m2-primary {
    background: linear-gradient(135deg, var(--m2-orange-primary) 0%, var(--m2-orange-glow) 100%);
    color: #fff !important;
    font-weight: 700;
    border: 1px solid var(--m2-orange-primary);
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.35);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-m2-primary:hover {
    background: linear-gradient(135deg, #f39c12 0%, var(--m2-orange-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(230, 126, 34, 0.6);
}

.btn-m2-secondary {
    background: rgba(31, 41, 61, 0.6);
    color: #e2e8f0 !important;
    font-weight: 700;
    border: 1px solid var(--m2-card-border);
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-m2-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--m2-orange-primary);
    color: #fff !important;
}

/* Cards Estilizados */
.m2-card {
    background-color: var(--m2-card-bg);
    border: 1px solid var(--m2-card-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.m2-card:hover {
    border-color: rgba(230, 126, 34, 0.4);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 18px rgba(230, 126, 34, 0.15);
}

/* Hero Preview Container */
.hero-preview-box {
    position: relative;
    background: var(--m2-card-bg);
    border: 1px solid var(--m2-card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
}

.play-btn-overlay {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(230, 126, 34, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 0 30px rgba(230, 126, 34, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding-left: 4px;
}

.play-btn-overlay:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--m2-orange-primary);
}

/* Status Badges */
.status-badge-online {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Forms Personalizados */
.form-control-m2, .form-select-m2 {
    background-color: rgba(10, 15, 29, 0.8);
    border: 1px solid var(--m2-card-border);
    color: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--m2-font-alt);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-m2:focus, .form-select-m2:focus {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: var(--m2-orange-primary);
    box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.2);
    color: #fff;
}

.form-label-m2 {
    font-family: var(--m2-font-body);
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.input-group-text-m2 {
    background-color: rgba(31, 41, 61, 0.6);
    border: 1px solid var(--m2-card-border);
    color: var(--m2-orange-primary);
    border-radius: 8px 0 0 8px;
}

/* Seção de Seleção de Reino no Registro */
.kingdom-select-card {
    border: 2px solid var(--m2-card-border);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.8rem;
    text-align: center;
}

.kingdom-select-card:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.8);
}

.kingdom-select-card.active-shinsoo {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.kingdom-select-card.active-chunjo {
    border-color: #eab308;
    background: rgba(234, 179, 8, 0.15);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
}

.kingdom-select-card.active-jinno {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Itens de Recompensa */
.reward-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reward-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(230, 126, 34, 0.2);
    border: 1px solid var(--m2-orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--m2-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Tab Switcher entre Registro e Login */
.auth-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: var(--m2-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab-btn.active {
    color: var(--m2-orange-primary);
    border-bottom-color: var(--m2-orange-primary);
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.4);
}

/* Tabelas Estilizadas */
.table-dark-custom {
    --bs-table-bg: transparent;
    --bs-table-color: #cbd5e1;
    margin-bottom: 0;
}

.table-dark-custom th {
    color: var(--m2-gold);
    font-family: var(--m2-font-heading);
    border-bottom: 2px solid var(--m2-card-border);
    font-weight: 700;
}

.table-dark-custom td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    font-weight: 600;
}

/* Seção Reinos Status */
.kingdom-card {
    border-left: 4px solid transparent;
}
.kingdom-shinsoo { border-left-color: #ef4444; }
.kingdom-chunjo { border-left-color: #eab308; }
.kingdom-jinno { border-left-color: #3b82f6; }

/* Animação Smooth View Switcher */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.35 ease-in-out;
}

.page-view.active-view {
    display: block;
    opacity: 1;
}

/* Footer Custom */
footer {
    background-color: #070a14;
    border-top: 1px solid var(--m2-card-border);
    color: var(--m2-text-muted);
    margin-top: auto;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--m2-card-bg);
    border: 1px solid var(--m2-card-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--m2-orange-primary);
    color: #fff;
    transform: translateY(-3px);
}
/* Estilo dos campos de texto (Input) */
.form-control, .form-select {
    background-color: rgba(12, 19, 34, 0.85) !important;
    border: 1px solid rgba(224, 86, 36, 0.3) !important;
    
    /* 1. Altere esta cor para mudar o texto que o utilizador digita */
    color: #f1f5f9 !important; /* Cor clara para fácil leitura */
    
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

/* Foco no campo quando o utilizador clica */
.form-control:focus, .form-select:focus {
    background-color: rgba(16, 24, 42, 0.95) !important;
    border-color: #e05624 !important;
    box-shadow: 0 0 12px rgba(224, 86, 36, 0.3) !important;
    
    /* Cor do texto quando o campo está ativo */
    color: #ffffff !important; 
}

/* 2. Altere esta regra para mudar a cor do texto de fundo (Placeholder) */
.form-control::placeholder {
    color: #94a3b8 !important; /* Opções de cores mais claras abaixo */
    opacity: 1; /* Garante que o navegador aplique a cor totalmente */
}
.text-muted{
    color: #fff !important;
}