/* ═══════════════════════════════════════════════════════════════════
   PAPUSBANK V2 - MODERN CYBERPUNK STYLE SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --primary:      #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.4);
    --secondary:    #00ffaa;
    --secondary-glow: rgba(0, 255, 170, 0.3);
    --dark-bg:      #030914;
    --dark-card:    rgba(10, 22, 44, 0.7);
    --dark-card-hover: rgba(16, 35, 70, 0.85);
    --dark-border:  rgba(0, 212, 255, 0.15);
    --dark-border-glow: rgba(0, 212, 255, 0.3);
    --text-main:    #d1f0ff;
    --text-muted:   rgba(209, 240, 255, 0.6);
    --danger:       #ff4466;
    --gold:         #ffd700;
    --purple:       #d946ef;
    
    --sidebar-width: 240px;
    --sidebar-collapsed: 70px;
    --header-height: 70px;
    --transition-speed: 0.3s;
}

/* Base resets */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    background-image: linear-gradient(rgba(4, 10, 22, 0.82), rgba(4, 10, 22, 0.82)), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
}

/* Custom selection & Scrollbar */
::selection {
    background-color: var(--primary);
    color: #000;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Matrix Background Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Main Layout Grid */
#app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Navigation */
#sidebar {
    width: var(--sidebar-width);
    background: rgba(4, 10, 22, 0.95);
    border-right: 1px solid var(--dark-border);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--dark-border);
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-logo {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.sidebar-logo span {
    color: var(--gold);
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-item {
    padding: 2px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.sidebar-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    color: #fff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.05);
}

.sidebar-link.active {
    border-left: 3px solid var(--primary);
}

.sidebar-link:hover i {
    transform: scale(1.15);
    text-shadow: 0 0 8px var(--primary-glow);
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--dark-border);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Main Content Area */
/* Header UI */
#main-header {
    height: var(--header-height);
    background: rgba(5, 12, 27, 0.8);
    border-bottom: 1px solid var(--dark-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-toggle-btn:hover {
    transform: scale(1.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Fast Profile Widget */
.user-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--dark-border);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-widget:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.user-widget-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.user-widget-name {
    font-size: 13px;
    font-weight: 600;
}

.user-widget-balance {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
    font-size: 12px;
}

/* Page Containers */
.page {
    display: none;
    padding: 30px;
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    display: block;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Cards & Panel Layouts */
.glass-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.glass-card:hover {
    background: var(--dark-card-hover);
    border-color: var(--primary-glow);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.08);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Banking card specific style */
.bank-credit-card {
    background: linear-gradient(135deg, #0f1c3f 0%, #030712 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    color: #fff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700, #b8860b);
    border-radius: 5px;
}

.card-brand-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: var(--primary);
}

.card-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    margin: 20px 0;
    text-align: center;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card-holder-name {
    font-size: 14px;
    font-weight: 600;
}

.card-balance-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* UI Elements: Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid var(--dark-border);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-glow);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
    color: #fff;
}

.btn-danger {
    background: rgba(255, 68, 102, 0.1);
    border: 1px solid rgba(255, 68, 102, 0.3);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* Leaderboards & Tables */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.modern-table th {
    background: rgba(0, 212, 255, 0.05);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    padding: 14px 16px;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--dark-border);
}

.modern-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dark-border);
    vertical-align: middle;
}

.modern-table tr:hover td {
    background: rgba(0, 212, 255, 0.02);
}

/* User list layout on transfer */
.user-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

.user-select-card {
    background: rgba(10, 22, 44, 0.5);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-select-card:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
}

.user-select-card.selected {
    border-color: var(--secondary);
    background: rgba(0, 255, 170, 0.08);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.user-select-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 1px solid var(--dark-border);
}

.user-select-name {
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Media Player HUD Bottom */
#music-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(3, 8, 20, 0.95);
    border-top: 1px solid var(--dark-border);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 30%;
}

.player-disk {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    animation: rotateDisk 10s linear infinite;
    animation-play-state: paused;
}

.player-disk.playing {
    animation-play-state: running;
}

.player-track-details {
    overflow: hidden;
}

.player-track-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.player-track-clan {
    font-size: 11px;
    color: var(--text-muted);
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 40%;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.player-btn.play-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    font-size: 18px;
}

.player-btn.play-toggle:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.player-timeline {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-time {
    font-size: 10px;
    color: var(--text-muted);
    width: 35px;
    text-align: center;
}

.player-slider-container {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.player-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    border-radius: 2px;
}

.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    width: 30%;
}

#lyrics-toggle-btn {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Audio Visualizer Canvas */
#player-canvas {
    height: 40px;
    width: 120px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

/* Lyrics Sliding Overlay panel */
#lyrics-panel {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 280px;
    max-height: 350px;
    background: rgba(4, 11, 24, 0.95);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 20px;
    overflow-y: auto;
    z-index: 1800;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    animation: slideUp 0.3s ease;
}

