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

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --gold: #f5a623;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2d2d4a;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--bg-dark) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo i {
    font-size: 28px;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.5));
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-item:hover {
    background: rgba(233, 69, 96, 0.1);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.3), rgba(233, 69, 96, 0.1));
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

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

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-mini:hover {
    background: rgba(255, 255, 255, 0.1);
}

.avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--text-primary);
    font-weight: 700;
    object-fit: cover;
}

img.avatar-mini,
img.user-avatar {
    display: block;
}

.user-mini-info {
    display: flex;
    flex-direction: column;
}

.user-mini-info .username {
    font-size: 14px;
    font-weight: 600;
}

.user-mini-info .user-level {
    font-size: 12px;
    color: var(--gold);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.top-bar {
    height: 70px;
    background: var(--primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary);
    padding: 10px 20px;
    border-radius: 25px;
    width: 400px;
    border: 1px solid var(--border-color);
}

.search-box i {
    color: var(--text-secondary);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.notifications {
    position: relative;
    cursor: pointer;
    padding: 8px;
}

.notifications i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.notifications:hover i {
    color: var(--text-primary);
}

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

.coins {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.2), rgba(245, 166, 35, 0.1));
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.coins i {
    color: var(--gold);
}

.coins span {
    font-weight: 600;
    color: var(--gold);
}

.content-wrapper {
    padding: 32px;
}

.user-header {
    position: relative;
    margin-bottom: 24px;
}

.user-info-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.9) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.user-info-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.avatar-wrapper {
    position: relative;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: var(--text-primary);
    font-size: 48px;
    font-weight: 700;
    object-fit: cover;
}

.avatar-level {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: linear-gradient(135deg, var(--gold), #ffd700);
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    border: 2px solid var(--primary);
}



.user-basic {
    flex: 1;
}

.user-name {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.vip-badge {
    color: var(--gold);
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.6));
}

.user-id {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

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

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.tag.official {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.tag.official i {
    font-size: 11px;
}

.tag.master {
    background: rgba(245, 166, 35, 0.3);
    color: #fbbf24;
    border: 1px solid rgba(245, 166, 35, 0.5);
}

.user-stats-bar {
    display: flex;
    gap: 32px;
    padding: 20px 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

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

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.card-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--accent);
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s;
}

.card-link:hover {
    opacity: 0.8;
}

.card-body {
    padding: 20px;
}

.quick-actions .card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    text-decoration: none;
}

.action-btn i {
    font-size: 24px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.action-btn:hover {
    background: rgba(233, 69, 96, 0.1);
    border-color: var(--accent);
}

.action-btn:hover i {
    color: var(--accent);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent), #c73e54);
    border-color: var(--accent);
    color: white;
}

.action-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

.action-btn.primary i {
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, var(--gold), #d4940f);
    border-color: var(--gold);
    color: var(--bg-dark);
}

