:root {
    --page-bg-url: none;
    --accent-primary: #7c4dff;
    --accent-glow: rgba(124, 77, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-bg-premium: rgba(15, 15, 25, 0.65);
    --table-bg-dark: rgba(15, 15, 25, 0.4);
    --text-dim: rgba(255, 255, 255, 0.65);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-dark: #0a0a0f;
    --sidebar-bg: rgba(10, 10, 15, 0.85);
    --accent-secondary: #00e5ff;
    --text-main: #ffffff;
    --neon-shadow: 0 0 25px rgba(124, 77, 255, 0.3);
    --glow-purple: 0 0 20px rgba(124, 77, 255, 0.2);
}

/* Nav visibility — controlled by classes set on <html> by inline head script */
#btn-acceder,
#btn-registro-nav,
#btn-logout,
#cat-admin,
#cat-cuenta,
#cat-trabajo,
#link-profile {
    display: none;
}

html.nav-guest #btn-acceder,
html.nav-guest #btn-registro-nav {
    display: flex !important;
}

html.nav-logged-in #btn-logout {
    display: flex !important;
}

html.nav-logged-in #link-profile {
    display: flex !important;
}

html.nav-logged-in #cat-cuenta {
    display: block !important;
}

html.nav-admin #cat-admin {
    display: block !important;
}

html.nav-trabajo #cat-trabajo {
    display: block !important;
}

/* Circular Profile Avatar */
.profile-avatar-circle {
    display: flex;
    justify-content: center;
}

.avatar-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: transparent;
    background-image: none;
    background-size: 108%;
    background-position: center 33%;
    background-repeat: no-repeat;
    border: 3px solid rgba(120, 80, 220, 0.85);
    box-shadow: 0 0 20px rgba(95, 55, 204, 0.4), inset 0 0 28px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0a0a0f;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--page-bg-url);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition-smooth);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4rem;
}

.brand i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    background: var(--glass-bg);
    color: var(--text-main);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Sidebar Categories & Submenus */
.nav-category {
    margin-bottom: 0.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 16px;
    transition: var(--transition-smooth);
    user-select: none;
}

.category-header:hover {
    background: var(--glass-bg);
    color: var(--text-main);
}

.category-header i:first-child {
    width: 20px;
    text-align: center;
}

.category-header .arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-category.active .category-header {
    color: var(--text-main);
}

.nav-category.open .arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
}

.nav-category.open .submenu {
    max-height: 500px;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}

.submenu .nav-link {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    background: transparent !important;
}

.submenu .nav-link:hover,
.submenu .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Visibility Controls */
#cat-admin, #cat-multicuentas, #cat-trabajo {
    display: none;
}

/* Hide granular links by default, main.js will show them if permitted */
.nav-menu .nav-link[id^="link-trabajo-"], 
.nav-menu .nav-link[id^="link-ventas"], 
.nav-menu .nav-link[id^="link-vencimiento"],
.nav-menu .nav-link[id="link-registros"],
.nav-menu .nav-link[id="link-nomina"],
.nav-menu .nav-link[id="link-despidos"],
.nav-menu .nav-link[id="link-claves"],
.nav-menu .nav-link[id="link-solicitud-nombres"],
.nav-menu .nav-link[id="link-editor"],
.nav-menu .nav-link[id="link-clones"],
.nav-menu .nav-link[id="link-cambio-nombre"],
.nav-menu .nav-link[id="link-profile"],
.nav-menu .nav-link[id="link-perfil"] {
    display: none;
}

.nav-admin #cat-admin, .nav-admin #cat-multicuentas {
    display: block !important;
}

.nav-trabajo #cat-trabajo {
    display: block !important;
}