#lyrics-panel.visible {
    display: block;
}

.lyric-line {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.lyric-line.active {
    color: var(--secondary);
    font-weight: 700;
    transform: scale(1.05);
    text-shadow: 0 0 8px var(--secondary-glow);
}

/* Fullscreen Intro overlay */
#intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#intro-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#intro-skip:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Auth Overlay Glass panel */
#auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 20, 0.85);
    backdrop-filter: blur(15px);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: rgba(10, 22, 44, 0.85);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
    animation: scaleUp 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    margin-bottom: 5px;
}

.auth-title span {
    color: var(--gold);
}

.auth-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* Game: Slots UI styling */
.slots-container {
    background: linear-gradient(180deg, #111e3b 0%, #050a14 100%);
    border: 3px solid var(--gold);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.slots-machine-header {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.slots-window {
    display: flex;
    gap: 15px;
    background: #000;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid var(--dark-border);
    height: 120px;
    justify-content: space-around;
    overflow: hidden;
}

.slot-reel {
    width: 30%;
    height: 100%;
    background: #0d1627;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.slot-reel-inner {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-reel-item {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    animation: scaleUp 0.25s ease;
}

.modal-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-body {
    margin-bottom: 20px;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Toast System */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: rgba(10, 22, 44, 0.95);
    border: 1px solid var(--dark-border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badges styling */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-tag.owner { background: rgba(217, 70, 239, 0.15); border: 1px solid var(--purple); color: var(--purple); }
.badge-tag.admin { background: rgba(255, 215, 0, 0.15); border: 1px solid var(--gold); color: var(--gold); }
.badge-tag.mod { background: rgba(0, 220, 255, 0.15); border: 1px solid var(--primary); color: var(--primary); }
.badge-tag.helper { background: rgba(0, 255, 157, 0.15); border: 1px solid var(--secondary); color: var(--secondary); }
.badge-tag.mortal { background: rgba(102, 136, 170, 0.15); border: 1px solid #6688aa; color: #6688aa; }

/* Status tags for balance tiers */
.tier-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.tier-tag.blue { background: rgba(0, 212, 255, 0.1); color: var(--primary); border: 1px solid var(--dark-border); }
.tier-tag.gold { background: rgba(255, 215, 0, 0.1); color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.25); }

/* Toggle Mobile Menu Button */
#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes rotateDisk {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive queries */
@media (max-width: 1024px) {
    #sidebar {
        width: var(--sidebar-collapsed);
    }
    #main-content {
        margin-left: var(--sidebar-collapsed);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   INTRO OVERLAY
   ═══════════════════════════════════════════════════════════════════ */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s ease, visibility 0.9s ease;
    overflow: hidden;
}
#intro-overlay[style*="opacity: 0"] { pointer-events: none; }

.intro-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}
#intro-text-block {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.intro-logo-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    box-shadow: 0 0 40px var(--primary-glow), inset 0 0 20px rgba(0,212,255,0.1);
    animation: pulseRing 1.6s ease-in-out infinite;
}
@keyframes pulseRing {
    0%,100% { box-shadow: 0 0 20px var(--primary-glow); }
    50%      { box-shadow: 0 0 50px var(--primary-glow), 0 0 100px rgba(0,212,255,0.15); }
}
#intro-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 6vw, 56px);
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: 6px;
}
#intro-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.intro-bar-wrap {
    width: 260px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
#intro-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH OVERLAY
   ═══════════════════════════════════════════════════════════════════ */
#auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(217, 70, 239, 0.2) 0%, transparent 40%),
        linear-gradient(rgba(3, 9, 20, 0.75), rgba(3, 9, 20, 0.75)),
        url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/* ═══════════════════════════════════════════════════════════════════
   HYPRLAND GLASSMORPHISM AUTH CONTAINER
   ═══════════════════════════════════════════════════════════════════ */
.auth-container {
  position: relative;
  width: 900px;
  height: 520px;
  background: rgba(6, 14, 32, 0.45);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 10;
  animation: fadeIn 0.5s ease;
}

.forms-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.form-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
  transition: all 600ms cubic-bezier(.77, 0, .18, 1);
}

