/* ============================================
   ACCOUNT DASHBOARD - MODERN DESIGN
   Mobile-First Responsive Layout
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-dark: #0a0e27;
    --primary-blue: #1a1f3a;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --white: #ffffff;
    --gray: #6b7280;
    --dark-gray: #1f2937;
    
    /* Dashboard Background Color - Change here to update entire dashboard */
    --dashboard-bg-color: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    
    --sidebar-width: 280px;
    --header-height: 80px;
    --mobile-header-height: 70px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', 'Segoe UI', sans-serif;
    background: var(--dashboard-bg-color);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Logo */
.dashboard-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.dashboard-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.dashboard-logo:hover img {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    transform: scale(1.05);
}

/* Header Info */
.dashboard-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Location Info */
.user-location-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 50px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding-right: 15px;
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.location-item:last-child {
    border-right: none;
    padding-right: 0;
}

.location-item i {
    color: #00d4ff;
    font-size: 14px;
}

.location-label {
    color: #9ca3af;
    font-weight: 500;
}

.location-value {
    color: #00d4ff;
    font-weight: 700;
}

.server-time {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
}

.server-time i {
    color: #00d4ff;
    font-size: 16px;
}

.server-time-label {
    color: #9ca3af;
    margin-right: 5px;
}

.server-time-value {
    color: #00d4ff;
    font-weight: 600;
}

/* Header Actions */
.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.header-btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.header-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.header-btn-outline {
    background: transparent;
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

.header-btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
    order: -1;
}

.mobile-toggle-line {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .mobile-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .mobile-toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .mobile-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: rgba(26, 31, 58, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 212, 255, 0.2);
    overflow-y: auto;
    z-index: 900;
    transition: all 0.3s ease;
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Mobile Location Info */
.mobile-location-info {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.mobile-location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
}

.mobile-location-item i {
    color: #00d4ff;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.mobile-location-item span {
    color: #ffffff;
    font-weight: 600;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu-item {
    margin: 4px 12px;
    padding: 0;
    border-bottom: none;
}

.sidebar-menu-item:last-child {
    margin-bottom: 15px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: #d1d5db;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00d4ff 0%, #7c3aed 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.sidebar-menu-link::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    color: #00d4ff;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.sidebar-menu-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.sidebar-menu-link:hover::before {
    transform: scaleY(1);
}

.sidebar-menu-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-menu-link.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(124, 58, 237, 0.15) 100%);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-menu-link.active::before {
    transform: scaleY(1);
}

.sidebar-menu-link.active::after {
    opacity: 1;
    transform: translateX(0);
    animation: pulse 2s ease-in-out infinite;
}

.sidebar-menu-link.active .sidebar-menu-icon {
    color: #00d4ff;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.sidebar-menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-menu-link:hover .sidebar-menu-icon {
    background: rgba(0, 212, 255, 0.2);
    transform: rotate(-5deg) scale(1.05);
}

.sidebar-menu-link.active .sidebar-menu-icon {
    background: rgba(0, 212, 255, 0.25);
}

.sidebar-menu-text {
    flex: 1;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px 30px 30px 15px;
    min-height: calc(100vh - var(--header-height));
}

.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   DASHBOARD FOOTER
   ============================================ */
.dashboard-footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px 30px;
    margin-left: var(--sidebar-width);
}

.dashboard-footer-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.footer-copyright strong {
    color: #00d4ff;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-link:hover {
    color: #00d4ff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media screen and (max-width: 1024px) {
    :root {
        --sidebar-width: 250px;
    }
    
    .dashboard-header {
        padding: 0 20px;
    }
    
    .server-time {
        font-size: 13px;
        padding: 8px 15px;
    }
    
    .dashboard-main {
        padding: 20px;
    }
}

/* Mobile */
@media screen and (max-width: 900px) {
    :root {
        --header-height: var(--mobile-header-height);
    }
    
    .dashboard-header {
        height: var(--mobile-header-height);
        padding: 0 15px;
    }
    
    .dashboard-logo img {
        height: 40px;
    }
    
    /* Hide desktop header items */
    .user-location-info {
        display: none;
    }
    
    .server-time {
        display: none;
    }
    
    .dashboard-header-actions {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Show mobile location info */
    .mobile-location-info {
        display: flex !important;
    }
    
    /* Mobile Sidebar */
    .dashboard-sidebar {
        transform: translateX(-100%);
        top: var(--mobile-header-height);
        height: calc(100vh - var(--mobile-header-height));
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1050;
        background: rgba(26, 31, 58, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    /* Mobile Overlay */
    .sidebar-overlay {
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Main content full width on mobile */
    .dashboard-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .dashboard-footer {
        margin-left: 0;
        padding: 15px;
    }
    
    .dashboard-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .dashboard-logo img {
        height: 35px;
    }
    
    .sidebar-menu-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .dashboard-main {
        padding: 10px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

/* ============================================
   SECURITY WARNING CARD
   ============================================ */
.security-warning-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    animation: slideUp 0.5s ease-out;
}

.warning-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    font-size: 28px;
    color: #ef4444;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin: 0 0 8px 0;
}

.warning-text {
    font-size: 14px;
    color: #d1d5db;
    margin: 0;
    line-height: 1.6;
}

.warning-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    flex-shrink: 0;
}

.warning-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

/* ============================================
   USER DETAILS CARD
   ============================================ */
.user-details-card {
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    animation: slideUp 0.5s ease-out;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
    position: relative;
}

.user-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 50%, #00d4ff 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.user-details-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.user-details-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.user-avatar {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
    border-radius: 50%;
    font-size: 42px;
    color: #00d4ff;
    flex-shrink: 0;
    border: 3px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    position: relative;
    z-index: 1;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 1;
}

.user-email {
    font-size: 15px;
    color: #b0b7c3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.user-email::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.edit-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.edit-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.edit-profile-btn:hover::before {
    left: 100%;
}

.edit-profile-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
    border-color: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    padding: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 35px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.detail-item:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    transform: translateX(5px);
}

.detail-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border-radius: 12px;
    font-size: 22px;
    color: #00d4ff;
    flex-shrink: 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 17px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 212, 255, 0.2);
}

