/* ==========================================================================
   MU ONLINE LAUNCHER - DARK RED ULTIMATE THEME
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Visitor One';
    font-style: normal;
    font-weight: normal;
    src: local('Visitor Two'), url('../fonts/visitor1.ttf') format('truetype');
}

@font-face {
    font-family: 'Visitor Two';
    font-style: normal;
    font-weight: normal;
    src: local('Visitor Two'), url('../fonts/visitor2.ttf') format('truetype');
}

body {
    background: transparent;
    overflow: hidden;
    user-select: none;
    font-family: 'Rajdhani', 'Open Sans', sans-serif;
    color: #e5d0d2;
}

/* Base Launcher Container */
.launcher {
    width: 452px;
    height: 410px;
    background: linear-gradient(180deg, #160406 0%, #0c0203 70%, #050102 100%);
    border: 1px solid #5a1017;
    border-radius: 6px;
    position: relative;
    -webkit-app-region: drag;
    box-shadow: 
        0 0 25px rgba(220, 20, 40, 0.2),
        inset 0 1px 0 rgba(255, 90, 100, 0.25),
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        0 15px 35px rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

/* Header Decorativo */
.launcher-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    background: linear-gradient(180deg, rgba(74, 13, 19, 0.4) 0%, transparent 100%);
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #851c24);
}
.header-line.right {
    background: linear-gradient(90deg, #851c24, transparent);
}

.launcher .title {
    color: #ff3344;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0 12px;
    text-shadow: 
        0 0 8px rgba(255, 30, 50, 0.8),
        0 0 20px rgba(255, 0, 0, 0.4);
}

/* Imagem / Banner */
.launcher .img {
    width: 432px;
    height: 295px;
    margin: 0 auto;
    position: relative;
    border: 1px solid #3d0a0f;
    border-radius: 4px;
    background: #000;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.launcher .img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(108%) saturate(115%);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 40%, rgba(10, 1, 2, 0.75) 100%);
}

/* Barra de Progresso Flutuante estilo HUD */
.launcher .progress {
    width: 416px;
    position: absolute;
    bottom: 86px;
    left: 18px;
    background: rgba(12, 2, 4, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(130, 25, 35, 0.6);
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 100, 100, 0.15);
    z-index: 10;
}

.launcher .progress .progress-group {
    margin-bottom: 6px;
}
.launcher .progress .progress-group:last-child {
    margin-bottom: 0;
}

.launcher .progress .progress-group .title {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
    color: #e5b3b7;
}

.step-badge {
    background: #4a0d13;
    border: 1px solid #851c24;
    color: #ff6b77;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 6px;
    font-weight: 700;
}
.step-badge.inst {
    background: #36070b;
    border-color: #63141b;
    color: #ff949d;
}

.label-text {
    color: #f1cfd2;
}

.detail-info {
    font-size: 10px;
    color: #9e7a7e;
    font-family: 'Open Sans', sans-serif;
}

.launcher .progress .progress-group .title .sp {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ff3344;
    box-shadow: 0 0 5px #ff3344;
    margin: 0 6px;
}

.launcher .progress-group .progress-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.launcher .progress-group .progressbar {
    flex: 1;
    height: 12px;
    background: #080102;
    border: 1px solid #4a1017;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.9);
}

.launcher .progress-group .progressbar .progress-s {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Animação de Brilho Dinâmico na Barra */
.launcher .progress-group .progressbar .progress-s .progress-a {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #700a12 0%, #c41c2a 50%, #ff384c 100%);
    box-shadow: 0 0 10px rgba(255, 56, 76, 0.6);
    position: absolute;
    transition: width 0.2s ease-out;
}

.launcher .progress-group .progressbar .progress-s .progress-a::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: barShimmer 1.8s infinite;
}

@keyframes barShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.launcher .progress-group .percentual {
    font-size: 12px;
    font-weight: 700;
    color: #ff6b77;
    width: 38px;
    text-align: right;
    text-shadow: 0 0 6px rgba(255, 80, 90, 0.5);
}

/* Server Status */
.server-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: flicker 2s infinite ease-in-out;
}

.launcher .status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #bfa3a6;
    text-shadow: 0 1px 2px #000;
}

