@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

/* RESET */
* {
    box-sizing: border-box;
    outline: none;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-image: url(bg/2.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0b0b0b;
    color: #e2e2e2;
    overflow-x: hidden;
}

#video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.6; /* Ajusta la opacidad según prefieras */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- LOGO --- */
.main-logo {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.main-logo img {
    max-width: 180px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.8));
    transition: transform 0.3s ease;
}

.main-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(186, 85, 211, 1));
}

/* ============================================================== */
/* GLASSMORPHISM UTILS */
/* ============================================================== */
.glass {
    background: rgba(20, 15, 35, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
}

.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* --- LOGIN SCREEN --- */
.login-container {
    width: 900px;
    height: 550px;
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.login-art {
    flex: 1;
    background: url('https://i.imgur.com/0D347b6.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.login-art::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 15, 35, 0.95) 0%, rgba(20, 15, 35, 0.1) 100%);
}

.login-form-area {
    width: 450px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(20, 15, 35, 0.9);
}

.login-title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-subtitle {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 35px;
}

.login-input-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.login-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: rgba(30, 20, 45, 1);
    color: #d8b4fe;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.login-input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.login-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

/* --- BOTONES MODERNOS --- */
.btn-purple {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #7e22ce, #a855f7);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-purple::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.btn-purple:hover::before {
    left: 100%;
}

.btn-purple:disabled {
    background: #555;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.btn-gray {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-gray:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- PANEL GENERAL MAIN --- */
.panel-wrapper {
    width: 1100px;
    min-height: 700px;
    max-height: 90vh;
    display: flex;
    padding: 25px;
    gap: 25px;
}

/* Sidebar */
.panel-sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-header {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.5px;
}

.user-header i {
    color: #a855f7;
    margin-right: 5px;
}

.balance-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.balance-text {
    color: #4ade80;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
    margin-top: 5px;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    padding: 14px 18px;
    color: #ccc;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    text-decoration: none;
}

.menu-item a {
    color: inherit;
    text-decoration: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 22px;
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2) 0%, transparent 100%);
    color: #fff;
    border-left: 4px solid #a855f7;
    font-weight: 700;
}

/* Contenido Principal */
.panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 15px;
}

.content-header {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.content-header i {
    font-size: 20px;
    color: #a855f7;
}

/* Grids e Box de Info */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.box-title {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    font-weight: 600;
    font-size: 13px;
    color: #e2e2e2;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px 12px 0 0;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 13px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-row span:last-child {
    color: #fff;
    font-weight: 500;
}

.data-row:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.data-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- SHOP ESTILOS --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.shop-card {
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.item-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #a855f7;
}

.item-icon img {
    max-width: 80%;
    max-height: 80%;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}

.item-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.item-desc {
    font-size: 11px;
    color: #999;
    min-height: 32px;
    line-height: 1.4;
}

.item-price {
    color: #facc15;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

/* TABLAS WEB (Ranking, Donate) */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.payment-table th {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 14px;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.payment-table td {
    padding: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.donate-select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.donate-select option {
    background: #1a1a1a;
    color: #fff;
}

.total-price {
    color: #4ade80;
    font-weight: 700;
    font-size: 18px;
}

/* CHARACTERS SELECTOR */
.char-list {
    display: flex;
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.char-thumb {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: 0.3s;
}

.char-thumb.active {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

.char-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.3s;
}

.char-thumb:hover img {
    opacity: 1;
}

.hidden {
    display: none;
}

.msg-alert {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid transparent;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.success {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}