/**
 * YM Arena - Professional Tournament Platform Styles
 * Ultra-modern design with glassmorphism, gradients, and animations
 */

/* ============================================
   CSS Variables & Design Tokens
   ============================================ */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-tertiary: #151520;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.02);

    /* Accent Colors */
    --accent-primary: #8b5cf6;
    --accent-primary-rgb: 139, 92, 246;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #f97316;

    /* Status Colors */
    --green: #10b981;
    --green-rgb: 16, 185, 129;
    --red: #ef4444;
    --red-rgb: 239, 68, 68;
    --yellow: #f59e0b;
    --yellow-rgb: 245, 158, 11;
    --blue: #3b82f6;
    --gold: #fbbf24;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(139, 92, 246, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);

    /* Sizing */
    --sidebar-width: 260px;
    --topbar-height: 70px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   App Layout
   ============================================ */
.arena-app {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

/* ============================================
   Sidebar Styles
   ============================================ */
.arena-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg,
            rgba(15, 15, 25, 0.95) 0%,
            rgba(10, 10, 18, 0.98) 100%);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-label {
    flex: 1;
}

.nav-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.nav-badge.live {
    background: linear-gradient(135deg, var(--red), #dc2626);
    color: white;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.user-status.online {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-rank {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gold);
}

.user-settings {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.user-settings:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    color: var(--text-primary);
}

/* ============================================
   Main Content Area
   ============================================ */
.arena-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
.arena-topbar {
    height: var(--topbar-height);
    padding: 0 24px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

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

.breadcrumb-item {
    color: var(--text-tertiary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb svg {
    color: var(--text-tertiary);
}

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

.stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.stat-chip .stat-icon {
    font-size: 16px;
}

.stat-chip .stat-value {
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.stat-chip .stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    display: none;
}

.stat-chip.win-rate .stat-value {
    color: var(--green);
}

.notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ============================================
   View Container
   ============================================ */
.view-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.view {
    animation: fadeIn 0.3s ease;
}

.view.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.view-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   Dashboard Styles
   ============================================ */
.dashboard-header {
    margin-bottom: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.stat-card-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-primary);
}

.stat-card-icon.gold {
    background: rgba(251, 191, 36, 0.15);
    color: var(--gold);
}

.stat-card-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-tertiary);
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-card-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.stat-card-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.stat-card-change.hot {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
    color: var(--accent-tertiary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, var(--accent-tertiary), #ea580c);
    color: white;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}

.action-btn.tertiary {
    background: linear-gradient(135deg, var(--accent-secondary), #0891b2);
    color: white;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

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

.action-text {
    flex: 1;
}

.action-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.action-text small {
    font-size: 12px;
    opacity: 0.8;
}

.action-arrow {
    font-size: 24px;
    opacity: 0.7;
    transition: transform var(--transition-fast);
}

.action-btn:hover .action-arrow {
    transform: translateX(4px);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 32px;
}

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

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

.section-link {
    font-size: 13px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

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

/* Tournaments Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.tournament-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tournament-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.tournament-status.live {
    background: var(--red);
    animation: pulse 2s infinite;
}

.tournament-content {
    padding: 16px;
}

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

.tournament-info {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tournament-prize {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.prize-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.prize-value {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold);
}

/* Tasks List */
.tasks-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--accent-secondary));
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.task-item:hover {
    border-color: var(--border-light);
}

.task-item.completed {
    opacity: 0.6;
}

.task-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all var(--transition-fast);
}

.task-item.completed .task-check {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.task-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.task-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

/* ============================================
   Arena Battle Screens
   ============================================ */
.arena-screen {
    min-height: calc(100vh - var(--topbar-height) - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arena-screen.hidden {
    display: none;
}

/* Search Screen */
.search-container {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.search-animation {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: searchRing 2s ease-out infinite;
    opacity: 0;
}

.search-ring.delay-1 {
    animation-delay: 0.5s;
}

.search-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes searchRing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.search-icon {
    font-size: 64px;
    animation: searchPulse 1.5s ease-in-out infinite;
}

@keyframes searchPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.search-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.search-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.search-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.search-stat {
    text-align: center;
}

.search-stat .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.search-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
}

.cancel-search-btn {
    padding: 14px 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    color: var(--red);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cancel-search-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Found Opponent Screen */
.found-container {
    text-align: center;
    animation: foundBounce 0.5s ease;
}

@keyframes foundBounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.found-title {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 48px;
    animation: glowText 2s ease-in-out infinite;
}

@keyframes glowText {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
    }
}

.versus-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 200px;
    text-align: center;
    transition: all var(--transition-normal);
}

.player-card.you {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.player-card.opponent {
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

.player-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
}

.player-card.opponent .player-avatar img {
    border-color: var(--red);
}

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

.player-rank {
    display: block;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 12px;
}

.player-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.vs-badge {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-text {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-tertiary);
    position: relative;
    z-index: 1;
}

.vs-glow {
    position: absolute;
    inset: 0;
    background: var(--accent-tertiary);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.3;
    animation: vsGlow 1.5s ease-in-out infinite;
}

@keyframes vsGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.countdown-display {
    text-align: center;
}

.countdown-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.countdown-timer {
    font-size: 72px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ============================================
   Battle Screen
   ============================================ */
.battle-container {
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.battle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.battle-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-icon {
    font-size: 24px;
}

.timer-value {
    font-size: 28px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-tertiary);
}

.battle-title h2 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.battle-round {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.battle-prize {
    text-align: right;
}

.prize-label {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
}

.prize-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

/* Score Board */
.score-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.score-player {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-player.opponent {
    flex-direction: row-reverse;
}

.score-avatar {
    width: 50px;
    height: 50px;
}

.score-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.score-player.opponent .score-avatar img {
    border-color: var(--red);
}

.score-info {
    text-align: left;
}

.score-player.opponent .score-info {
    text-align: right;
}

.score-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.score-portfolio {
    font-size: 20px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.score-change {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.score-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.score-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.score-vs {
    text-align: center;
}

.score-lead {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.score-lead.winning {
    background: linear-gradient(135deg, var(--green), #059669);
    color: white;
}

.score-lead.losing {
    background: linear-gradient(135deg, var(--red), #dc2626);
    color: white;
}

/* Battle Content */
.battle-content {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 16px;
    height: calc(100vh - var(--topbar-height) - 280px);
    min-height: 400px;
}

/* Crypto Panel */
.crypto-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 14px;
    font-weight: 700;
}

.crypto-search {
    width: 100px;
    padding: 6px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
}

.crypto-search:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.crypto-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.crypto-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.crypto-item.selected {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.crypto-item-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.crypto-item-info {
    flex: 1;
}

.crypto-item-symbol {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.crypto-item-name {
    font-size: 11px;
    color: var(--text-tertiary);
}

.crypto-item-price {
    text-align: right;
}

.crypto-item-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.crypto-item-change {
    font-size: 11px;
    font-weight: 600;
}

.crypto-item-change.positive {
    color: var(--green);
}

.crypto-item-change.negative {
    color: var(--red);
}

/* Trading Panel */
.trading-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.selected-crypto {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

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

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

.crypto-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.crypto-name .crypto-symbol {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.crypto-name .crypto-fullname {
    font-size: 13px;
    color: var(--text-secondary);
}

.crypto-price {
    text-align: right;
}

.price-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.price-change {
    font-size: 14px;
    font-weight: 600;
}

.price-change.positive {
    color: var(--green);
}

.price-change.negative {
    color: var(--red);
}

.mini-chart {
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

/* Trade Form */
.trade-form {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trade-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.trade-tab {
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.trade-tab.active[data-type="buy"] {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--green);
    color: var(--green);
}

.trade-tab.active[data-type="sell"] {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--red);
    color: var(--red);
}

.trade-amount {
    margin-bottom: 16px;
}

.trade-amount label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.amount-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.amount-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.amount-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.preset-btn {
    padding: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.execute-trade-btn {
    margin-top: auto;
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.execute-trade-btn.buy {
    background: linear-gradient(135deg, var(--green), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.execute-trade-btn.sell {
    background: linear-gradient(135deg, var(--red), #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.execute-trade-btn:hover {
    transform: translateY(-2px);
}

/* Positions Panel */
.positions-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.positions-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    background: var(--accent-primary);
    color: white;
    border-radius: 10px;
}

.positions-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.empty-positions {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.empty-icon {
    display: block;
    font-size: 40px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-text {
    font-size: 13px;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.position-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.position-info {
    flex: 1;
}

.position-symbol {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.position-amount {
    font-size: 11px;
    color: var(--text-secondary);
}

.position-pnl {
    text-align: right;
}

.position-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.position-change {
    font-size: 11px;
    font-weight: 600;
}

.position-change.positive {
    color: var(--green);
}

.position-change.negative {
    color: var(--red);
}

.position-close {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: var(--red);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.position-close:hover {
    background: rgba(239, 68, 68, 0.2);
}

.cash-balance {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cash-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.cash-value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--green);
}

/* ============================================
   Result Screen
   ============================================ */
.result-container {
    text-align: center;
    animation: resultReveal 0.8s ease;
}

@keyframes resultReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-status {
    font-size: 100px;
    margin-bottom: 24px;
    animation: resultBounce 0.5s ease 0.3s both;
}

@keyframes resultBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.result-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 8px;
}

.result-title.win {
    background: linear-gradient(135deg, var(--gold), #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-title.lose {
    color: var(--text-secondary);
}

.result-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.result-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
}

.result-player {
    text-align: center;
}

.result-player img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid var(--border-light);
}

.result-player.you img {
    border-color: var(--accent-primary);
}

.result-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-return {
    font-size: 24px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.result-return.positive {
    color: var(--green);
}

.result-return.negative {
    color: var(--red);
}

.result-vs {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-tertiary);
}

.result-rewards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

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

.reward-value {
    font-size: 14px;
    font-weight: 600;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.result-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.result-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.result-btn.secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.result-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tournaments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .battle-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .crypto-panel,
    .positions-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .arena-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }

    .arena-sidebar.open {
        transform: translateX(0);
    }

    .arena-main {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .topbar-right .stat-chip {
        display: none;
    }

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

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

    .versus-display {
        flex-direction: column;
        gap: 20px;
    }

    .vs-badge {
        transform: rotate(90deg);
    }

    .result-comparison {
        flex-direction: column;
        gap: 20px;
    }
}

/* ============================================
   New View Styles
   ============================================ */

/* Leaderboard */
.leaderboard-table {
    width: 100%;
}

.leaderboard-header,
.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 120px;
    padding: 12px 16px;
}

.leaderboard-header {
    background: var(--bg-tertiary);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.leaderboard-row {
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-row.gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), transparent);
}

.leaderboard-row.silver {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), transparent);
}

.leaderboard-row.bronze {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), transparent);
}

.leaderboard-row.you {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent-primary);
}

/* Tournaments */
.tournament-list {
    display: grid;
    gap: 16px;
}

.tournament-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
}

.tournament-item.live {
    border-color: var(--red);
}

.tournament-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    background: var(--red);
    color: white;
}

.tournament-badge.upcoming {
    background: var(--accent-primary);
}

.tournament-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.tournament-item p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

.btn-join {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Tasks */
.tasks-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.task-progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.task-progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--green));
    border-radius: 4px;
}

.task-progress-text {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.task-list-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-list-detail .task-item {
    display: grid;
    grid-template-columns: 30px 1fr 80px;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.task-list-detail .task-item.completed {
    opacity: 0.7;
}

.task-list-detail .check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--green);
}

.task-list-detail .task-item.completed .check {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.task-list-detail .reward {
    color: var(--gold);
    font-weight: 600;
    font-size: 13px;
    text-align: right;
}

/* Achievements */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    opacity: 0.4;
}

.achievement-card.unlocked {
    opacity: 1;
    border-color: var(--gold);
}

.achievement-card .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.achievement-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.achievement-card p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Friends */
.friends-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.friends-search {
    margin-bottom: 20px;
}

.friends-search input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.friend-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.friend-item .info {
    flex: 1;
}

.friend-item .name {
    display: block;
    font-weight: 600;
}

.friend-item .status {
    font-size: 12px;
    color: var(--text-secondary);
}

.friend-item.online .status {
    color: var(--green);
}

.btn-challenge {
    padding: 8px 16px;
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.btn-challenge:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* History */
.history-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.history-list {
    display: flex;
    flex-direction: column;
}

.history-item {
    display: grid;
    grid-template-columns: 50px 1fr 100px 100px;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.history-item .result {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.history-item.win .result {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

.history-item.loss .result {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.history-item .opponent {
    font-weight: 500;
}

.history-item .profit {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.history-item.win .profit {
    color: var(--green);
}

.history-item.loss .profit {
    color: var(--red);
}

.history-item .time {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: right;
}