/**
 * HUBIONIS MODERN DASHBOARD 2026
 * Professional UX/UI Design with Latest Trends
 */

/* ===================================
   CSS VARIABLES
   ================================== */

:root {
    --dashboard-bg: #0A1A1A;
    --card-glass-bg: rgba(31, 85, 85, 0.4);
    --card-glass-border: rgba(127, 255, 0, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: #C0C0C0;
    --text-tertiary: #8892A6;
    --accent-primary: #7FFF00;
    --accent-secondary: #6DE800;
    --success: #4CAF50;
    --warning: #FFA726;
    --error: #FF6B6B;
    --info: #29B6F6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7FFF00 0%, #6DE800 100%);
    --gradient-glass: linear-gradient(135deg, 
        rgba(31, 85, 85, 0.6) 0%, 
        rgba(15, 42, 42, 0.4) 100%
    );
    --gradient-border: linear-gradient(135deg, 
        rgba(127, 255, 0, 0.4), 
        rgba(127, 255, 0, 0.1)
    );
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(127, 255, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ===================================
   DASHBOARD LAYOUT
   ================================== */

.dashboard-body {
    background: var(--dashboard-bg);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

.dashboard-modern {
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, 
        #0F2A2A 0%, 
        #0A1A1A 50%, 
        #050F0F 100%
    );
}

@media (max-width: 768px) {
    .dashboard-modern {
        padding: 1.5rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .dashboard-modern {
        padding: 1rem 0 2rem;
    }
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem !important;
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 0 0.5rem !important;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* My Events Section - Hidden by default for attendees */
.my-events-section {
    display: none; /* Hidden by default, shown via JS for organizers/admins */
}

/* ===================================
   COLLAPSIBLE SECTION TOGGLES
   ================================== */

.dash-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0;
}

.dash-section-toggle:hover {
    background: linear-gradient(135deg, rgba(127,255,0,0.06) 0%, rgba(127,255,0,0.02) 100%);
    border-color: rgba(127,255,0,0.2);
    box-shadow: 0 4px 20px rgba(127,255,0,0.08);
}

.dash-section-toggle[aria-expanded="true"] {
    border-radius: 14px 14px 0 0;
    border-bottom-color: rgba(255,255,255,0.04);
    background: linear-gradient(135deg, rgba(127,255,0,0.08) 0%, rgba(127,255,0,0.03) 100%);
    border-color: rgba(127,255,0,0.15);
}

.dash-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-toggle-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.dash-toggle-title {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.dash-toggle-subtitle {
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.dash-toggle-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255,255,255,0.6);
}

.dash-section-toggle:hover .dash-toggle-chevron {
    background: rgba(127,255,0,0.1);
    color: #7FFF00;
}

.dash-section-toggle[aria-expanded="true"] .dash-toggle-chevron {
    transform: rotate(180deg);
    background: rgba(127,255,0,0.12);
    color: #7FFF00;
}

.dash-section-body {
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    animation: dashSectionSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-section-body .widget-card {
    border-radius: 0;
    border: none;
    margin: 0;
}

@keyframes dashSectionSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.dash-section-toggle .badge-count {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
    background: rgba(127,255,0,0.15);
    color: #7FFF00;
    font-weight: 600;
}

.dash-section-toggle .ai-content-lab-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(59,130,246,0.2));
    color: #a78bfa;
    font-weight: 600;
}

/* ===================================
   HERO HEADER
   ================================== */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 2px solid var(--card-glass-border);
    position: relative;
    overflow: hidden;
}

/* MOBILE: Complete redesign */
@media (max-width: 1024px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.75rem 1.25rem !important;
        border-radius: 16px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .dashboard-hero {
        padding: 1.5rem 1rem !important;
        gap: 1.5rem;
    }
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(127, 255, 0, 0.1) 0%, 
        transparent 70%
    );
    animation: heroGlow 15s linear infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* User Avatar Section */
.user-avatar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .user-avatar-section {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .user-avatar-section {
        margin-bottom: 1rem;
    }
}

.avatar-ring {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F2A2A;
    border: 4px solid rgba(127, 255, 0, 0.3);
    box-shadow: 
        0 0 0 8px rgba(127, 255, 0, 0.1),
        0 10px 40px rgba(127, 255, 0, 0.3);
    transition: var(--transition-base);
}

@media (max-width: 768px) {
    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border: 3px solid rgba(127, 255, 0, 0.3);
        box-shadow: 
            0 0 0 6px rgba(127, 255, 0, 0.1),
            0 8px 30px rgba(127, 255, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

.avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 8px rgba(127, 255, 0, 0.2),
        0 15px 50px rgba(127, 255, 0, 0.5);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #0F2A2A;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 15px var(--success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.user-info {
    flex: 1;
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 1.85rem !important;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.5rem !important;
    }
}

.welcome-title span#user-name-display {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(-4deg); }
    60% { transform: rotate(10deg); }
}

.user-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.user-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .user-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .user-meta {
        gap: 0.75rem;
    }
}

