:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    
    --secondary: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    
    --accent: #f43f5e;
    --accent-light: #fb7185;
    --accent-dark: #e11d48;
    
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    
    --chart-primary: rgba(99, 102, 241, 0.8);
    --chart-secondary: rgba(16, 185, 129, 0.8);
    --chart-accent: rgba(244, 63, 94, 0.8);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --transition-normal: 0.3s ease;
    --transition-fast: 0.15s ease;
    
    --sidebar-width: 280px;
    --header-height: 70px;
    
    --code-bg: #1b1e2e;
    --code-text: #e2e8f0;
    --code-comment: #64748b;
    --code-keyword: #c678dd;
    --code-function: #61afef;
    --code-string: #98c379;
    --code-number: #d19a66;
    --code-operator: #56b6c2;
    --code-border: #2d3748;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="none" stroke-width="0.25" stroke="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.modal-open {
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}

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

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

.sidebar-nav {
    margin-top: 1rem;
    flex: 1;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-normal);
}

.sidebar-nav li a i {
    font-size: 1.2rem;
    min-width: 24px;
}

.sidebar-nav li a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar-nav li.active a {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.user-details {
    flex: 1;
}

.user-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.user-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-dark);
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.header-search i {
    margin-right: 0.75rem;
    color: var(--text-muted);
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.95rem;
    font-family: inherit;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

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

.date-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    border: none;
    outline: none;
}

.btn i {
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.45);
}

.btn-light {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-light:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-close {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.notifications {
    position: relative;
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.notifications:hover {
    background: var(--bg-card-hover);
}

.notifications i {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.market-ticker {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ticker-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.5rem 0;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-scroll::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    min-width: 160px;
}

.ticker-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.ticker-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--danger);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-gradient);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.users-icon {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.earnings-icon {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.platform-icon {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.transactions-icon {
    background: linear-gradient(135deg, var(--warning), #fb923c);
    color: white;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

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

.stat-content h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-chart {
    height: 40px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.3;
    background: linear-gradient(to top right, transparent 0%, var(--primary-light) 100%);
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    height: calc(100vh - 365px);
}

.chart-section {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.transactions-section {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.performers-section {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.map-section {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.chart-container {
    flex: 1;
    padding: 1.5rem;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-controls button {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.chart-controls button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.chart-controls button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.primary {
    background: var(--chart-primary);
}

.legend-color.secondary {
    background: var(--chart-secondary);
}

.transactions-section .card-header {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.2), transparent);
    padding: 1.5rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.live-indicator .pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.transaction-feed {
    padding: 0.5rem 1rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: none;
}

.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 0.75rem;
}

.transaction:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--success);
    transform: translateX(8px);
}

.transaction::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s;
    pointer-events: none;
}

.transaction:hover::after {
    transform: translateX(100%);
}

.transaction-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.transaction-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

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

.transaction-name {
    font-weight: 700;
    font-size: 1rem;
}

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

.transaction-amount {
    font-weight: 700;
    color: var(--success);
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.transaction-stats {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.stat-amount {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.view-all {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.view-all:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.performer-list {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.performer:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
}

.performer-rank {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
}

.performer:nth-child(1) .performer-rank {
    color: gold;
}

.performer:nth-child(2) .performer-rank {
    color: silver;
}

.performer:nth-child(3) .performer-rank {
    color: #cd7f32;
}

.performer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.performer-info {
    flex: 1;
}

.performer-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.performer-earnings {
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
}

.performer-chart {
    width: 60px;
    height: 30px;
    background: linear-gradient(to top right, transparent 0%, rgba(34, 197, 94, 0.2) 100%);
    opacity: 0.7;
}

.map-container {
    flex: 1;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.world-map-placeholder:before {
    content: '';
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='smallGrid' width='8' height='8' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 8 0 L 0 0 0 8' fill='none' stroke='rgba(255, 255, 255, 0.05)' stroke-width='0.5'/%3E%3C/pattern%3E%3Cpattern id='grid' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='url(%23smallGrid)'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255, 255, 255, 0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E");
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.region-stats {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.region-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 30%;
}

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

.region-bar {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
}

.region-stat:nth-child(1) .bar-fill {
    background: var(--primary);
}

.region-stat:nth-child(2) .bar-fill {
    background: var(--secondary);
}

.region-stat:nth-child(3) .bar-fill {
    background: var(--accent);
}

.region-value {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

.pulse-animation {
    animation: card-pulse 2s infinite;
}

.glow-animation {
    animation: card-glow 3s infinite;
}

.float-animation {
    animation: card-float 4s ease-in-out infinite;
}

.shimmer-animation {
    position: relative;
    overflow: hidden;
}

.shimmer-animation::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: shimmer 3s infinite;
    transform: rotate(45deg);
}

@keyframes card-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes card-glow {
    0% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    100% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
    }
}

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

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

.contract-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contract-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-title i {
    font-size: 1.4rem;
    color: var(--primary);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: var(--code-bg);
}

.editor {
    display: flex;
    height: 100%;
    overflow: hidden;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.line-numbers {
    width: 60px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    text-align: right;
    color: var(--text-muted);
    user-select: none;
    overflow-y: hidden;
}

.line-number {
    padding: 0 1rem;
    color: var(--text-muted);
}

.code-content {
    flex: 1;
    padding: 1rem;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
    overflow-y: auto;
    color: var(--code-text);
    position: relative;
}

.code-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.code-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.code-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.copy-success {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--success);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-success.show {
    transform: translateY(0);
    opacity: 1;
}

.copy-success i {
    font-size: 1.2rem;
}

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .chart-section {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .transactions-section {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .performers-section {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .map-section {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 1100px) {
    .sidebar {
        width: 80px;
        padding: 1.5rem 0.75rem;
    }
    
    .logo-text, .sidebar-nav li a span, .user-details {
        display: none;
    }
    
    .logo-icon {
        margin: 0 auto;
    }
    
    .sidebar-nav li a {
        justify-content: center;
        padding: 1rem;
    }
    
    .sidebar-nav li a i {
        margin: 0;
        font-size: 1.4rem;
    }
    
    .user-avatar {
        margin: 0 auto;
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .sidebar-header {
        margin-bottom: 0;
    }
    
    .sidebar-nav {
        display: none;
    }
    
    .sidebar-footer {
        border-top: none;
        padding-top: 0;
    }
    
    .main-content {
        height: calc(100vh - 80px);
    }
    
    .top-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-search {
        width: 100%;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .chart-section,
    .transactions-section,
    .performers-section,
    .map-section {
        grid-column: 1 / 2;
        height: 350px;
        margin-bottom: 1.5rem;
    }
    
    .chart-section {
        grid-row: 1 / 2;
    }
    
    .transactions-section {
        grid-row: 2 / 3;
    }
    
    .performers-section {
        grid-row: 3 / 4;
    }
    
    .map-section {
        grid-row: 4 / 5;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .header-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .date-display {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .editor {
        font-size: 0.8rem;
    }

    .line-numbers {
        width: 40px;
    }

    .line-number {
        padding: 0 0.5rem;
    }
}