.form-panel--login {
  left: 0;
  z-index: 2;
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  pointer-events: auto;
}

.form-panel--register {
  left: 0;
  z-index: 1;
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(6px);
  pointer-events: none;
}

.form-content {
  width: 100%;
  max-width: 320px;
}

.form-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--primary-glow);
}

.form-panel h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.025em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.input-field label {
  font-size: 0.8rem;
  color: var(--text-main);
}

.input-field input {
  background: rgba(4, 10, 22, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--dark-border);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.input-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000;
  border: none;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.2s;
}

.btn-submit:hover {
  opacity: 0.95;
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-1px);
}

/* OVERLAY PANEL */
.overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(4, 10, 22, 0.55);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border-left: 1px solid rgba(0, 212, 255, 0.2);
  color: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  transition: 
    transform 900ms cubic-bezier(.77, 0, .18, 1),
    clip-path 900ms cubic-bezier(.77, 0, .18, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.overlay-content {
  position: absolute;
  width: 100%;
  max-width: 280px;
  text-align: center;
  padding: 0 2rem;
  transition: opacity 400ms ease;
}

.overlay-content--left {
  opacity: 0;
  pointer-events: none;
}

.overlay-content h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: var(--primary);
}

.overlay-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  background: rgba(0, 212, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* ACTIVE STATE */
.auth-container.active .overlay-panel {
  transform: translateX(-100%);
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
  border-left: none;
  border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.auth-container.active .form-panel--login {
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(6px);
  pointer-events: none;
}

.auth-container.active .form-panel--register {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  pointer-events: auto;
  z-index: 2;
  left: 50%;
}

.auth-container.active .overlay-content--right {
  opacity: 0;
  pointer-events: none;
}

.auth-container.active .overlay-content--left {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   APP SHELL LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
#app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR (new structure)
   ═══════════════════════════════════════════════════════════════════ */
#sidebar {
    width: var(--sidebar-width);
    background: rgba(4,10,22,0.97);
    border-right: 1px solid var(--dark-border);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: width var(--transition-speed) cubic-bezier(0.4,0,0.2,1),
                left var(--transition-speed) cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}
#sidebar.collapsed { width: var(--sidebar-collapsed); }
#sidebar.collapsed .brand-text,
#sidebar.collapsed .sidebar-user-info,
#sidebar.collapsed .sidebar-link span,
#sidebar.collapsed .nav-section-label,
#sidebar.collapsed .sidebar-footer .btn span { display: none; }
#sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 14px;
    gap: 0;
}
#sidebar.collapsed .sidebar-brand { justify-content: center; }
#sidebar.collapsed .sidebar-user { justify-content: center; }

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-bottom: 1px solid var(--dark-border);
    white-space: nowrap;
}
.brand-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(0,212,255,0.1);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    box-shadow: 0 0 10px var(--primary-glow);
}
.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-border);
    white-space: nowrap;
}
.sidebar-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.sidebar-user-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}
.nav-section-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 20px 5px;
    white-space: nowrap;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    white-space: nowrap;
    border-left: 3px solid transparent;
}
.sidebar-link i {
    font-size: 16px;
    min-width: 18px;
    text-align: center;
    color: var(--primary);
}
.sidebar-link:hover { color: #fff; background: rgba(0,212,255,0.07); }
.sidebar-link.active { color: #fff; background: rgba(0,212,255,0.12); border-left-color: var(--primary); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--dark-border); }

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════ */
#main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-speed) cubic-bezier(0.4,0,0.2,1);
    padding-bottom: 80px;
}

/* ═══════════════════════════════════════════════════════════════════
   TOP HEADER
   ═══════════════════════════════════════════════════════════════════ */
#top-header {
    height: var(--header-height);
    background: rgba(4,10,22,0.95);
    border-bottom: 1px solid var(--dark-border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 900;
    gap: 12px;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.papu-clock {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: var(--secondary);
    font-weight: 700;
    white-space: nowrap;
}
.header-user-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,255,0.05);
    border: 1px solid var(--dark-border);
    padding: 6px 12px;
    border-radius: 24px;
}
.header-user-text { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE INNER
   ═══════════════════════════════════════════════════════════════════ */
.page-inner {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   BANK CARD
   ═══════════════════════════════════════════════════════════════════ */
.dash-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}
.bank-card {
    background: linear-gradient(135deg, #0a1628 0%, #040e20 60%, #0a1f44 100%);
    border: 1px solid rgba(0,212,255,0.3);
    border-radius: 20px;
    padding: 24px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,212,255,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bank-card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.bank-card-top { display: flex; justify-content: space-between; align-items: center; }
.bank-card-logo { font-family: 'Orbitron',sans-serif; font-size: 13px; font-weight: 900; color: var(--primary); letter-spacing: 2px; }
.bank-card-chip { color: var(--gold); font-size: 22px; }
.bank-card-balance {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255,215,0,0.3);
    overflow-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}
.bank-card-bottom { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.bank-card-number { font-family: 'Orbitron',sans-serif; font-size: 13px; letter-spacing: 3px; color: rgba(255,255,255,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Quick stats grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.stat-card:hover { border-color: var(--dark-border-glow); background: var(--dark-card-hover); }
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-family: 'Orbitron',sans-serif; font-size: 14px; font-weight: 700; color: #fff; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Quick action buttons */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.quick-action-btn {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 11px;
}
.quick-action-btn i { font-size: 20px; color: var(--primary); }
.quick-action-btn:hover {
    background: rgba(0,212,255,0.1);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Alert banner */
.alert-banner {
    background: rgba(255,68,102,0.08);
    border: 1px solid rgba(255,68,102,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Info box */
.info-box {
    background: rgba(0,212,255,0.06);
    border: 1px dashed rgba(0,212,255,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}
.info-box i { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════════════════════════════════ */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════════════════════ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.data-table th {
    background: rgba(0,212,255,0.05);
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid var(--dark-border);
    white-space: nowrap;
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,212,255,0.06);
    vertical-align: middle;
}
.data-table tr:hover td { background: rgba(0,212,255,0.03); }

/* ═══════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.active { display: flex; }
.modal-card {
    background: rgba(6,14,32,0.99);
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--dark-border);
}
.modal-header h3 { font-family: 'Orbitron',sans-serif; font-size: 14px; font-weight: 700; color: var(--primary); }
.modal-body { padding: 22px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--dark-border);
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: rgba(6,14,32,0.97);
    border: 1px solid var(--dark-border);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-main);
    min-width: 250px;
    max-width: 360px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideInRight 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
    pointer-events: auto;
}
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   MINI PLAYER
   ═══════════════════════════════════════════════════════════════════ */
#mini-player {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 2000;
    background: rgba(4,10,22,0.97);
    border: 1px solid var(--dark-border);
    border-radius: 16px 16px 0 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    backdrop-filter: blur(10px);
}
#wave-canvas {
    width: 60px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0,212,255,0.05);
}
#player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
#player-controls .btn-icon { font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════
   FLOATING LYRICS PANEL
   ═══════════════════════════════════════════════════════════════════ */
#floating-lyrics {
    position: fixed;
    bottom: 70px;
    right: 0;
    z-index: 2001;
    width: 320px;
    max-height: 260px;
    background: rgba(4,10,22,0.97);
    border: 1px solid var(--dark-border);
    border-radius: 14px 14px 0 0;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    animation: slideUpLyrics 0.25s ease-out;
}
@keyframes slideUpLyrics {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
#floating-lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--dark-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
#floating-lyrics-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    font-size: 13px;
    line-height: 2;
    color: var(--text-main);
    white-space: pre-wrap;
    text-align: center;
}
#floating-lyrics-body::-webkit-scrollbar { width: 4px; }
#floating-lyrics-body::-webkit-scrollbar-track { background: transparent; }
#floating-lyrics-body::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 4px; }
@media (max-width: 768px) {
    #floating-lyrics { width: 100%; bottom: 60px; max-height: 200px; border-radius: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   BADGE TAG
   ═══════════════════════════════════════════════════════════════════ */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid var(--dark-border);
    background: rgba(0,212,255,0.08);
    color: var(--primary);
    white-space: nowrap;
}
.tier-tag { font-size: 11px; padding: 5px 12px; }
.tier-tag.gold { background: rgba(255,215,0,0.1); color: var(--gold); border-color: rgba(255,215,0,0.3); }
.tier-tag.blue { background: rgba(0,212,255,0.1); color: var(--primary); border-color: rgba(0,212,255,0.3); }

/* ═══════════════════════════════════════════════════════════════════
   TRANSACTION ROW
   ═══════════════════════════════════════════════════════════════════ */
.tx-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
    transition: background 0.15s;
}
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: rgba(0,212,255,0.03); border-radius: 8px; }
.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.tx-details { flex: 1; min-width: 0; }
.tx-type { font-weight: 600; font-size: 13px; }
.tx-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amount { font-family: 'Orbitron',sans-serif; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tx-amount.positive { color: var(--secondary); }
.tx-amount.negative { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════════
   PROFILE HERO
   ═══════════════════════════════════════════════════════════════════ */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}
.profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(0,212,255,0.3);
    animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-info { flex: 1; min-width: 0; }

/* ═══════════════════════════════════════════════════════════════════
   EMPTY MSG & UTILITY
   ═══════════════════════════════════════════════════════════════════ */
.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 30px 0;
}
.text-center { text-align: center; }

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.15s;
    padding: 4px;
    line-height: 1;
}
.btn-icon:hover { color: var(--primary); transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .dash-hero { grid-template-columns: 1fr; }
    .quick-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (768px and below)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #sidebar {
        left: -260px;
        width: var(--sidebar-width) !important;
        transition: left var(--transition-speed) ease;
    }
    #sidebar.mobile-open { left: 0; }
    #sidebar.collapsed { width: var(--sidebar-width) !important; left: -260px; }
    #sidebar.mobile-open.collapsed { left: 0; }
    #main-content { margin-left: 0 !important; }

    .page-inner { padding: 16px; }
    #top-header { padding: 0 12px; }
    .papu-clock { display: none; }
    .header-user-widget { padding: 5px 8px; }

    .dash-hero { grid-template-columns: 1fr; }
    .quick-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .quick-action-btn { padding: 10px 4px; font-size: 10px; }
    .quick-action-btn i { font-size: 18px; }

    .bank-card-balance { font-size: 24px; }

    #mini-player { min-width: 0; width: 100%; border-radius: 0; }
    #toast-container { bottom: 80px; left: 10px; right: 10px; }
    .toast { min-width: 0; max-width: 100%; }

    .profile-hero { flex-direction: column; text-align: center; }
    .modal-card { max-width: 100%; border-radius: 16px; }

    .data-table { font-size: 11px; }
    .data-table th, .data-table td { padding: 8px 10px; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (480px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .section-title { font-size: 13px; }
    .bank-card { padding: 18px; }
    .auth-card { padding: 28px 20px; }
}

/* ═══════════════════════════════════════════════════════════════════
   VAULT TABS
   ═══════════════════════════════════════════════════════════════════ */
.vault-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.vault-tab {
    background: rgba(6,14,32,0.8);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 10px 18px;
    color: var(--text-muted);
    font-family: 'Orbitron',sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vault-tab:hover { border-color: var(--primary); color: var(--primary); }
.vault-tab.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,255,170,0.1));
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0,212,255,0.25);
}

