* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #6366f1);
    border-radius: 10px
}

.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3)
}

.dark .glass {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1)
}

.glass-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(0, 0, 0, 0.06)
}

.dark .glass-sidebar {
    background: rgba(15, 23, 42, 0.97);
    border-right: 1px solid rgba(255, 255, 255, 0.08)
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.04)
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08)
}

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.card-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.1)
}

.dark .card-lift:hover {
    box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.35)
}

.btn-ripple {
    position: relative;
    overflow: hidden
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform .5s, opacity 1s
}

.btn-ripple:active::after {
    transform: scale(0);
    opacity: .3;
    transition: 0s
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap
}

.sidebar-link:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    color: #0ea5e9;
    transform: translateX(4px)
}

.sidebar-link.active {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    box-shadow: 0 8px 25px -5px rgba(14, 165, 233, 0.4)
}

.sidebar-link.active i {
    color: white
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0
}

.dark .sidebar-link {
    color: #94a3b8
}

.dark .sidebar-link:hover {
    color: #38bdf8;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15))
}

.dark .sidebar-link.active {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white
}

.sidebar-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 12px;
    background: #0f172a;
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 999
}

.sidebar-link:hover .sidebar-tooltip {
    opacity: 1
}

.sidebar-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #0f172a
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes dot-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5
    }
}

@keyframes music-bounce {

    0%,
    100% {
        transform: scaleY(1)
    }

    50% {
        transform: scaleY(0.3)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

@keyframes shine {
    0% {
        background-position: -200% 0
    }

    100% {
        background-position: 200% 0
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4)
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.7)
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards
}

.animate-float {
    animation: float 3s ease-in-out infinite
}

.animate-glow {
    animation: glow 2s ease-in-out infinite
}

.delay-100 {
    animation-delay: .1s
}

.delay-200 {
    animation-delay: .2s
}

.delay-300 {
    animation-delay: .3s
}

.delay-400 {
    animation-delay: .4s
}

.delay-500 {
    animation-delay: .5s
}

.delay-600 {
    animation-delay: .6s
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    gap: 4px
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669
}

.dark .badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706
}

.dark .badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24
}

.badge-danger {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48
}

.dark .badge-danger {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185
}

.badge-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7
}

.dark .badge-info {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8
}

.badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed
}

.dark .badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa
}

.badge-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: dot-pulse 2s infinite
}

.dark .notification-dot {
    border-color: #0f172a
}

.music-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px
}

.music-bar {
    width: 3px;
    background: linear-gradient(to top, #0ea5e9, #6366f1);
    border-radius: 2px;
    animation: music-bounce 0.8s ease infinite
}

.music-bar:nth-child(1) {
    height: 40%
}

.music-bar:nth-child(2) {
    height: 70%;
    animation-delay: .1s
}

.music-bar:nth-child(3) {
    height: 50%;
    animation-delay: .2s
}

.music-bar:nth-child(4) {
    height: 90%;
    animation-delay: .3s
}

.music-bar:nth-child(5) {
    height: 60%;
    animation-delay: .4s
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 22px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2)
}

.grid {
    min-width: 0
}

.grid>* {
    min-width: 0
}

main {
    overflow-x: hidden
}

.chart-container {
    position: relative;
    width: 100%;
    overflow: hidden
}

[id$="Chart"] {
    max-width: 100%;
    overflow: hidden
}

.apexcharts-canvas {
    max-width: 100% !important
}

.apexcharts-svg {
    overflow: hidden !important
}

/* ===== PROFILE STYLES ===== */
.profile-cover {
    background: linear-gradient(135deg, #0c4a6e 0%, #1e3a5f 30%, #312e81 70%, #1e1b4b 100%);
    position: relative;
    overflow: hidden
}

.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 50%)
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.avatar-ring {
    position: relative;
    padding: 5px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
    border-radius: 50%;
    background-size: 200% 200%;
    animation: shine 3s ease-in-out infinite
}

.tab-pill {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap
}

.dark .tab-pill {
    color: #94a3b8
}

.tab-pill.active {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    box-shadow: 0 6px 15px -4px rgba(14, 165, 233, 0.4)
}

.tab-pill:hover:not(.active) {
    background: rgba(14, 165, 233, 0.05);
    color: #0ea5e9
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.3s;
    outline: none
}

.dark .form-input {
    background: #1e293b;
    color: #e2e8f0
}

.form-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1)
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: block
}

.dark .form-label {
    color: #94a3b8
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0
}

.dark .toggle-switch {
    background: #475569
}

.toggle-switch.on {
    background: linear-gradient(135deg, #0ea5e9, #6366f1)
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2)
}

.toggle-switch.on .toggle-knob {
    left: 22px
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9
}

.dark .setting-row {
    border-bottom-color: #1e293b
}

.setting-row:last-child {
    border-bottom: none
}

.device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s
}

.device-item:hover {
    background: rgba(14, 165, 233, 0.05)
}

.session-active {
    position: relative
}

.session-active::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2)
}

.tier-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden
}

.dark .progress-track {
    background: #334155
}

.progress-value {
    height: 100%;
    border-radius: 999px;
    transition: width 1.5s ease-in-out
}

@media(max-width:1024px) {
    .sidebar-desktop {
        display: none
    }
}

@media(min-width:1025px) {
    .mobile-sidebar-btn {
        display: none
    }
}