:root {
    --bg-dark: #000000;
    --bg-gradient: none;
    --text-primary: #ffffff;
    --text-secondary: #8b8b99;
    --text-pink: #ff6b9e;
    --border-color: rgba(255, 255, 255, 0.1);
    --icon-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    --icon-glow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.os-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    position: relative;
}

/* Header Styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role {
    color: var(--text-pink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.username {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.separator {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 10%, rgba(255,255,255,0.1) 90%, rgba(255,255,255,0) 100%);
    margin-bottom: 50px;
}

/* App Grid Styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 30px 20px;
    max-width: 1200px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--app-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 0 15px var(--neon-color, #00d2ff), inset 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    border: 2px solid var(--neon-color, #ffffff);
    transition: all 0.3s ease;
}

.app-icon i {
    text-shadow: none;
}

.app-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--neon-color, #00d2ff);
    border-radius: 24px;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
    transition: all 0.3s ease;
}

.app-item:hover .app-icon {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--neon-color, #00d2ff), 0 0 50px var(--neon-color, #00d2ff), inset 0 0 15px rgba(255, 255, 255, 0.6);
    border: 2px solid #ffffff;
}

.app-item:hover .app-icon::before {
    opacity: 1;
    filter: blur(35px);
    background: #ffffff;
}

@keyframes clickPulse {
    0% { transform: scale(0.9); filter: brightness(1.2); box-shadow: 0 0 20px var(--neon-color), 0 0 40px var(--neon-color); }
    50% { transform: scale(1.1); filter: brightness(2); box-shadow: 0 0 40px #fff, 0 0 80px var(--neon-color); }
    100% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 25px var(--neon-color), 0 0 50px var(--neon-color); }
}

.app-icon.clicked {
    animation: clickPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-icon.clicked::before {
    background: #ffffff;
    filter: blur(30px);
    opacity: 1;
    transition: all 0.2s ease;
}

/* Glass reflection effect */
.app-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

/* Small detail lines in corners of icons */
.app-icon::before {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 6px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.app-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Footer */
.bottom-bar {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.version {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 900px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .os-container {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 10px;
    }
    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border-radius: 16px;
    }
    .username {
        font-size: 20px;
    }
}

/* Modal Overlay & App Screen */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: rgba(10, 15, 25, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 210, 255, 0.1);
    transform: translateY(0) scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d2ff, transparent);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(40px) scale(0.9);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.close-btn:hover {
    color: var(--text-pink);
    transform: scale(1.1);
}

.bank-header-simple h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
}

/* Credit Card UI */
.credit-card {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    margin-bottom: 30px;
    overflow: hidden;
    color: white;
}

.credit-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Watermark Logo en la tarjeta */
.credit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("logo_tarjeta.png");
    background-size: 55%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen; /* Por si la imagen tiene fondo negro, esto lo hace transparente */
}

.card-top, .chip, .card-number, .card-bottom {
    position: relative;
    z-index: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bank-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
}

.contactless {
    font-size: 24px;
    transform: rotate(90deg);
    color: #b0b0b0;
}