.badge-role,
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .badge-role,
    .badge-status {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }
}

.admin-badge {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.active-badge {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
    border: 2px solid var(--success);
}

.join-date {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Quick Stats Bar */
.quick-stats-bar {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(10, 26, 26, 0.5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(127, 255, 0, 0.1);
}

@media (max-width: 1024px) {
    .quick-stats-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .quick-stats-bar {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .quick-stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 0.75rem;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 480px) {
    .stat-item {
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
}

.stat-icon {
    font-size: 2rem;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 1.25rem;
    }
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(127, 255, 0, 0.2);
}

/* Completion Widget */
.completion-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.progress-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

@media (max-width: 768px) {
    .progress-ring {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .progress-ring {
        width: 120px;
        height: 120px;
    }
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.ring-background {
    fill: none;
    stroke: rgba(127, 255, 0, 0.1);
    stroke-width: 10;
}

.ring-progress {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 10px rgba(127, 255, 0, 0.6));
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.progress-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.btn-complete-profile {
    padding: 0.75rem 2rem;
    background: var(--gradient-primary);
    color: #0F2A2A;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.4);
}

.btn-complete-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 255, 0, 0.6);
}

/* ===================================
   STATS GRID
   ================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
}

.stat-card {
    background: var(--card-glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--card-glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(127, 255, 0, 0.1), 
        transparent
    );
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.tickets-icon {
    background: rgba(127, 255, 0, 0.15);
}

.events-icon {
    background: rgba(41, 182, 246, 0.15);
    color: var(--info);
}

.favorites-icon {
    background: rgba(255, 107, 107, 0.15);
    color: var(--error);
}

.connections-icon {
    background: rgba(255, 167, 38, 0.15);
    color: var(--warning);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-trend.up {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.stat-body {
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mini-chart {
    height: 50px;
}

.stat-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(127, 255, 0, 0.1);
}

.stat-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.stat-link:hover {
    color: var(--accent-secondary);
}

/* ===================================
   CONTENT GRID
   ================================== */

.dashboard-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-content-grid {
        gap: 1.25rem;
    }
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .content-column {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-column {
        gap: 1rem;
    }
}

/* ===================================
   GLASS CARD
   ================================== */

.glass-card {
    background: var(--card-glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--card-glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition-base);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
}

.glass-card:hover {
    border-color: rgba(127, 255, 0, 0.3);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* Widget Header */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.widget-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .widget-header h3 {
        font-size: 1.25rem;
    }
    
    .header-left {
        flex-wrap: wrap;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .widget-header h3 {
        font-size: 1.1rem;
    }
    
    .widget-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
}

/* Widget Body */
.widget-body {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .widget-body {
        padding: 0;
    }
}

/* AI Badge */
.ai-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, 
        rgba(127, 255, 0, 0.2), 
        rgba(127, 255, 0, 0.1)
    );
    border-radius: var(--radius-full);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ai-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .ai-badge {
        padding: 0.3rem 0.55rem;
        font-size: 0.65rem;
        gap: 0.3rem;
    }
    
    .ai-badge svg {
        width: 10px;
        height: 10px;
    }
}

.btn-refresh {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .btn-refresh {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .btn-refresh {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .btn-refresh {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .btn-refresh {
        width: 44px;
        height: 44px;
    }
}

.btn-refresh:hover {
    background: rgba(127, 255, 0, 0.2);
    transform: rotate(180deg);
}

.btn-filter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--accent-primary);
}

.btn-filter:hover {
    background: rgba(127, 255, 0, 0.2);
}

/* Link View All */
.link-view-all {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .link-view-all {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .link-view-all {
        font-size: 0.8rem;
    }
}

.link-view-all:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ===================================
   RECOMMENDATIONS
   ================================== */

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .recommendations-list {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .recommendations-list {
        gap: 0.5rem;
    }
}

/* Recommendation Item (when loaded dynamically) */
.recommendation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10, 26, 26, 0.3);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .recommendation-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .recommendation-item {
        padding: 0.75rem;
        gap: 0.5rem;
        flex-direction: column;
    }
}

.recommendation-item:hover {
    background: rgba(10, 26, 26, 0.5);
    border-color: rgba(127, 255, 0, 0.3);
    transform: translateY(-2px);
}

.recommendation-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .recommendation-item img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .recommendation-item img {
        width: 100%;
        height: 120px;
    }
}

.recommendation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recommendation-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

@media (max-width: 480px) {
    .recommendation-content h4 {
        font-size: 0.95rem;
    }
}

.recommendation-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 480px) {
    .recommendation-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .recommendation-skeleton {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .recommendation-skeleton {
        gap: 0.5rem;
    }
    
    .skeleton-img {
        width: 60px;
        height: 60px;
    }
}

.recommendation-skeleton {
    display: flex;
    gap: 1rem;
    animation: skeletonPulse 1.5s infinite;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .recommendation-skeleton {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .recommendation-skeleton {
        gap: 0.5rem;
    }
    
    .skeleton-img {
        width: 60px;
        height: 60px;
    }
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: rgba(127, 255, 0, 0.1);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .skeleton-img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .skeleton-img {
        width: 60px;
        height: 60px;
    }
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.skeleton-line {
    height: 16px;
    background: rgba(127, 255, 0, 0.1);
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

/* ===================================
   EVENTS TIMELINE
   ================================== */

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .events-timeline {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .events-timeline {
        gap: 0.5rem;
    }
}

/* Event Timeline Item (when loaded dynamically) */
.event-timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10, 26, 26, 0.3);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .event-timeline-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .event-timeline-item {
        padding: 0.75rem;
        gap: 0.5rem;
        flex-direction: column;
        border-left-width: 2px;
    }
}

.event-timeline-item:hover {
    background: rgba(10, 26, 26, 0.5);
    transform: translateX(5px);
}

.event-timeline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.75rem;
    background: rgba(127, 255, 0, 0.1);
    border-radius: var(--radius-md);
}

@media (max-width: 480px) {
    .event-timeline-date {
        flex-direction: row;
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

.event-timeline-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

@media (max-width: 480px) {
    .event-timeline-date .day {
        font-size: 1.25rem;
    }
}

.event-timeline-date .month {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .event-timeline-date .month {
        font-size: 0.8rem;
    }
}

.event-timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-timeline-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

@media (max-width: 480px) {
    .event-timeline-content h4 {
        font-size: 0.95rem;
    }
}

.event-timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 480px) {
    .event-timeline-content p {
        font-size: 0.8rem;
    }
}

.event-timeline-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

@media (max-width: 480px) {
    .event-timeline-time {
        font-size: 0.75rem;
    }
}

/* ===================================
   ACHIEVEMENTS
   ================================== */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(10, 26, 26, 0.5);
    border: 2px solid rgba(127, 255, 0, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    cursor: pointer;
}

.achievement.unlocked {
    border-color: var(--accent-primary);
    background: rgba(127, 255, 0, 0.1);
}

.achievement.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement:hover {
    transform: translateY(-5px);
}

.achievement-icon {
    font-size: 2.5rem;
}

.achievement-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.achievement-count {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ===================================
   ACTIVITY FEED
   ================================== */

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10, 26, 26, 0.3);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.activity-item:hover {
    background: rgba(10, 26, 26, 0.5);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(76, 175, 80, 0.2);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-content strong {
    color: var(--accent-primary);
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ===================================
   QUICK ACTIONS
   ================================== */

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 26, 26, 0.5);
    border: 2px solid rgba(127, 255, 0, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-base);
}

.action-card:hover {
    background: rgba(127, 255, 0, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon.browse {
    background: rgba(127, 255, 0, 0.15);
    color: var(--accent-primary);
}

.action-icon.profile {
    background: rgba(41, 182, 246, 0.15);
    color: var(--info);
}

.action-icon.tickets {
    background: rgba(255, 167, 38, 0.15);
    color: var(--warning);
}

.action-icon.settings {
    background: rgba(200, 200, 200, 0.15);
    color: #C8C8C8;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ===================================
   FLOATING ACTION BUTTON (FAB)
   ================================== */

.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 8px 24px rgba(127, 255, 0, 0.4);
    cursor: pointer;
    display: none; /* Hidden by default, shown via JS for organizers/admins */
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 1000;
    color: #0F2A2A;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(127, 255, 0, 0.6);
}

.fab:active {
    transform: scale(0.95);
}

/* Mobile FAB positioning */
@media (max-width: 768px) {
    .fab {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        width: 56px !important;
        height: 56px !important;
    }
}


@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 1.5rem 0.5rem;
    }
    
    .empty-state h4 {
        font-size: 1rem !important;
    }
    
    .empty-state p {
        font-size: 0.85rem !important;
    }
}
@media (max-width: 480px) {
    .fab {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 52px !important;
        height: 52px !important;
    }
}

/* ===================================
   EMPTY STATE
   ================================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 1.5rem 0.5rem;
    }
    
    .empty-state h4 {
        font-size: 1rem !important;
    }
    
    .empty-state p {
        font-size: 0.85rem !important;
    }
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

/* ===================================
   CHART LEGEND
   ================================== */

.chart-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.events {
    background: var(--accent-primary);
}

.legend-dot.connections {
    background: var(--info);
}

/* ===================================
   ANIMATIONS
   ================================== */

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

.glass-card {
    animation: fadeInUp 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; }

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 1400px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .dashboard-hero {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-stats-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .dashboard-hero {
        padding: 1.5rem;
    }
    
    .user-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
    
    .dashboard-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .widget-card {
        padding: 1.25rem;
    }
    
    .hero-carousel-section,
    .my-events-section {
        margin-top: 1.5rem !important;
    }

    .dash-section-toggle {
        padding: 0.85rem 1rem;
    }

    .dash-toggle-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 0 0.75rem;
    }
    
    .dashboard-hero {
        padding: 1rem !important;
    }
    
    .dashboard-hero h1,
    .welcome-title {
        font-size: 1.75rem !important;
    }
    
    .user-subtitle {
        font-size: 0.875rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .fab {
        width: 52px;
        height: 52px;
    }
    
    /* FIX: Achievements grid (3 → 2 columns) */
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    /* FIX: Touch targets (min 48px) */
    button, 
    .btn, 
    a.btn, 
    .achievement {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 16px;
    }
    
    /* FIX: My Events cards */
    .my-events-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   NAVBAR DASHBOARD
   ================================== */

.navbar-dashboard {
    background: rgba(10, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(127, 255, 0, 0.1);
}