.action-btn.secondary:hover {
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

.action-btn.secondary i {
    color: var(--bg-dark);
}

.recent-guess .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guess-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.guess-match {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.guess-match .team-name {
    font-weight: 500;
}

.guess-match .vs {
    color: var(--accent);
    font-size: 11px;
    font-weight: bold;
}

.guess-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.result-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

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

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

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

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

.team-info .card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.team-logo {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-details {
    flex: 1;
}

.team-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

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

.team-rank {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-weight: 600;
}

.team-members {
    display: flex;
    align-items: center;
}

.team-members img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    margin-left: -8px;
}

.team-members img:first-child {
    margin-left: 0;
}

.more-members {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid var(--bg-card);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.achievement .card-body {
    padding: 16px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: var(--secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.badge-item:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.badge-item i {
    font-size: 24px;
    color: var(--gold);
}

.badge-item span {
    font-size: 11px;
    color: var(--text-secondary);
}

.badge-item.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.badge-item.locked i {
    color: var(--text-secondary);
}

.activity .card-body {
    padding: 16px;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding: 0 8px;
}

.bar {
    width: 36px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 0.3s;
}

.bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 6px 6px 0 0;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
}

.chart-labels span {
    font-size: 11px;
    color: var(--text-secondary);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.dot.green {
    background: var(--success);
}

.dot.red {
    background: var(--danger);
}

.notifications-panel .card-header .new-count {
    font-size: 12px;
    color: var(--accent);
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--secondary);
}

.notification-item.unread {
    background: rgba(233, 69, 96, 0.05);
    border-left: 3px solid var(--accent);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

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

.notif-icon.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notif-content {
    flex: 1;
}

.notif-content p {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

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

.dashboard-card:nth-child(1) {
    grid-column: span 1;
}

.dashboard-card:nth-child(2) {
    grid-column: span 2;
}

.dashboard-card:nth-child(3) {
    grid-column: span 1;
}

.dashboard-card:nth-child(4) {
    grid-column: span 1;
}

.dashboard-card:nth-child(5) {
    grid-column: span 2;
}

.dashboard-card:nth-child(6) {
    grid-column: span 1;
}

/* Hero Section */
.hero-section {
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 8s infinite;
}

.hero-particles .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.hero-particles .particle:nth-child(3) { left: 40%; top: 30%; animation-delay: 2s; }
.hero-particles .particle:nth-child(4) { left: 60%; top: 70%; animation-delay: 3s; }
.hero-particles .particle:nth-child(5) { left: 80%; top: 40%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 30px;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 20px;
    width: fit-content;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--text-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

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

.hero-stat .stat-num {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
}

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

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent), #c73e54);
    color: white;
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Home Sections */
.home-section {
    margin-bottom: 32px;
}

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

.section-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent);
}

.section-more {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-more:hover {
    text-decoration: underline;
}

/* Featured Matches */
.featured-matches {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.featured-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.featured-card.main-match {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(22, 33, 62, 0.5));
    border-color: rgba(233, 69, 96, 0.3);
}

.match-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge.live {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
}

.status-badge.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

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

.featured-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.featured-card .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.featured-card .team img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.featured-card .match-logo {
    width: 64px;
    height: 64px;
    background: var(--secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 24px;
    color: var(--text-primary);
}

.featured-card .match-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    border-radius: 0;
}

.featured-card .team .team-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 80px;
    text-align: center;
}

.team-score {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent);
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.match-vs .vs {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent);
}

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

.match-teams.compact .team img {
    width: 48px;
    height: 48px;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.match-footer .pool {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-footer .pool i {
    color: var(--accent);
}

.match-footer .pool .gold {
    color: var(--gold);
}

.participants {
    display: flex;
    align-items: center;
    gap: 6px;
}

.participants i {
    color: var(--accent);
}

.participants.hot {
    color: var(--gold);
}

.participants.hot i {
    color: var(--gold);
}

/* Home Carousel */
.home-carousel {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

.home-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 260px;
}

.home-carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.home-carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 10, 24, 0.9) 0%, rgba(8, 10, 24, 0.48) 44%, rgba(8, 10, 24, 0.1) 100%);
}

.carousel-overlay {
    position: absolute;
    z-index: 1;
    left: 44px;
    bottom: 38px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carousel-kicker {
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.16);
    border: 1px solid rgba(245, 166, 35, 0.36);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.carousel-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
}

.carousel-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.76);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(15, 15, 26, 0.62);
    color: var(--text-primary);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
    background: rgba(233, 69, 96, 0.76);
    border-color: rgba(255, 255, 255, 0.42);
}

.carousel-prev {
    left: 18px;
}

.carousel-next {
    right: 18px;
}

.home-carousel-dots {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.home-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
}

.home-carousel-dot.active {
    width: 26px;
    background: var(--gold);
}

/* Leaderboard */
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.leaderboard-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.leaderboard-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-card .card-header h3 {
    font-size: 15px;
}

.leaderboard-card .card-body {
    padding: 12px;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.3s;
}

.leader-item:hover {
    background: var(--secondary);
}

.leader-item.top-1 {
    background: rgba(245, 166, 35, 0.1);
}

.leader-item.top-2 {
    background: rgba(192, 192, 192, 0.1);
}

.leader-item.top-3 {
    background: rgba(205, 127, 50, 0.1);
}

.leader-item .rank {
    width: 28px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-secondary);
}

.leader-item.top-1 .rank,
.leader-item.top-2 .rank,
.leader-item.top-3 .rank {
    font-size: 18px;
}

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

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-info .name {
    font-size: 14px;
    font-weight: 600;
}

.user-info .win-rate {
    font-size: 12px;
    color: var(--text-secondary);
}

.win-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* Activities */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.activity-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.activity-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    position: relative;
    overflow: hidden;
}

