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

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8555;
    --dark-bg: #0d0d0d;
    --dark-card: #1a1a1a;
    --dark-sidebar: #111111;
    --dark-hover: #252525;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-muted: #666666;
    --border: #2a2a2a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: var(--dark-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.logo {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-white);
}

.logo-text span {
    color: var(--primary);
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-white);
}

.user-balance {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.user-balance span {
    color: var(--primary);
    font-weight: 600;
}

/* Navigation */
.nav-menu {
    padding: 0.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: var(--dark-hover);
    color: var(--text-white);
}

.nav-item.active {
    background: var(--dark-hover);
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.nav-item i {
    font-size: 1.125rem;
    width: 20px;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-badge.live {
    background: var(--danger);
    animation: pulse 2s infinite;
}

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

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 2rem;
    max-width: 100%;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Cards */
.card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-value.green {
    color: var(--success);
}

/* Live Activity */
.activity-feed {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.activity-feed::-webkit-scrollbar {
    height: 6px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.activity-item {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.activity-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.activity-action {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.activity-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Offers List */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-item {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.offer-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.offer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.offer-icon {
    width: 48px;
    height: 48px;
    background: var(--dark-hover);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.offer-details {
    flex: 1;
}

.offer-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.offer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.offer-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.offer-reward {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.offer-points {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.offer-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.offer-action:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--dark-hover);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s;
}

/* Streak */
.streak-card {
    background: linear-gradient(135deg, #ff6b35, #ff8555);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.streak-icon {
    font-size: 3rem;
}

.streak-info {
    flex: 1;
}

.streak-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.streak-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--dark-hover);
    color: var(--text-white);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--dark-card);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .activity-feed {
        flex-wrap: nowrap;
    }

    .offer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .offer-reward {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 101;
    background: var(--dark-card);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.badge-primary {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary);
}