.launcher .status .offline {
    color: #ef4444;
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}
.launcher .status .online {
    color: #22c55e;
    text-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

/* Botões do Launcher */
.launcher .buttons,
.launcher .buttons-end {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 0 10px;
}

.launcher .buttons li,
.launcher .buttons-end li {
    list-style: none;
    flex: 1;
    max-width: 98px;
    height: 32px;
    background: linear-gradient(180deg, #2a070b 0%, #140204 100%);
    border: 1px solid #6b151d;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-app-region: no-drag;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 120, 120, 0.15);
    position: relative;
    overflow: hidden;
}

.launcher .buttons li span,
.launcher .buttons-end li span {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f1cfd2;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #000;
    transition: all 0.2s ease;
}

.launcher .buttons li:hover,
.launcher .buttons-end li:hover {
    background: linear-gradient(180deg, #4d0d14 0%, #290408 100%);
    border-color: #b91c2b;
    box-shadow: 
        0 0 12px rgba(185, 28, 43, 0.5),
        inset 0 1px 0 rgba(255, 150, 150, 0.3);
    transform: translateY(-1px);
}

.launcher .buttons li:hover span,
.launcher .buttons-end li:hover span {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 100, 100, 0.8);
}

.launcher .buttons li:active,
.launcher .buttons-end li:active {
    transform: translateY(1px);
    background: #0f0103;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

/* Botão Principal de Conectar */
.launcher .buttons #start {
    background: linear-gradient(180deg, #99121f 0%, #45040a 100%);
    border-color: #e02438;
    box-shadow: 
        0 0 12px rgba(224, 36, 56, 0.35),
        inset 0 1px 0 rgba(255, 180, 180, 0.35);
}

.launcher .buttons #start span {
    color: #fff;
    font-weight: 900;
}

.launcher .buttons #start:hover {
    background: linear-gradient(180deg, #c41829 0%, #610710 100%);
    border-color: #ff384c;
    box-shadow: 0 0 18px rgba(255, 56, 76, 0.7);
}

.launcher .buttons #start.gc-locked {
    pointer-events: none;
    filter: grayscale(90%) brightness(0.4);
    box-shadow: none;
    border-color: #330b0f;
}

/* Painel de Configurações (Settings) */
.launcher .settings {
    width: 434px;
    height: 295px;
    position: absolute;
    top: 32px;
    left: 9px;
    background: rgba(13, 2, 4, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #5a1017;
    border-radius: 4px;
    padding: 10px 14px;
    box-sizing: border-box;
    display: none;
    overflow-y: auto;
    z-index: 20;
}

/* Scrollbar Customizada */
.launcher .settings::-webkit-scrollbar {
    width: 4px;
}
.launcher .settings::-webkit-scrollbar-track {
    background: #120204;
}
.launcher .settings::-webkit-scrollbar-thumb {
    background: #6b151d;
    border-radius: 2px;
}

.settings-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #ff3b4d;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(255, 59, 77, 0.5);
}

/* Cards das Opções */
.launcher .settings .card {
    background: rgba(30, 5, 8, 0.65);
    border: 1px solid rgba(95, 17, 25, 0.6);
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 7px;
    -webkit-app-region: no-drag;
}

.launcher .settings .form-group label.label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #dfa6aa;
    display: block;
    margin-bottom: 4px;
    text-align: center;
}

.launcher .settings .row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Inputs de Texto */
.launcher .settings input[type="text"] {
    width: 180px;
    height: 24px;
    background: #0a0102;
    border: 1px solid #6b151d;
    border-radius: 3px;
    outline: none;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    margin: 0 auto;
    display: block;
    transition: all 0.2s ease;
}

.launcher .settings input[type="text"]:focus {
    border-color: #e02438;
    box-shadow: 0 0 8px rgba(224, 36, 56, 0.5);
    background: #140204;
}

/* Selects */
.select-wrapper {
    position: relative;
}

.launcher .settings select {
    width: 140px;
    height: 24px;
    background: #0a0102;
    border: 1px solid #6b151d;
    border-radius: 3px;
    outline: none;
    color: #f1cfd2;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    cursor: pointer;
    transition: border 0.2s ease;
}

.launcher .settings select:focus {
    border-color: #e02438;
}

/* Checkboxes Customizados */
.launcher .settings .container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 22px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #e5b3b7;
    user-select: none;
    height: 20px;
}

.launcher .settings input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.launcher .settings .checkbox {
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 14px;
    background: #080102;
    border: 1px solid #6b151d;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.launcher .settings .container:hover .checkbox {
    border-color: #ff3344;
    box-shadow: 0 0 6px rgba(255, 51, 68, 0.4);
}

.launcher .settings input[type="checkbox"]:checked ~ .checkbox {
    background: #800f15;
    border-color: #ff384c;
    box-shadow: 0 0 8px rgba(255, 56, 76, 0.5);
}

.launcher .settings .checkbox::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.launcher .settings input[type="checkbox"]:checked ~ .checkbox::after {
    display: block;
}