.chip {
    font-size: 38px;
    color: #e6c27a; /* Gold/Bronze */
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.card-number {
    font-size: 26px;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-family: monospace;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.card-value {
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.balance-section {
    text-align: center;
    margin-bottom: 30px;
}

.balance-section span {
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.balance-section h1 {
    font-size: 50px;
    margin-top: 5px;
    color: white;
}

.bank-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 10px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.action-btn i {
    font-size: 22px;
    color: #00d2ff;
}

.action-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    transform: translateY(-2px);
}

/* Profile App - Full Dashboard */
.full-dashboard {
    max-width: 900px;
    width: 95%;
    height: 85vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #0b1016;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #0d131a;
}
.dashboard-header h2 {
    color: white;
    font-size: 22px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}
.dash-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dash-btn:hover { background: rgba(255, 255, 255, 0.1); }

.dashboard-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dash-identity-card {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #161f2c, #0b1016);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    padding: 20px 25px;
    gap: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dash-avatar {
    width: 60px; height: 60px;
    background: #2a3a52;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    color: #8da4c4;
}

.dash-identity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dash-subtitle {
    font-size: 10px;
    color: #00d2ff;
    font-weight: 800;
    letter-spacing: 1px;
}
.dash-identity-info h3 {
    font-size: 22px;
    color: white;
    font-weight: 900;
}
.dash-subinfo {
    font-size: 11px;
    color: #6b7a90;
    font-family: monospace;
}

.dash-identity-badge {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.badge-green {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-red {
    background: rgba(255, 75, 75, 0.1);
    color: #ff4b4b;
    border: 1px solid rgba(255, 75, 75, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-text {
    font-size: 11px;
    color: #6b7a90;
}

.dash-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}
.dash-tab {
    background: none;
    border: none;
    color: #6b7a90;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    display: flex;
    gap: 8px;
    align-items: center;
}
.dash-tab:hover {
    color: white;
}
.dash-tab.active {
    color: white;
    border-bottom: 2px solid #00d2ff;
    background: rgba(0, 210, 255, 0.05);
    border-radius: 8px 8px 0 0;
}

.dash-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #10161d;
    overflow: hidden;
}

.dash-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 25px;
    align-items: center;
}
.dash-row:last-child {
    border-bottom: none;
}
.dash-row.split .dash-field {
    flex: 1;
}
.dash-row.split .dash-field:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    margin-right: 25px;
}

.dash-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.d-label {
    font-size: 10px;
    font-weight: 800;
    color: #6b7a90;
    letter-spacing: 1px;
}
.d-value {
    font-size: 14px;
    font-weight: 700;
    color: white;
}
.d-muted {
    color: #6b7a90;
    font-weight: 400;
    font-size: 13px;
}

.dash-icon {
    margin-left: auto;
    color: #00d2ff;
    font-size: 20px;
    background: rgba(0, 210, 255, 0.1);
    width: 40px; height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.dash-link {
    margin-left: auto;
    color: #00d2ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}
.dash-link:hover {
    color: white;
}

.dash-dmv-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141c25;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
}
.dmv-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}
.dmv-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ------------------------------------------------ */
/* Login and Registration Screen */
/* ------------------------------------------------ */
.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-box {
    background: rgba(20, 30, 48, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 350px;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 20px rgba(0, 210, 255, 0.1);
    position: relative;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d2ff, transparent);
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    width: 80px;
    margin-bottom: 15px;
}

.login-logo h2 {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 900;
}

.login-box h3 {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-box input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.login-box input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.primary-btn {
    width: 100%;
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    color: white;
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.1);
    transition: all 0.3s;
}

.primary-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3);
}

.switch-form {
    margin-top: 25px;
    font-size: 12px;
    color: var(--text-secondary);
}

.switch-form a {
    color: #00d2ff;
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

.error-msg {
    margin-top: 15px;
    color: #ff4b4b;
    font-size: 12px;
    background: rgba(255, 75, 75, 0.1);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 75, 75, 0.3);
}

/* -------------------------------------
   PESTAÑAS DE PERFIL
------------------------------------- */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------
   ENLACE DEL JUEGO
------------------------------------- */
.enlace-section-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.enlace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.enlace-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.badge-linked {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.enlace-box {
    background: rgba(20, 26, 33, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.enlace-box.alert-red {
    background: #e74c3c;
    color: white;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 12px;
}

.enlace-box.alert-red:hover {
    background: #c0392b;
}

.afirmacion-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.afirmacion-count {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}

/* -------------------------------------
   LICENCIAS (ID CARDS)
------------------------------------- */
.license-app {
    max-width: 600px;
}

.license-header {
    text-align: center;
    margin-bottom: 25px;
}

.license-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
}

.license-header p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 5px;
    text-transform: uppercase;
}

.license-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.license-card {
    background: linear-gradient(135deg, #1f4037, #99f2c8); /* Default gradient */
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: #fff;
    overflow: hidden;
}

.license-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='rgba(255,255,255,0.1)' stroke-width='5' fill='none'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
}

.license-card.empty {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    box-shadow: none;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.license-card.empty i {
    font-size: 30px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.license-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.license-details .l-id {
    font-size: 11px;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.license-status {
    background: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.license-icon {
    font-size: 35px;
    opacity: 0.8;
}

/* -------------------------------------
   PASAPORTE (PASSPORT)
------------------------------------- */
.passport-app {
    max-width: 600px;
    background: #fdfdfd; /* White paper color */
    color: #333;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.passport-top-bar {
    background: #1e3c72;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.passport-top-bar h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.passport-content {
    padding: 30px;
    position: relative;
    background: #050505; /* Black background */
    display: flex;
    gap: 20px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.passport-content::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.passport-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: url('mxz_logo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
}

.passport-photo-container {
    flex: 0 0 120px;
    z-index: 1;
}

.passport-photo {
    width: 120px;
    height: 150px;
    background: #ccc;
    border: 2px solid #aaa;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #888;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.passport-photo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.passport-details {
    flex: 1;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.p-field {
    display: flex;
    flex-direction: column;
}

.p-label {
    font-size: 9px;
    font-weight: bold;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.p-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.p-field.full {
    grid-column: 1 / -1;
}

.mrz-container {
    background: #fff;
    padding: 15px 20px;
    border-top: 1px dashed #ccc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    letter-spacing: 2px;
    font-weight: bold;
    word-break: break-all;
}

/* -------------------------------------
   CASINO / APUESTAS
------------------------------------- */
.casino-app {
    max-width: 500px;
    background: linear-gradient(135deg, #1f1c2c, #928DAB);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 30px;
}

.casino-header h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #f1c40f;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.casino-balance-box {
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.roulette-display {
    height: 100px;
    background: #000;
    border: 3px solid #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s;
}

.roulette-display.spin {
    animation: pulse 0.1s infinite alternate;
}

.roulette-display.red { background: #e74c3c; color: white; }
.roulette-display.black { background: #2c3e50; color: white; }
.roulette-display.green { background: #2ecc71; color: white; }

.bet-controls input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    margin-bottom: 15px;
    text-align: center;
    background: rgba(255,255,255,0.9);
}

.bet-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.bet-btn {
    padding: 12px 5px;
    border: none;
    border-radius: 5px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    color: white;
    transition: transform 0.1s;
}

.bet-btn:active { transform: scale(0.95); }

.bet-btn.red { background: #e74c3c; }
.bet-btn.black { background: #2c3e50; }
.bet-btn.green { background: #2ecc71; }

@keyframes pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.05); opacity: 1; }
}


/* CASINO TABS */
.casino-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.casino-tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.casino-tab-btn.active {
    background: #f1c40f;
    color: #111;
}

/* SLOTS UI */
.slots-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #333;
    margin-bottom: 20px;
    min-height: 120px;
}
.slot-reel {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    box-shadow: inset 0px 5px 15px rgba(0,0,0,0.5);
    overflow: hidden;
}
.slot-reel.spin {
    animation: slotSpin 0.1s infinite linear;
}
@keyframes slotSpin {
    0% { transform: translateY(-10px); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(-10px); opacity: 0.5; }
}

.slots-paytable {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 12px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
}
.slots-paytable-item {
    text-align: center;
}
.slots-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}
.slot-reel img {
    max-width: 60px;
    max-height: 60px;
}


/* BETTING APP */
.bets-container {
    padding: 10px;
}
.bet-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}
.bet-title {
    font-size: 16px;
    font-weight: 800;
    color: #f1c40f;
    margin-bottom: 10px;
    text-align: center;
}
.bet-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.bet-team {
    flex: 1;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.bet-team:hover {
    border-color: #f1c40f;
}
.bet-team.selected {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}
.team-name {
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}
.team-odds {
    color: #2ecc71;
    font-size: 12px;
}
.bet-vs {
    padding: 0 15px;
    font-weight: 900;
    color: #555;
}
.bet-form {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bet-form.active {
    display: block;
}

/* ADMIN PANEL */
#admin-modal .modal-content {
    background: #1a1a2e;
    border: 1px solid #e74c3c;
    max-width: 500px;
}
#admin-modal h2 {
    color: #e74c3c;
}
.admin-form input, .admin-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 5px;
}
.admin-form button {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}


/* ADMIN PLAYERS TABLE */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
}
.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-table th {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    font-weight: bold;
}
.admin-table tr:hover {
    background: rgba(255,255,255,0.05);
}
.btn-small {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}
.btn-small:hover {
    background: #2980b9;
}

/* =========================================
   JOBS APP (TRABAJOS)
   ========================================= */
.jobs-app {
    background: #1e272e;
    color: #ecf0f1;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.job-card {
    background: rgba(44, 62, 80, 0.7);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--job-color, #3498db);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    background: rgba(44, 62, 80, 1);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, var(--job-color) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
}

.job-icon {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--job-color, #ecf0f1);
    margin-bottom: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.job-info h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.job-salary {
    display: inline-block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.job-info p {
    font-size: 13px;
    color: #bdc3c7;
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.job-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ecf0f1;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    width: 100%;
}

.job-btn:hover {
    background: var(--job-color);
    color: #fff;
    border-color: var(--job-color);
    box-shadow: 0 0 10px var(--job-color);
}

/* =========================================================
   MOBILE & TABLET ULTRA-RESPONSIVE FIXES (ALL APPS & MODALS)
   ========================================================= */
@media (max-width: 768px) {
    /* Full Mobile Reset */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .os-container {
        padding: 15px 12px 60px 12px !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        width: 100vw !important;
    }
    
    .top-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }
    
    .user-info {
        gap: 8px !important;
    }
    
    .logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .username {
        font-size: 15px !important;
    }
    
    .role {
        font-size: 9px !important;
    }

    .separator {
        margin-bottom: 20px !important;
    }
    
    .app-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px 8px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .app-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 22px !important;
        border-radius: 14px !important;
    }
    
    .app-name {
        font-size: 10px !important;
    }

    /* ALL MODALS FULL MOBILE ADAPTATION */
    .modal-overlay {
        padding: 6px !important;
        align-items: center !important;
        justify-content: center !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content,
    .modal-content.full-dashboard,
    .modal-content.bank-app,
    .modal-content.license-app {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 5px 0 !important;
        padding: 16px 12px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        height: auto !important;
        max-height: 94vh !important;
        overflow-y: auto !important;
    }

    #police-modal .modal-content,
    #admin-modal .modal-content,
    #profile-modal .modal-content,
    #dmv-modal .modal-content,
    #ins-modal .modal-content,
    #jobs-modal .modal-content,
    #modal-911 .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 94vh !important;
        padding: 14px 10px !important;
    }

    /* Modals Headers */
    .dashboard-header,
    .bank-header-simple,
    .license-header {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    /* Police and Admin Modal Top Bar Responsive */
    #police-modal .modal-content > div:first-of-type,
    #admin-modal .modal-content > div:first-of-type {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    #police-modal h2, #admin-modal h2 {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    /* Search & Filter Bar Stacking */
    #police-players-view > div:first-child,
    #admin-players-view > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    #police-search-input,
    #admin-search-input {
        width: 100% !important;
    }

    /* Passport 2-Page Layout Stacking on Phone */
    .passport-booklet-spread {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        display: flex !important;
    }

    .passport-booklet-spread > div:first-child {
        flex: 1 1 auto !important;
        width: 100% !important;
        padding: 18px 12px !important;
        border-right: none !important;
        border-bottom: 2px solid rgba(0,0,0,0.5) !important;
    }

    .passport-booklet-spread > div:last-child {
        flex: 1 1 auto !important;
        width: 100% !important;
        padding: 14px 10px 0 10px !important;
    }

    /* Passport Data Page Internal Layout on Mobile (Photo + Fields) */
    .passport-booklet-spread > div:last-child > div:nth-child(3) {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* MRZ Text Line */
    #fc-pass-mrz, #admin-fc-pass-mrz, #police-fc-pass-mrz {
        font-size: 7.5px !important;
        letter-spacing: 0px !important;
        padding: 6px 4px !important;
        margin: 8px -10px 0 -10px !important;
        word-break: break-all !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    /* Tables in all views (Full Horizontal Scroll) */
    .admin-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap !important;
        font-size: 11px !important;
    }

    .admin-table th, .admin-table td {
        padding: 6px 8px !important;
    }

    /* Job Grid Selector in Modals */
    .job-grid-selector {
        grid-template-columns: 1fr !important;
    }

    /* Credit Card in Bank Modal */
    .credit-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .card-number {
        font-size: 14px !important;
        letter-spacing: 1.5px !important;
        margin: 12px 0 !important;
    }

    /* Tabs Bar Mobile */
    .casino-tabs {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap !important;
        gap: 6px !important;
        padding-bottom: 4px !important;
    }

    .casino-tab-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }

    /* Dash rows */
    .dash-row.split {
        flex-direction: column !important;
        gap: 8px !important;
    }
}

