/* Dubai Loop Tracker Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: #121212;
    border-bottom: 1px solid #1a1a1a;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: #1a1a1a;
}

.nav-link.active {
    color: #f4c430;
    background: rgba(244, 196, 48, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.miles-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    border-radius: 8px;
}

.miles-icon {
    font-size: 20px;
}

.miles-info {
    display: flex;
    flex-direction: column;
}

.miles-value {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
}

.miles-label {
    font-size: 11px;
    font-weight: 500;
    color: #0a0a0a;
    opacity: 0.8;
}

.profile-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #f4c430;
}

/* Main Content */
.main-content {
    padding: 48px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: #8b5cf6;
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Loyalty Tier Section */
.loyalty-tier-section {
    margin-bottom: 48px;
}

.tier-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    border: 2px solid #f4c430;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 0 40px rgba(244, 196, 48, 0.2);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tier-icon {
    font-size: 48px;
}

.tier-info {
    flex: 1;
}

.tier-name {
    font-size: 28px;
    font-weight: 700;
    color: #f4c430;
    margin-bottom: 4px;
}

.tier-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.tier-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    color: #0a0a0a;
    font-weight: 700;
    border-radius: 8px;
    font-size: 14px;
}

.tier-progress {
    margin-bottom: 24px;
}

.progress-bar {
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f4c430 0%, #d4af37 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #9ca3af;
}

.tier-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.benefit-icon {
    color: #f4c430;
    font-weight: 700;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.25s ease;
}

.stat-card:hover {
    border-color: #f4c430;
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.1);
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #f4c430;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.stat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 12px;
    color: #8b5cf6;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.view-all-link {
    color: #f4c430;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.25s ease;
}

.view-all-link:hover {
    opacity: 0.8;
}

/* Badges Section */
.badges-section {
    margin-bottom: 48px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.badge-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.badge-card.unlocked {
    border-color: #f4c430;
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.1);
}

.badge-card.unlocked:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(244, 196, 48, 0.2);
}

.badge-card.locked {
    opacity: 0.5;
}

.badge-icon-large {
    font-size: 48px;
    margin-bottom: 12px;
}

.badge-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-description {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.badge-date {
    font-size: 12px;
    color: #f4c430;
}

.badge-progress {
    margin-top: 12px;
}

.progress-bar-small {
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 3px;
}

.progress-text-small {
    font-size: 11px;
    color: #9ca3af;
}

/* Chart Section */
.chart-section {
    margin-bottom: 48px;
}

.chart-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: #f4c430;
    color: #f4c430;
}

.filter-btn.active {
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    border-color: #f4c430;
    color: #0a0a0a;
}

.chart-container {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    height: 400px;
}

/* Sessions Section */
.sessions-section {
    margin-bottom: 48px;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.session-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
}

.session-card:hover {
    border-color: #f4c430;
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.1);
}

.session-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.session-icon.dubai-loop {
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
}

.session-icon.wellfit {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.session-content {
    flex: 1;
}

.session-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.session-details {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.session-tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 12px;
    color: #8b5cf6;
}

.session-meta {
    text-align: right;
}

.session-date {
    font-size: 13px;
    color: #9ca3af;
}

/* Challenges Section */
.challenges-section {
    margin-bottom: 48px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.challenge-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.25s ease;
}

.challenge-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.challenge-name {
    font-size: 18px;
    font-weight: 700;
}

.challenge-reward {
    padding: 4px 12px;
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    color: #0a0a0a;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.challenge-description {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.challenge-progress {
    margin-top: 16px;
}

/* Camp History Section */
.camp-history-section {
    margin-bottom: 48px;
}

.cta-btn-small {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.25s ease;
}

.cta-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.3);
}

.camp-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.camp-item {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.25s ease;
}

.camp-item:hover {
    border-color: #f4c430;
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.1);
}

.camp-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.camp-icon.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.camp-icon.upcoming {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.camp-content {
    flex: 1;
}

.camp-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.camp-details {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.camp-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.camp-stat {
    padding: 4px 12px;
    background: rgba(244, 196, 48, 0.1);
    border: 1px solid rgba(244, 196, 48, 0.3);
    border-radius: 12px;
    font-size: 12px;
    color: #f4c430;
}

.camp-tags {
    display: flex;
    gap: 8px;
}

/* CTA Section */
.cta-section {
    margin-bottom: 48px;
}

.cta-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    border: 2px solid #f4c430;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 0 40px rgba(244, 196, 48, 0.2);
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: #9ca3af;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.25s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    color: #0a0a0a;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
}

.cta-btn.secondary:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* Footer */
.footer {
    background: #121212;
    border-top: 1px solid #1a1a1a;
    padding: 32px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .tier-card {
        padding: 24px;
    }
    
    .tier-name {
        font-size: 24px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 32px 24px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .nav {
        display: none;
    }
}