/* ═══════════════════════════════════════════════════════════════════
   NOBLEZA DE LAS FLORES
   ═══════════════════════════════════════════════════════════════════ */

#page-flores .glass-card {
    transition: all 0.3s ease;
}
#page-flores .glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 114, 182, 0.15);
}

/* Progress bar animation */
#page-flores .progress-bar {
    transition: width 0.8s ease;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

/* Floating hearts animation */
@keyframes floatHeart {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(20deg); opacity: 0; }
}

/* Card border glow for active couple */
.couple-active {
    border-color: var(--danger) !important;
    box-shadow: 0 0 20px rgba(255, 68, 102, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE RING ANIMATION
   ═══════════════════════════════════════════════════════════════════ */

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes nickRainbow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes nickFire {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes nickNeon {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.nick-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff0000);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: nickRainbow 3s linear infinite;
}
.nick-fire {
    background: linear-gradient(90deg, #ff4400, #ff8800, #ffcc00, #ff8800, #ff4400);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: nickFire 2s ease-in-out infinite;
}
.nick-ice {
    background: linear-gradient(90deg, #88ddff, #aaeeff, #ffffff, #aaeeff, #88ddff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: nickFire 4s ease-in-out infinite;
}
.nick-neon {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: nickNeon 2s linear infinite;
}
.nick-gold {
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700, #ffaa00, #ffd700);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: nickFire 3s ease-in-out infinite;
}

.profile-ring-container {
    position: relative;
    display: inline-block;
}

.profile-ring-container .ring-overlay {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    pointer-events: none;
}

/* Theme transition */
:root {
    transition: --primary 0.3s, --secondary 0.3s, --dark-bg 0.3s;
}

/* ═══════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
    .grid-container { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
    .grid-3col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {
    /* Grids */
    .grid-container { grid-template-columns: 1fr; gap: 12px; }
    .grid-3col { grid-template-columns: 1fr; }

    /* Sidebar */
    #sidebar { width: 260px !important; }

    /* Main content */
    #main-content { padding-bottom: 80px !important; }
    .page-inner { padding: 12px !important; }

    /* Header */
    #top-header { flex-wrap: wrap; gap: 8px; }
    .header-user-widget { font-size: 11px; padding: 4px 8px; }

    /* Bank cards */
    .bank-card { padding: 16px !important; overflow: hidden; }
    .bank-card-balance { font-size: 22px !important; overflow-wrap: break-word; word-break: break-all; }
    .bank-card-label { font-size: 11px !important; }

    /* Stats */
    .stat-card { min-width: 0; overflow: hidden; }
    .stat-value { font-size: 13px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Glass cards */
    .glass-card { padding: 14px !important; }

    /* Dashboard */
    .dash-hero { grid-template-columns: 1fr !important; gap: 12px; }
    .quick-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .quick-actions { grid-template-columns: repeat(3, 1fr) !important; gap: 6px; }
    .quick-action-btn { padding: 10px 4px !important; font-size: 10px !important; }
    .quick-action-btn i { font-size: 16px !important; }

    /* Profile */
    .profile-hero { flex-direction: column; text-align: center; gap: 12px; }
    .profile-avatar-img { width: 64px; height: 64px; }

    /* Tables */
    .data-table { width: 100%; font-size: 11px; }
    .data-table th, .data-table td { padding: 6px 8px; }

    /* Modals */
    .modal-card { max-width: 95vw !important; margin: 10px !important; border-radius: 16px; }
    .modal-body { padding: 16px !important; }

    /* Buttons */
    .btn { padding: 10px 16px !important; font-size: 13px !important; }
    .btn-full { width: 100%; }

    /* Inputs */
    .form-control, .form-select { padding: 10px 12px !important; font-size: 14px !important; }

    /* Mini player */
    #mini-player { border-radius: 0 !important; }

    /* Toast */
    #toast-container { bottom: 70px !important; left: 8px !important; right: 8px !important; }
    .toast { font-size: 12px; padding: 10px 14px; }

    /* Tabs */
    .tabs-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tabs-container::-webkit-scrollbar { display: none; }
    .tab-btn { white-space: nowrap; font-size: 11px; padding: 8px 12px; }

    /* Ranks grid (fandom pages) */
    #jjk-ranks-grid, #mha-ranks-grid, #godzilla-ranks-grid, #ben10-ranks-grid,
    #nanatsu-ranks-grid, #chainsaw-ranks-grid, #mushoku-ranks-grid,
    #frieren-ranks-grid, #rangos-grid { grid-template-columns: 1fr !important; }

    /* Market / shop items */
    .market-item, .shop-item { flex-direction: column; text-align: center; }

    /* Flores / parejas */
    #flores-container .glass-card { margin-bottom: 12px; }

    /* Leaderboard */
    .leaderboard-row { flex-wrap: wrap; gap: 8px; }

    /* Exchange / premium shop */
    #exchange-container, #premium-shop-grid { font-size: 13px; }

    /* Text sizes */
    h1 { font-size: 20px !important; }
    h2 { font-size: 17px !important; }
    h3 { font-size: 14px !important; }
    h4 { font-size: 12px !important; }

    /* Hide desktop-only */
    .desktop-only { display: none !important; }

    /* Auth / Login mobile */
    .auth-container {
        width: 95vw !important;
        height: auto !important;
        min-height: auto;
        border-radius: 12px !important;
    }
    .forms-container {
        position: relative;
        flex-direction: column;
        height: auto;
    }
    .form-panel {
        position: relative !important;
        width: 100% !important;
        height: auto;
        padding: 30px 20px !important;
    }
    .form-panel--login {
        left: auto !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        filter: none !important;
        z-index: 5;
    }
    .form-panel--register {
        left: auto !important;
        transform: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        filter: blur(6px) !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 20px !important;
        transition: all 0.4s ease;
    }
    .auth-container.active .form-panel--register {
        opacity: 1 !important;
        pointer-events: auto !important;
        filter: none !important;
        max-height: 800px;
        padding: 30px 20px !important;
    }
    .auth-container.active .form-panel--login {
        opacity: 0 !important;
        pointer-events: none !important;
        filter: blur(6px) !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 20px !important;
    }
    .form-content { max-width: 100%; }
    .form-panel h2 { font-size: 1.4rem; }
    .input-field input { font-size: 16px !important; }
    .btn-submit { font-size: 14px; padding: 14px; }

    .overlay-panel {
        position: relative !important;
        width: 100% !important;
        height: auto;
        clip-path: none !important;
        border-left: none !important;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        padding: 30px 20px;
        z-index: 10;
    }
    .overlay-content { position: relative; max-width: 100%; padding: 0 1rem; opacity: 1 !important; pointer-events: auto !important; }
    .overlay-content--left { opacity: 0 !important; pointer-events: none !important; }
    .overlay-content h2 { font-size: 1.3rem; }
    .overlay-content p { font-size: 0.8rem; }

    .auth-container.active .overlay-panel { transform: none !important; clip-path: none !important; border-right: none !important; border-left: none !important; }
    .auth-container.active .overlay-content--right { opacity: 0 !important; pointer-events: none !important; }
    .auth-container.active .overlay-content--left { opacity: 1 !important; pointer-events: auto !important; }

    /* Dashboard margin fix */
    #main-content { margin-left: 0 !important; }
    #sidebar.collapsed ~ #main-content { margin-left: 0 !important; }

    /* Leaderboard table responsive */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .papu-table { min-width: 500px; }

    /* Admin panel mobile */
    #god-mode-dashboard .grid-container { grid-template-columns: 1fr 1fr !important; }
    #admin-stats-container { grid-template-columns: 1fr 1fr !important; }
}

/* --- SMALL MOBILE (max 480px) --- */
@media (max-width: 480px) {
    .auth-container { width: 98vw !important; }
    .form-panel { padding: 24px 16px !important; }
    .overlay-panel { padding: 24px 16px !important; }

    .grid-container { gap: 10px; }
    .quick-stats-grid { grid-template-columns: 1fr 1fr !important; }
    .quick-actions { grid-template-columns: repeat(3, 1fr) !important; gap: 4px; }
    .quick-action-btn { font-size: 9px !important; padding: 8px 2px !important; }
    .quick-action-btn i { font-size: 14px !important; }

    .bank-card-balance { font-size: 20px !important; }
    .bank-card { padding: 14px !important; }

    .glass-card { padding: 12px !important; }

    .section-title { font-size: 13px !important; }

    .auth-card { padding: 20px 16px !important; }

    .btn { padding: 9px 12px !important; font-size: 12px !important; }

    .modal-card { border-radius: 12px; }

    /* Scroll horizontal para grillas anchas */
    .overflow-x-mobile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* --- LANDSCAPE MOBILE --- */
@media (max-height: 500px) and (orientation: landscape) {
    .page-inner { padding: 8px 12px; }
    .glass-card { padding: 10px !important; }
    #mini-player { max-height: 50px; }
}