.status-enabled {
    color: #10b981 !important;
}

.status-disabled {
    color: #ef4444 !important;
}

/* ============================================
   DASHBOARD CARDS & STATS
   ============================================ */
.dashboard-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.page-title-gradient {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.page-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff 0%, #7c3aed 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-radius: 12px;
    font-size: 28px;
    color: #00d4ff;
}

.stat-card-info {
    flex: 1;
}

.stat-card-label {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-card {
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.info-card-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-body {
    padding: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 15px;
    color: #9ca3af;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
}

.info-value-highlight {
    color: #00d4ff;
}

.info-card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.info-card-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.info-card-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

/* Referral Link Box */
.referral-box {
    background: rgba(26, 31, 58, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.referral-label {
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 12px;
    font-weight: 600;
}

.referral-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.referral-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #00d4ff;
    font-size: 14px;
    font-family: monospace;
}

.referral-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* ============================================
   ADVANCED ANIMATIONS & EFFECTS
   ============================================ */

/* Keyframe Animations */
@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply Animations */
.dashboard-sidebar.active {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay.active {
    animation: fadeIn 0.3s ease-out;
}

.dashboard-page-header {
    animation: slideDown 0.6s ease-out;
}

.security-warning-card {
    animation: slideUp 0.5s ease-out, glow 2s ease-in-out infinite;
}

.user-details-card {
    animation: slideUp 0.6s ease-out;
}

.stat-card {
    animation: slideUp 0.5s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.info-card {
    animation: slideUp 0.5s ease-out;
}

.info-card:nth-child(1) { animation-delay: 0.2s; }
.info-card:nth-child(2) { animation-delay: 0.3s; }
.info-card:nth-child(3) { animation-delay: 0.4s; }

.referral-box {
    animation: slideUp 0.5s ease-out;
    animation-delay: 0.3s;
}

/* Hover Effects - Enhanced */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.stat-card:hover::after {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.stat-card-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
    animation: float 2s ease-in-out infinite;
}

.stat-card-value {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card-value {
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Info Card Hover Effects */
.info-card {
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.info-card-title {
    transition: all 0.3s ease;
}

.info-card:hover .info-card-title {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

/* Button Hover Effects */
.page-action-btn,
.warning-action-btn,
.edit-profile-btn,
.info-card-btn,
.referral-copy-btn {
    position: relative;
    overflow: hidden;
}

.page-action-btn::before,
.warning-action-btn::before,
.edit-profile-btn::before,
.info-card-btn::before,
.referral-copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.page-action-btn:hover::before,
.warning-action-btn:hover::before,
.edit-profile-btn:hover::before,
.info-card-btn:hover::before,
.referral-copy-btn:hover::before {
    width: 300px;
    height: 300px;
}

.page-action-btn:active,
.warning-action-btn:active,
.edit-profile-btn:active,
.info-card-btn:active,
.referral-copy-btn:active {
    transform: scale(0.95);
}

/* User Details Card Hover Effects */
.user-avatar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-details-header:hover .user-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.detail-item {
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.detail-item:hover::before {
    transform: scaleY(1);
}

.detail-icon {
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
}

.detail-value {
    transition: all 0.3s ease;
}

.detail-item:hover .detail-value {
    color: #00d4ff;
}

/* Referral Box Hover Effects */
.referral-box {
    position: relative;
    overflow: hidden;
}

.referral-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #7c3aed, #00d4ff);
    background-size: 400%;
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: shimmer 3s linear infinite;
}

.referral-box:hover::before {
    opacity: 1;
}

.referral-link-input {
    transition: all 0.3s ease;
}

.referral-link-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: scale(1.02);
}

/* Security Warning Pulse Effect */
.warning-icon {
    animation: bounce 2s ease-in-out infinite;
}

/* Sidebar Menu Hover Effects */
.sidebar-menu-icon {
    transition: all 0.3s ease;
}

.sidebar-menu-link:hover .sidebar-menu-icon {
    transform: scale(1.2) rotate(10deg);
    color: #00d4ff;
}

.sidebar-menu-link.active .sidebar-menu-icon {
    color: #00d4ff;
    transform: scale(1.1);
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.page-title-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS FOR CARDS
   ============================================ */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    .referral-link-container {
        flex-direction: column;
    }
    
    .referral-copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-card-footer {
        flex-direction: column;
    }
    
    /* Security Warning Card */
    .security-warning-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .warning-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* User Details Card */
    .user-details-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .user-name {
        font-size: 24px;
    }
    
    .edit-profile-btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-details-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        border-right: none;
        padding: 20px;
    }
    
    .detail-item:last-child {
        border-bottom: none;
    }
}