.main-view {
    margin-left: 280px;
    flex-grow: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 4rem;
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

.main-content-inner {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.main-content-inner.layout-tight {
    gap: 0.5rem;
    max-width: 1100px;
}

.hero-glass {
    background: var(--card-bg-premium);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 0;
    padding-bottom: 33.33%; /* 3:1 Aspect Ratio (223 / 669) */
}

.hero-glass-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-banner-container {
    width: 100%;
    max-width: 1200px;
    height: 0;
    padding-bottom: 33.33%;
    border-radius: 32px;
    overflow: hidden;
    margin: 0 auto;
    background: var(--card-bg-premium);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    position: relative;
    display: none;
}

.hero-banner-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-glass h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Staff Slider */
.staff-section {
    position: relative;
    z-index: 10;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 70px;
    overflow: visible !important;
}

.custom-nav-prev,
.custom-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.custom-nav-prev:hover,
.custom-nav-next:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.4);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.custom-nav-prev {
    left: 15px;
}

.custom-nav-next {
    right: 15px;
}

.custom-nav-prev.swiper-button-disabled,
.custom-nav-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.staff-swiper,
.payment-swiper,
.membership-swiper {
    min-height: 450px !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 20px 0 !important;
    margin: -20px 0;
    border-radius: 24px;
}

.swiper-wrapper {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

.section-header {
    display: block;
    width: 100%;
    margin-bottom: 2.5rem;
    text-align: center;
}

.staff-card {
    background: var(--card-bg-premium);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.staff-card:hover {
    background: var(--card-bg-premium);
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--glow-purple);
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-top: -30px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.role-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.staff-name {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    z-index: 5;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-glow {
    padding: 1rem 2.5rem;
    border-radius: 16px;
    background: var(--accent-primary);
    color: white;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--neon-shadow);
}

.btn-glow:hover {
    transform: translateY(-3px);
    background: #8c61ff;
    box-shadow: 0 0 25px rgba(124, 77, 255, 0.5);
}

/* Payment Card */
.payment-card-modern {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 320px;
}

.payment-card-modern:hover {
    background: rgba(124, 77, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-10px);
    box-shadow: var(--neon-shadow);
}

.flag-icon {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.payment-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.time-bold {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Form Styles */
.registration-form-modal {
    width: 100%;
    max-width: 520px !important;
    background: #151520 !important;
    border-radius: 32px !important;
    padding: 4rem !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6) !important;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.modal-overlay.active .registration-form-modal {
    transform: translateY(0);
}

.form-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    color: white;
    text-align: left;
    letter-spacing: -1px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-field input {
    width: 100%;
    background: #0d0d14;
    border: 1px solid #2a2a35;
    border-radius: 16px;
    padding: 1.4rem;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-field input:focus {
    border-color: #7c4dff;
    background: #12121a;
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.15);
}

.code-field-group {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    background: #0d0d14;
    border: 1px solid #2a2a35;
    border-radius: 16px;
    padding: 1rem 1.4rem;
}

.code-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-info label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

#reg-code-val {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00e5ff;
    letter-spacing: 12px;
    text-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    line-height: 1.1;
}

.btn-refresh-code {
    background: #5f37cc;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 16px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh-code:hover {
    transform: rotate(180deg);
    background: #7c4dff;
}

.btn-submit-reg {
    background: linear-gradient(135deg, #7c4dff, #5f37cc);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.3);
}

.btn-submit-reg:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(124, 77, 255, 0.4);
}

/* Dashboard Grid Styles */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.dashboard-col-left {
    width: 100%;
    max-width: 860px;
    min-width: 320px;
}

.dash-card {
    background: var(--card-bg-premium);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), var(--glow-purple);
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
}

.profile-header {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    height: 150px;
    margin-top: 25px;
}

.profile-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.role-text {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.tag-status {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: #aaa;
}

.next-rank-info {
    font-size: 1.1rem;
    background: rgba(95, 55, 204, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    color: var(--accent-secondary);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.time-val {
    color: #888;
}

.progress-bar-container {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 100px;
}

.board-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.board-header {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.board-tag {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.board-tag.important {
    background: #636e72;
    color: #dfe6e9;
}

.board-tag.red {
    background: #ff7675;
    color: white;
}

.board-tag.orange {
    background: rgba(95, 55, 204, 0.2);
    color: var(--accent-secondary);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.board-table td {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.stats-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.mini-stats-card {
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 0;
}

.mini-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.mini-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.progress-card-large {
    width: 100%;
}

.progress-info-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dim);
}

.progress-bar-container.large {
    height: 16px;
}

.progress-bar.striped {
    background: linear-gradient(45deg,
            rgba(95, 55, 204, 1) 25%,
            rgba(120, 80, 220, 1) 25%,
            rgba(120, 80, 220, 1) 50%,
            rgba(95, 55, 204, 1) 50%,
            rgba(95, 55, 204, 1) 75%,
            rgba(120, 80, 220, 1) 75%,
            rgba(120, 80, 220, 1));
    background-size: 30px 30px;
    animation: move-stripes 1s linear infinite;
}

.membership-card {
    border: 1px solid rgba(95, 55, 204, 0.4) !important;
    box-shadow: 0 0 15px rgba(95, 55, 204, 0.1);
}

.membership-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.m-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.m-days {
    color: var(--text-dim);
    font-size: 0.95rem;
}

@keyframes move-stripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 30px 0;
    }
}

/* Rank Accordion Styles */
.rank-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.rank-item-box {
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.rank-item-box.open {
    border-color: var(--accent-primary);
    box-shadow: var(--neon-shadow);
}

.rank-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.rank-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.rank-header i {
    transition: transform 0.3s ease;
}

.rank-item-box.open .rank-header i {
    transform: rotate(180deg);
}

.rank-details {
    display: none;
    padding: 0 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.rank-item-box.open .rank-details {
    display: block;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tab-content li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dim);
}

.tab-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

/* Rank Missions Enhanced Styles */
.rank-summary-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    padding: 1.2rem 2rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.rank-summary-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.rank-summary-row .summary-item {
    text-align: center;
}

.rank-summary-row .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.rank-summary-row .value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-secondary);
}

.rank-summary-row .value.gold {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.missions-title {
    text-align: center;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.8rem;
}

.missions-list {
    list-style: none !important;
    padding: 0 !important;
}

.missions-list li {
    padding: 1rem !important;
    text-align: center !important;
    border-top: 1px solid var(--glass-border) !important;
    color: var(--text-main) !important;
    font-weight: 600 !important;
    position: relative;
    padding-left: 1rem !important;
}

.missions-list li::before {
    display: none !important;
}

.missions-list li:first-child {
    border-top: none !important;
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 80px;
        padding: 2rem 1rem;
    }

    .brand span,
    .nav-link span,
    .category-header span,
    .category-header .arrow {
        display: none;
    }

    .main-view {
        margin-left: 80px;
        padding: 4rem 2rem;
    }

    .hero-glass h1 {
        font-size: 3rem;
    }
}

/* Mobile Header & Toggle */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 900;
    align-items: center;
    padding: 0 1.5rem;
    justify-content: space-between;
}

.mobile-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-brand {
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-brand i {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px !important;
        z-index: 1001;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar .brand span,
    .sidebar .nav-link span,
    .sidebar .category-header span,
    .sidebar .category-header .arrow {
        display: inline-block !important;
    }

    .main-view {
        margin-left: 0 !important;
        padding: 60px 1.5rem 2rem !important;
    }

    .hero-glass {
        padding: 2.5rem 1.5rem;
    }

    .hero-glass h1 {
        font-size: 2.2rem;
    }

    .main-content-inner {
        width: 100%;
        gap: 3rem;
    }

    .slider-wrapper {
        padding: 0 40px;
    }

    .staff-card,
    .payment-card-modern {
        padding: 1.5rem;
        min-height: 280px;
    }

    .avatar-wrapper {
        width: 100px;
        height: 100px;
    }

    .avatar-img {
        height: 120px;
    }

    /* Modal Mobile */
    .registration-form-modal {
        padding: 2rem !important;
    }

    .form-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #reg-code-val {
        font-size: 2.5rem;
        letter-spacing: 6px;
    }

    .stats-grid-row {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto;
    }
}

/* Tiempos Page Refined Styles */
.tiempos-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.buscador-card {
    padding: 1rem 2rem;
    background: rgba(20, 20, 30, 0.8) !important;
    margin-bottom: 0;
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

.mission-status-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    backdrop-filter: blur(5px);
}

.mission-status-badge i {
    color: var(--accent-primary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.mission-status-badge.active {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.2), rgba(255, 0, 128, 0.1));
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(121, 40, 202, 0.2);
    transform: translateY(-2px);
}

.mission-status-badge.active i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

.mission-status-badge span {
    text-overflow: ellipsis;
    overflow: hidden;
}
.buscador-content label {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.buscador-content .hint {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.search-box-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.custom-search-container {
    flex: 1;
    position: relative;
}

.custom-search-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
}

.dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a25;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    color: #ccc;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #5f37cc;
    color: white;
}

.manual-start-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0 1rem;
    border-radius: 12px;
    height: 54px;
    transition: var(--transition-smooth);
}

.manual-start-wrapper:focus-within {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.manual-start-wrapper label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.manual-start-input-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.manual-start-input-box input {
    width: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    padding: 0;
}

.manual-start-input-box span {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 700;
    margin-left: 2px;
}

.btn-abrir {
    background: #5f37cc;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.actions-container-glass {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: -0.5rem;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.02);
}

.actions-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 0;
}

.btn-action {
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-action.primary {
    background: #3498db;
    color: white;
    border: none;
}

.btn-action.outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-action.purple {
    background: #5f37cc;
    color: white;
    border: none;
}

.btn-action.grey {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1.4rem;
    font-weight: 600;
}

.btn-action.grey:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.info-bar-container {
    margin-bottom: 0.2rem;
}

.info-bar {
    background: #2a1b4d;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.table-section-wrapper {
    background: rgba(10, 10, 15, 0.4);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 0;
}

.table-search-bar {
    background: #151520;
    padding: 0.5rem 1rem;
}

.table-search-input {
    display: flex;
    align-items: center;
    background: #0d0d14;
    border: 1px solid #2a2a35;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.btn-search-tab {
    background: #2a2a35;
    color: #eee;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.table-search-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.4rem 1rem;
    color: white;
    outline: none;
}

.table-filters-row {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.btn-sort {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.table-tabs {
    display: flex;
    gap: 0.4rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #888;
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.tab-btn.active {
    background: #4a148c;
    color: white;
}

.table-container-card {
    padding: 1rem;
    overflow-x: auto;
}

.tiempos-table {
    width: 100%;
    border-collapse: collapse;
}

.tiempos-table th {
    text-align: left;
    padding: 0.8rem;
    color: #ccc;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
}

.tiempos-table td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

/* Specific Column Widths for alignment */
.tiempos-table th:nth-child(1),
.tiempos-table td:nth-child(1) {
    width: 25%;
    text-align: left;
}

.tiempos-table th:nth-child(2),
.tiempos-table td:nth-child(2) {
    width: 25%;
    text-align: left;
}

.tiempos-table th:nth-child(3),
.tiempos-table td:nth-child(3) {
    width: 20%;
    text-align: center;
}

.tiempos-table th:nth-child(4),
.tiempos-table td:nth-child(4) {
    width: 30%;
    text-align: center;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-cell img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.user-dot.online {
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
}

.user-dot.paused {
    background: #9b59b6;
    box-shadow: 0 0 10px #9b59b6;
}

/* Modal Adjust */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content.glass {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.habbo-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    outline: none;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
}

.user-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.user-time {
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 0.1rem;
    display: block;
}

.text-center {
    text-align: center;
}

.habbo-checkbox {
    width: 16px;
    height: 16px;
}

.action-btns {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-habbo {
    background: #3498db;
    border: none;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-habbo.confirm {
    background: #2ecc71;
    color: #fff;
}

.btn-habbo.pause {
    background: #e67e22;
    color: #fff;
}

.btn-habbo.minus {
    background: #f1c40f;
    color: #000;
}

.btn-habbo.adjust {
    background: #9b59b6;
    color: #fff;
}

.btn-habbo.estancia {
    background: #888;
    color: #fff;
}

.btn-habbo.cancel {
    background: #e74c3c;
    color: #fff;
}

.btn-habbo.desligar {
    background: #3498db;
    color: #fff;
}

.btn-habbo:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pausas-count {
    color: #ff4d4d;
    font-size: 1.1rem;
    font-weight: 800;
    margin-left: 8px;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}
/* Ranks Page Styles */
.rank-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rank-item-box {
    background: var(--card-bg-premium);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-bottom: 1.5rem;
}

.rank-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
}

.rank-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.rank-header i {
    transition: transform 0.3s ease;
    color: var(--accent-primary);
}

.rank-item-box.open .rank-header i {
    transform: rotate(180deg);
}

.rank-details {
    display: none;
    padding: 0 2rem 2rem;
}

.rank-item-box.open .rank-details {
    display: block;
}

.rank-summary-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    align-items: center;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.2rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    gap: 1rem;
}

.rank-summary-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-primary);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.summary-item:first-child {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 1.5rem;
}

.summary-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.summary-item .label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.summary-item .value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.summary-item .value.gold {
    color: #f1c40f;
}

/* Responsive Ranks */
@media (max-width: 992px) {
    .rank-summary-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .summary-item:first-child {
        grid-column: span 2;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .rank-summary-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .summary-item:first-child {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
}


@keyframes pulse-glow { 0% { box-shadow: 0 0 10px rgba(142, 68, 173, 0.4); } 50% { box-shadow: 0 0 20px rgba(142, 68, 173, 0.6); } 100% { box-shadow: 0 0 10px rgba(142, 68, 173, 0.4); } }

/* Unified Admin Table & Clone Styles */
.registros-table, .logs-table, .tiempos-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1.2rem;
}

.registros-table td, .logs-table td, .tiempos-table td {
    background: rgba(20, 20, 30, 0.4);
    padding: 1.2rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}

.registros-table tr td:first-child, .logs-table tr td:first-child, .tiempos-table tr td:first-child { border-radius: 16px 0 0 16px; }
.registros-table tr td:last-child, .logs-table tr td:last-child, .tiempos-table tr td:last-child { border-radius: 0 16px 16px 0; }

.registros-table tr:hover td, .logs-table tr:hover td, .tiempos-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.logs-table thead th, .tiempos-table thead th {
    text-align: left;
    padding: 0 1.5rem 0.5rem 1.5rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    border: none;
}

.reg-tab, .cn-tab, .tab-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.reg-tab:hover, .cn-tab:hover, .tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.reg-tab.active, .cn-tab.active, .tab-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.3);
}

.clone-card-full {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0.5rem 0;
}

.clone-connection {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.clone-user-node {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 180px;
    transition: all 0.3s ease;
}

.clone-user-node.restricted {
    opacity: 0.4;
    filter: grayscale(1);
}

.clone-user-node.restricted .node-name {
    text-decoration: line-through;
}

.clone-user-node.is-clone {
    border-color: rgba(255, 77, 77, 0.2);
    background: rgba(255, 77, 77, 0.03);
}

.node-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.node-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.node-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.avatar-box {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5) translateY(4px);
}

.clone-arrow {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.clone-ip-badge {
    background: rgba(0, 229, 255, 0.05);
    color: #00e5ff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.date-badge {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.date-main {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.date-sub {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.btn-action-admin {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.btn-action-admin.accept {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.btn-action-admin.accept:hover {
    background: #2ecc71;
    color: white;
    transform: translateY(-2px);
}

.btn-action-admin.deny {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.btn-action-admin.deny:hover {
    background: #ff4d4d;
    color: white;
    transform: translateY(-2px);
}

/* Timer Specific Styles */
.user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.user-dot.online { background: #2ecc71; box-shadow: 0 0 10px rgba(46, 204, 113, 0.5); }
.user-dot.paused { background: #9b59b6; box-shadow: 0 0 10px rgba(155, 89, 182, 0.5); }

.timer-display {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.mission-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.mission-status-badge.active {
    background: rgba(124, 77, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.3);
    color: white;
}

/* Form & Confirmation Styles */
.confirmation-card {
    background: var(--card-bg-premium);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.confirmation-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.conf-label {
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.conf-value {
    color: white;
    font-size: 1.1rem;
}

.price-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-item .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.price-item .value {
    font-size: 1.4rem;
    font-weight: 800;
}
.log-main-content { display: flex; align-items: center; gap: 1rem; }
.log-info-group { display: flex; flex-direction: column; gap: 0.2rem; }
.log-tag { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-primary); }
.log-title { color: white; font-size: 1rem; font-weight: 500; }
.log-title strong { color: var(--accent-primary); font-weight: 800; }
.log-value { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 0.8rem; border: 1px solid transparent; margin-left: 5px; }
.log-value.time { background: rgba(46, 204, 113, 0.1); color: #2ecc71; border-color: rgba(46, 204, 113, 0.2); }
.log-value.pago { background: rgba(241, 196, 15, 0.1); color: #f1c40f !important; border-color: rgba(241, 196, 15, 0.2); }
.log-subtitle { font-size: 0.75rem; color: var(--text-dim); }

/* Sidebar Category Visibility (Anti-Flicker) */
#cat-admin, #cat-trabajo, #cat-multicuentas, #cat-departamentos { display: none; }

html.show-cat-admin #cat-admin { display: block; }
html.show-cat-trabajo #cat-trabajo { display: block; }
html.show-cat-multicuentas #cat-multicuentas { display: block; }
html.show-cat-departamentos #cat-departamentos { display: block; }

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        width: 280px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-view {
        margin-left: 0;
        padding: 5rem 1rem 1rem 1rem;
        width: 100%;
    }
    .mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        z-index: 1500;
        padding: 0 1.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: -1px;
    }
    .mobile-brand i {
        color: var(--accent-primary);
        filter: drop-shadow(0 0 8px var(--accent-primary));
    }
    .mobile-toggle {
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        transition: color 0.3s;
    }
    .mobile-toggle:hover {
        color: var(--accent-primary);
    }
    .main-content-inner {
        width: 100%;
        padding: 0;
        gap: 2rem;
    }
    .hero-glass h1 {
        font-size: 2.2rem;
    }
    .dashboard-grid {
        flex-direction: column;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .profile-info {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .table-section-wrapper, .table-container-card {
        overflow-x: auto !important;
    }
    .tiempos-table, .pre-table, .habbo-table, .logs-table, .rank-editor-table, .ventas-table, .nomina-table, .registros-table, .data-table {
        min-width: 700px;
    }
    .table-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .actions-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .actions-row button {
        width: 100%;
        margin-bottom: 10px;
    }
    .table-filters-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .table-filters-row .btn-sort {
        width: 100%;
    }
    .dash-card {
        padding: 1.5rem;
    }
    .avatar-ring {
        width: 100px;
        height: 100px;
    }
    .profile-avatar {
        margin: 0 auto;
    }
    .buscador-content {
        flex-direction: column;
    }
    .search-box-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
        align-items: stretch;
    }
    .custom-search-container {
        width: 100%;
    }
    #user-search-input {
        width: 100%;
    }
    #mission-badge-container {
        justify-content: center;
        width: 100%;
    }
    .modal-content {
        padding: 1.5rem !important;
        width: 95% !important;
        margin: 1rem !important;
    }
    .table-tabs button {
        flex: 1 1 40%;
        text-align: center;
    }
    .btn-abrir {
        width: 100% !important;
    }
}

.main-footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    align-self: center;
    font-weight: 500;
}
.main-footer strong {
    color: var(--accent-primary);
    font-weight: 700;
}