.activity-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.activity-tag.new {
    background: var(--gold);
    color: var(--bg-dark);
}

.activity-info {
    padding: 16px;
}

.activity-info h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.activity-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.activity-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.news-card.main-news {
    display: flex;
    flex-direction: column;
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

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

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.news-item:hover {
    background: var(--secondary);
}

.news-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-text h4 {
    font-size: 14px;
    margin-bottom: 6px;
}

.news-text .news-meta {
    gap: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-matches {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-card.main-match {
        grid-column: span 2;
    }
    
    .leaderboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-card:nth-child(2) {
        grid-column: span 2;
    }
    
    .dashboard-card:nth-child(5) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        left: 0;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-box {
        width: 200px;
    }
    
    .top-bar {
        padding: 0 16px;
    }
    
    .top-bar-right {
        gap: 16px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stat .stat-num {
        font-size: 20px;
    }
    
    .featured-matches {
        grid-template-columns: 1fr;
    }
    
    .featured-card.main-match {
        grid-column: span 1;
    }
    
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }

    .home-carousel,
    .home-carousel-track {
        min-height: 220px;
    }

    .home-carousel-track {
        aspect-ratio: 4 / 3;
    }

    .carousel-overlay {
        left: 22px;
        right: 22px;
        bottom: 26px;
        max-width: none;
    }

    .carousel-title {
        font-size: 22px;
    }

    .carousel-desc {
        font-size: 13px;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .home-carousel-dots {
        right: 22px;
        bottom: 16px;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -40px;
    }
    
    .user-stats-bar {
        width: 100%;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        grid-column: span 1 !important;
    }
}

@media (max-width: 480px) {
    .top-bar-right {
        gap: 12px;
    }
    
    .search-box {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .hero-stat {
        flex: 1;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        gap: 12px;
    }

    .home-carousel,
    .home-carousel-track {
        min-height: 190px;
    }

    .carousel-overlay {
        left: 18px;
        right: 18px;
        bottom: 40px;
    }

    .carousel-kicker {
        font-size: 11px;
    }

    .carousel-title {
        font-size: 19px;
    }

    .carousel-desc {
        display: none;
    }

    .carousel-btn {
        display: none;
    }
    
    .user-stats-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
    }
}

/* Utility Classes */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #c73e54);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.flash.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.flash.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    margin-right: 16px;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body.has-mobile-bottom-nav {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 98;
        background: rgba(15, 15, 26, 0.96);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(14px);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav-item {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.1;
        padding: 6px 4px;
        border-radius: 12px;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .mobile-bottom-nav-item i {
        font-size: 20px;
        line-height: 1;
    }

    .mobile-bottom-nav-item span {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bottom-nav-item.active {
        color: var(--accent);
        background: rgba(233, 69, 96, 0.12);
    }
}

/* Bets Page Styles */
.section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--secondary);
    border-radius: 8px;
}

.filter-tabs a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
}

.filter-tabs a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.filter-tabs a.active {
    background: var(--accent);
    color: white;
}

.inline-form {
    display: inline;
}

.inline-form button {
    padding: 4px 12px;
    font-size: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.inline-form button:hover {
    opacity: 0.8;
}

/* User Center Styles */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.topbar .brand-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.topbar .nav {
    display: flex;
    gap: 20px;
}

.topbar .nav a {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
}

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

.topbar .nav a.active {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

/* Agent Dashboard Styles */
.panel-body {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

.side-nav {
    width: 220px;
    background: var(--primary);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
}

.side-nav .brand.mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.side-nav a {
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

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

.side-nav a.active {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent);
    border-left-color: var(--accent);
}

.side-nav .brand.compact span:first-child {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.side-nav .brand.compact span:last-child {
    font-size: 15px;
    font-weight: 600;
}

.workspace {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.workspace-head {
    margin-bottom: 24px;
}

.workspace-head .eyebrow {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.workspace-head h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.workspace-head p {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.ops-panel {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.ops-panel .eyebrow {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ops-panel h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.ops-panel .hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ops-panel p {
    font-size: 14px;
    line-height: 1.6;
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compact-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compact-list li:last-child {
    border-bottom: none;
}

.compact-list li span {
    font-weight: 500;
}

.compact-list li small {
    font-size: 12px;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stats-grid.dense {
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.stat-card strong {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

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

.promo-box {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: var(--secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.promo-box .qr {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    object-fit: contain;
    flex: 0 0 80px;
}

.promo-box div {
    flex: 1;
}

.promo-box div strong {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.promo-box div p {
    font-size: 13px;
    font-family: monospace;
    color: var(--accent);
    margin-bottom: 8px;
}

.promo-box div small {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-section-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.admin-section-tab {
    border: 1px solid var(--border-color);
    background: var(--secondary);
    color: var(--text-secondary);
    border-radius: 10px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-section-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.admin-section-tab.active {
    background: linear-gradient(135deg, var(--accent), #c73e54);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.24);
}

.admin-section-panel {
    display: none;
}

.admin-section-panel.active {
    display: block;
}

.application-shell {
    display: grid;
    gap: 18px;
}

.application-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.application-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

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

.application-card strong {
    font-size: 16px;
    color: var(--text-primary);
}

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

.application-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: 16px;
    align-items: start;
}

.application-main {
    display: grid;
    gap: 14px;
}

.application-side {
    display: grid;
    gap: 12px;
}

.application-note {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.application-note strong {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 6px;
}

.application-records {
    display: grid;
    gap: 12px;
}

.application-record {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.application-record p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.application-record b {
    white-space: nowrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.form-grid input,
.form-grid select {
    padding: 10px 14px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: var(--accent);
}

.form-grid input::placeholder {
    color: var(--text-secondary);
}

.form-grid button {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), #c73e54);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.form-grid button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

.form-grid input[name="remark"],
.form-grid input[name="amount"] {
    grid-column: span 1;
}

.form-grid textarea {
    padding: 10px 14px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 100px;
    grid-column: span 2;
    font-family: inherit;
}

.form-grid textarea:focus {
    border-color: var(--accent);
}

.form-grid textarea::placeholder {
    color: var(--text-secondary);
}

.form-grid .hint {
    grid-column: span 3;
    margin: 0;
}

/* Team Management Styles */
.grid-form {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.grid-form input,
.grid-form select {
    padding: 10px 14px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.grid-form input:focus,
.grid-form select:focus {
    border-color: var(--accent);
}

.grid-form input::placeholder {
    color: var(--text-secondary);
}

.grid-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), #c73e54);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.grid-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

.grid-form.six input,
.grid-form.six select {
    grid-column: span 2;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.table-wrap th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table-wrap tbody tr {
    transition: background 0.3s;
}

.table-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.pagination-bar {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px 0;
}

/* Tree Structure Styles */
.tree-wrap {
    padding-left: 16px;
}

.tree-node {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.tree-node summary {
    padding: 10px 14px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    list-style: none;
    position: relative;
    transition: all 0.3s;
}

.tree-node summary:hover {
    background: rgba(233, 69, 96, 0.1);
    border-color: var(--accent);
}

.tree-node summary::-webkit-details-marker {
    display: none;
}

.tree-node summary::before {
    content: '+';
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--primary);
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
    color: var(--accent);
    transition: transform 0.3s;
}

.tree-node[open] summary::before {
    content: '-';
    transform: rotate(0deg);
}

.tree-children {
    padding-left: 30px;
    margin-top: 8px;
}

.tree-children .tree-node {
    margin-bottom: 4px;
}

/* Status Badge Styles */
.status-pending {
    color: var(--warning);
}

.status-won {
    color: var(--success);
}

.status-lost {
    color: var(--danger);
}

@media (max-width: 1200px) {
    .grid-form {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-form.six input,
    .grid-form.six select {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .grid-form {
        grid-template-columns: 1fr;
    }
    
    .table-wrap {
        overflow-x: auto;
    }
    
    .table-wrap th,
    .table-wrap td {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .tree-wrap {
        padding-left: 8px;
    }
    
    .tree-children {
        padding-left: 20px;
    }
}

@media (max-width: 1200px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .application-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .application-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .panel-body {
        flex-direction: column;
    }
    
    .side-nav {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 16px;
    }
    
    .side-nav .brand {
        border-bottom: none;
        padding: 0;
        margin-right: auto;
    }
    
    .workspace {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .application-summary {
        grid-template-columns: 1fr;
    }

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

    .form-grid textarea,
    .form-grid .hint {
        grid-column: span 1;
    }

    .application-record {
        flex-direction: column;
    }
    
    .promo-box {
        flex-direction: column;
        text-align: center;
    }
}
