/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* =========================
   UNIFIED DESIGN SYSTEM 
   ========================= */

:root {
    /* Color System */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --bg-elevated: #2d2d2d;
    
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    
    --accent-primary: #ff9800;
    --accent-hover: #f57c00;
    --accent-gold: #ffd700;
    --accent-success: #4caf50;
    --accent-danger: #f44336;
    --accent-warning: #ff9800;
    --accent-info: #2196f3;
    
    /* Border Colors */
    --border-subtle: #444;
    --border-medium: #666;
    --border-accent: var(--accent-primary);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.4);
    --shadow-lg: 0 6px 12px rgba(0,0,0,0.5);
    --shadow-accent: 0 4px 8px rgba(255, 152, 0, 0.3);
    
    /* Spacing System (Mobile-First) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    
    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    /* Interactive Elements */
    --touch-target: 44px; /* Minimum touch target for mobile */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

/* Desktop Enhancements */
@media (min-width: 768px) {
    :root {
        --space-xs: 6px;
        --space-sm: 12px;
        --space-md: 16px;
        --space-lg: 20px;
        --space-xl: 24px;
        --space-2xl: 32px;
        --space-3xl: 48px;
        
        --text-xs: 0.8rem;
        --text-sm: 0.9rem;
        --text-base: 1rem;
        --text-lg: 1.25rem;
        --text-xl: 1.5rem;
        --text-2xl: 1.875rem;
        --text-3xl: 2.25rem;
    }
}

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

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0;
}

/* =========================
   LAYOUT & NAVIGATION
   ========================= */

.screen {
    display: block;
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: var(--space-md);
    min-height: 100vh;
}

@media (min-width: 768px) {
    .screen {
        padding: var(--space-xl);
    }
}

.hidden {
    display: none !important;
}

/* Navigation Components */
.nav-back-button {
    position: sticky;
    top: var(--space-md);
    z-index: 10;
    margin-bottom: var(--space-xl);
    width: auto;
    max-width: 200px;
}

@media (min-width: 768px) {
    .nav-back-button {
        position: static;
        margin-bottom: var(--space-lg);
    }
}

h1 {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
}

#current-date {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

#current-show-name {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

/* =========================
   UNIFIED BUTTON SYSTEM
   ========================= */

button {
    display: block;
    width: 100%;
    min-height: var(--touch-target);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-sm) 0;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 700;
    font-family: inherit;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    text-align: center;
    line-height: 1.4;
}

button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

button:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Variants */
.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    background-color: var(--bg-elevated);
    border-color: var(--accent-primary);
}

.btn-success {
    background-color: var(--accent-success);
}

.btn-success:hover {
    background-color: #45a049;
}

.btn-danger {
    background-color: var(--accent-danger);
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-small {
    min-height: 36px;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    margin: var(--space-xs) 0;
}

.btn-large {
    min-height: 56px;
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--text-lg);
}

/* Desktop button enhancements */
@media (min-width: 768px) {
    button {
        margin: var(--space-md) 0;
    }
    
    .btn-small {
        margin: var(--space-sm) 0;
    }
}

/* =========================
   FORM ELEMENTS
   ========================= */

select, input[type="text"], input[type="number"], textarea {
    width: 100%;
    min-height: var(--touch-target);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-sm) 0;
    font-size: var(--text-base);
    font-weight: 500;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    color: var(--text-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-md) center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: var(--space-3xl);
}

select:focus, input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    transform: translateY(-1px);
    outline: none;
}

select:hover, input[type="text"]:hover, input[type="number"]:hover, textarea:hover {
    border-color: var(--border-medium);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input[type="text"] {
    width: auto;
    display: inline-block;
    margin-right: 5px;
}

/* =========================
   UNIFIED CARD SYSTEM
   ========================= */

.card {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-accent);
    border-radius: var(--border-radius-lg);
    padding: var(--space-sm);
    margin: 0;
    box-shadow: var(--shadow-md);
    text-align: center;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card h3 {
    font-size: var(--text-sm);
}

.card p {
    font-size: var(--text-xs);
}

/* Enhance for larger screens */
@media (min-width: 768px) {
    .card {
        padding: var(--space-md);
    }
    
    .card h3 {
        font-size: var(--text-base);
    }
    
    .card p {
        font-size: var(--text-sm);
    }
}

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

.card.injured {
    border-color: var(--accent-danger) !important;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.4);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-sm);
}

.card h3 {
    margin: var(--space-sm) 0;
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 700;
    word-break: break-word;
    line-height: 1.3;
}

.card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: var(--space-xs) 0;
    line-height: 1.4;
}

/* Card variants */
.card.summary-card {
    background: var(--bg-elevated);
    border-left: 4px solid var(--accent-success);
    text-align: left;
    padding: var(--space-lg);
}

.card.summary-card h3 {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card.summary-card .amount {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.card.summary-card .subtitle {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* =========================
   MAIN MENU DASHBOARD
   ========================= */

.main-menu-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.main-menu-header h1 {
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: var(--text-3xl);
}

.game-state-display {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    background: var(--bg-elevated);
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-subtle);
}

.state-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.state-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.state-value {
    font-size: var(--text-lg);
    color: var(--accent-primary);
    font-weight: 700;
}

.dashboard-summary-section {
    margin-bottom: var(--space-3xl);
}

.dashboard-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Enhance for larger screens */
@media (min-width: 768px) {
    .dashboard-summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--space-lg);
    }
}

.summary-stat-card {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    border-left: 4px solid var(--accent-primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.summary-stat-card.roster-card {
    border-left-color: var(--accent-info);
}

.summary-stat-card.money-card {
    border-left-color: var(--accent-success);
}

.summary-stat-card.popularity-card {
    border-left-color: var(--accent-gold);
}

.summary-stat-card.events-card {
    border-left-color: var(--accent-primary);
}

.summary-stat-card.warning-card {
    border-left-color: var(--accent-danger);
}

.stat-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
    display: block;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.stat-subtitle {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.3;
}

.stat-trend {
    font-size: var(--text-xs);
    font-weight: 700;
    margin-top: var(--space-xs);
}

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

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

.stat-trend.neutral {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3xl);
    }
}

.dashboard-section {
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    border: 2px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.dashboard-section:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: var(--space-sm);
}

.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
}

@media (max-width: 767px) {
    .menu-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
}

.menu-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    min-height: var(--touch-target);
    margin: 0;
    width: 100%;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    color: var(--text-secondary);
}

.menu-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: var(--text-primary);
}

.card-icon {
    font-size: var(--text-2xl);
    line-height: 1;
}

.card-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.2;
}

/* Mobile-First Bottom Navigation Design */
.mobile-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
    border-bottom: 2px solid var(--border-subtle);
    padding: var(--space-sm) var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.company-title {
    color: var(--text-primary);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
}

.current-date {
    color: var(--text-secondary);
}

.advance-day-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
    min-height: var(--touch-target);
    box-shadow: var(--shadow-accent);
    white-space: nowrap;
}

.advance-day-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Compact Header Layout */
.compact-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: var(--space-sm);
    min-height: 50px;
    padding: var(--space-sm) 0;
}

.compact-header .company-title {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0;
    text-align: left;
    justify-self: start;
}

.compact-header .action-date {
    text-align: center;
    justify-self: center;
}

.compact-header .action-date .current-date {
    color: var(--accent-primary);
    font-size: var(--text-base);
    font-weight: 600;
}

.compact-header .advance-day-btn {
    justify-self: end;
}

/* Mobile responsive adjustments for compact header */
@media (max-width: 600px) {
    .compact-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xs);
        min-height: auto;
    }
    
    .compact-header .company-title {
        font-size: var(--text-base);
        text-align: center;
        justify-self: center;
        order: 1;
    }
    
    .compact-header .action-date {
        order: 2;
        justify-self: center;
    }
    
    .compact-header .advance-day-btn {
        order: 3;
        justify-self: center;
        width: 100%;
        max-width: 200px;
    }
    
    .mobile-header {
        padding: var(--space-xs) var(--space-md);
    }
}

/* Mobile header responsive design */
@media (max-width: 600px) {
    .advance-day-btn {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }
    
    .company-title {
        font-size: var(--text-xl);
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
    border-top: 2px solid var(--border-subtle);
    display: flex;
    z-index: 1000;
    height: 70px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.nav-tab {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    color: var(--text-muted);
    position: relative;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
}

.nav-tab.active::before {
    width: 40px;
}

.nav-tab.active {
    color: var(--accent-primary);
    background: rgba(255, 152, 0, 0.08);
}

.nav-tab:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.nav-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Content */
.nav-content {
    padding: var(--space-lg);
    padding-bottom: 90px; /* Space for bottom nav */
    min-height: calc(100vh - 200px);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.nav-section {
    display: none;
    width: 100%;
    max-width: 800px; /* Limit max width on larger screens */
}

.nav-section.active {
    display: block;
}

/* Section Grid - Horizontal Layout */
.section-grid {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    animation: fadeInUp 0.4s ease;
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    justify-content: center;
    max-width: 100%;
}

/* Webkit scrollbar styling */
.section-grid::-webkit-scrollbar {
    height: 4px;
}

.section-grid::-webkit-scrollbar-track {
    background: transparent;
}

.section-grid::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}

.section-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Special handling for 2-card sections (More) */
.section-grid.two-cards {
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: visible;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.action-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.action-card:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

.action-card.primary {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 152, 0, 0.08) 100%);
    box-shadow: var(--shadow-accent);
}

.action-card.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.card-header h3 {
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.card-badge {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-badge.success {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
}

.card-desc {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
    text-align: center;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 480px) {
    .section-grid {
        /* Convert from horizontal scrolling to 2x2 grid layout */
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: var(--space-sm);
        padding-bottom: var(--space-sm);
        overflow-x: visible !important;
        flex-direction: unset !important;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        justify-items: center;
    }
    
    /* Handle 2-card sections (More) - center them in grid */
    .section-grid.two-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: 1fr !important;
        justify-content: center;
        max-width: 300px;
    }
    
    .action-card {
        min-height: 90px;
        padding: var(--space-md);
        min-width: 140px !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    .card-header h3 {
        font-size: var(--text-base);
    }
    
    .card-desc {
        font-size: var(--text-sm);
    }
}

@media (min-width: 769px) {
    /* Desktop adjustments */
    .bottom-nav {
        position: relative;
        height: auto;
        border: 2px solid var(--border-subtle);
        border-radius: var(--border-radius-lg);
        margin: var(--space-lg);
        box-shadow: var(--shadow-md);
    }
    
    .nav-content {
        padding: var(--space-2xl);
        padding-bottom: var(--space-lg);
        align-items: center;
    }
    
    .section-grid {
        gap: var(--space-lg);
        overflow-x: visible;
        justify-content: center;
        max-width: 1000px;
    }
    
    .action-card {
        min-height: 120px;
        padding: var(--space-xl);
        min-width: 220px;
        max-width: 300px;
    }
    
    .card-header h3 {
        font-size: var(--text-xl);
    }
}

.main-actions {
    text-align: center;
}

.advance-day-btn {
    background: linear-gradient(135deg, var(--accent-success), #45a049);
    border: 2px solid var(--accent-success);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
    width: auto;
    min-width: 200px;
    max-width: 400px;
}

.advance-day-btn:hover {
    background: linear-gradient(135deg, #45a049, var(--accent-success));
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.4);
}

.advance-icon {
    font-size: var(--text-xl);
}

#companies-container,
#roster-container .tier-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

#roster-controls {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 15px;
    align-items: end;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
}

#roster-controls .button-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 15px;
}

#roster-controls .button-row > div {
    display: flex;
    gap: 10px;
}

#roster-container {
    padding: 0 8px;
}

#roster-controls select,
#roster-controls input {
    width: 100%;
    margin: 0;
}

/* Free Agents styles (mirror roster styles) */
#free-agents-container .tier-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

#free-agents-controls {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 15px;
    align-items: end;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
}

#free-agents-controls .button-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 15px;
}

#free-agents-controls .button-row > div {
    display: flex;
    gap: 10px;
}

#free-agents-container {
    padding: 0 8px;
}

#free-agents-controls select,
#free-agents-controls input {
    width: 100%;
    margin: 0;
}

/* Tier headings */
.tier-heading {
    font-size: 1.3em;
    margin: 15px 0 10px;
    text-align: center;
    color: #ff9800;
    text-transform: uppercase;
}

/* Accordion for booking */
.accordion {
    background-color: #1e1e1e;
    color: #e0e0e0;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    border-bottom: 1px solid #333;
    border-radius: 8px;
}

.accordion:hover {
    background-color: #292929;
}

.panel {
    padding: 0 18px;
    background-color: #1e1e1e;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-radius: 0 0 8px 8px;
}

/* Tabs for booking */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.tab {
    flex: 1;
    padding: 10px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.tab:hover {
    background-color: #292929;
}

.tab.active {
    background-color: #ff9800;
    color: #121212;
}

.tab-content {
    padding: 10px;
}

/* Type selection buttons */
.type-container {
    display: flex;
    gap: 10px;
}

.type-button {
    flex: 1;
    padding: 10px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.type-button:hover {
    background-color: #292929;
    transform: scale(1.02);
}

.type-button.active {
    background-color: #ff9800;
    color: #121212;
}

/* Enhanced simulation results styling */
details {
    margin: 10px 0;
    background: rgba(40, 44, 52, 0.9);
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 0;
    opacity: 0;
    transition: all 0.5s ease;
}

details:hover {
    border-color: #61dafb;
    box-shadow: 0 2px 8px rgba(97, 218, 251, 0.2);
}

details.fade-in {
    opacity: 1;
}

summary {
    padding: 15px;
    font-size: 14px;
    color: #e2e8f0;
    cursor: pointer;
    background: rgba(50, 54, 62, 0.9);
    border-bottom: 1px solid #4a5568;
    transition: background-color 0.3s ease;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary:hover {
    background: rgba(60, 64, 72, 0.9);
}

details[open] summary {
    background: rgba(97, 218, 251, 0.2);
    color: #61dafb;
    border-radius: 8px 8px 0 0;
}

details div {
    padding: 15px;
    font-size: 13px;
    background: rgba(35, 39, 47, 0.9);
    border-radius: 0 0 8px 8px;
    line-height: 1.6;
    color: #e2e8f0;
}

details div p {
    margin: 8px 0;
}

details div strong {
    color: #61dafb;
    font-weight: 600;
}

/* Enhanced rating highlights */
.rating {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin: 8px 0;
}

.high-rating {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.low-rating {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.rating:not(.high-rating):not(.low-rating) {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

/* Enhanced overall rating */
.overall-rating {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1em;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overall-rating.fade-in {
    opacity: 1;
}

.overall-rating.glow {
    animation: pulse-glow 2s infinite;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.6); }
    50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.8); }
}

/* Sponsor payout styling */
.sponsor-payout {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sponsor-payout.fade-in {
    opacity: 1;
}

/* Fade-in animation for segments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
#simulation-loading {
    text-align: center;
    font-size: 1.2em;
    color: #ff9800;
    margin: 20px 0;
}

.spinner {
    border: 4px solid #1e1e1e;
    border-top: 4px solid #ff9800;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

/* Animation System - Mobile Optimized */
@media (prefers-reduced-motion: no-preference) {
    /* Fade In Animation */
    @keyframes fadeIn {
        from { 
            opacity: 0; 
            transform: translateY(10px); 
        }
        to { 
            opacity: 1; 
            transform: translateY(0); 
        }
    }
    
    /* Slide Down Animation */
    @keyframes slideDown {
        from { 
            opacity: 0;
            transform: translateY(-20px); 
        }
        to { 
            opacity: 1;
            transform: translateY(0); 
        }
    }
    
    /* Scale In Animation */
    @keyframes scaleIn {
        from { 
            opacity: 0;
            transform: scale(0.9); 
        }
        to { 
            opacity: 1;
            transform: scale(1); 
        }
    }
    
    /* Pulse Animation for Loading */
    @keyframes pulse {
        0%, 100% { 
            opacity: 1; 
        }
        50% { 
            opacity: 0.5; 
        }
    }
    
    /* Apply animations to appropriate elements */
    .screen:not(.hidden) {
        animation: fadeIn 0.3s ease-out;
    }
    
    /* Modal animations */
    .modal:not(.hidden) {
        animation: modalFadeIn 0.25s ease-out;
    }
    
    .modal-content {
        animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    @keyframes modalFadeIn {
        from {
            opacity: 0;
            backdrop-filter: blur(0);
        }
        to {
            opacity: 1;
            backdrop-filter: blur(8px);
        }
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .dashboard-summary-cards,
    .menu-cards,
    .menu-grid {
        animation: slideDown 0.4s ease-out;
    }
    
    .summary-card,
    .menu-card,
    .menu-item {
        animation: fadeIn 0.3s ease-out backwards;
    }
    
    .summary-card:nth-child(1) { animation-delay: 0.1s; }
    .summary-card:nth-child(2) { animation-delay: 0.15s; }
    .summary-card:nth-child(3) { animation-delay: 0.2s; }
    .summary-card:nth-child(4) { animation-delay: 0.25s; }
    
    .menu-card:nth-child(1),
    .menu-item:nth-child(1) { animation-delay: 0.1s; }
    .menu-card:nth-child(2),
    .menu-item:nth-child(2) { animation-delay: 0.15s; }
    .menu-card:nth-child(3),
    .menu-item:nth-child(3) { animation-delay: 0.2s; }
    .menu-card:nth-child(4),
    .menu-item:nth-child(4) { animation-delay: 0.25s; }
    .menu-card:nth-child(5),
    .menu-item:nth-child(5) { animation-delay: 0.3s; }
    .menu-card:nth-child(6),
    .menu-item:nth-child(6) { animation-delay: 0.35s; }
}

/* Disable animations on mobile for performance if needed */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    .screen:not(.hidden),
    .dashboard-summary-cards,
    .menu-cards,
    .menu-grid {
        animation-duration: 0.2s;
    }
    
    .summary-card,
    .menu-card,
    .menu-item {
        animation-delay: 0s !important;
        animation-duration: 0.2s;
    }
}

/* Loading States and Skeletons */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    color: var(--text-secondary);
}

/* Content Skeletons */
.skeleton-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.skeleton-line {
    height: 16px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 50%;
}

.skeleton-wrestler-card {
    padding: var(--spacing-base);
    display: flex;
    gap: var(--spacing-base);
    align-items: center;
}

.skeleton-wrestler-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

/* Error States */
.error-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.error-icon {
    font-size: 48px;
    color: var(--error-color);
    margin-bottom: var(--spacing-base);
}

.error-message {
    font-size: 1.1em;
    margin-bottom: var(--spacing-base);
}

.error-retry {
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-base);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    min-height: var(--touch-target);
}

.error-retry:hover {
    background: var(--accent-hover);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-base);
    opacity: 0.5;
}

.empty-title {
    font-size: 1.3em;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-description {
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.empty-action {
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    min-height: var(--touch-target);
}

.empty-action:hover {
    background: var(--accent-hover);
}

.loading-skeleton {
    background: linear-gradient(90deg, 
        var(--bg-tertiary) 25%, 
        var(--bg-secondary) 50%, 
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

/* Data Visualization Components */
.chart-container {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-base);
    margin: var(--spacing-base) 0;
}

.chart-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-base);
    text-align: center;
}

/* Progress Bars */
.progress-bar {
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 10px;
    transition: width 0.8s ease-out;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Stat Bars */
.stat-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-secondary);
    min-width: 80px;
    font-size: 0.9em;
}

.stat-progress {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-out;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
    min-width: 30px;
    text-align: right;
    font-size: 0.9em;
}

/* Stat Colors */
.stat-fill.excellent { background: var(--success-color); }
.stat-fill.good { background: var(--info-color); }
.stat-fill.average { background: var(--warning-color); }
.stat-fill.poor { background: var(--error-color); }

/* Rating Circles */
.rating-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    background: conic-gradient(var(--accent-color) 0deg, var(--bg-tertiary) 0deg);
}

.rating-circle.large {
    width: 80px;
    height: 80px;
    font-size: 1.5em;
}

/* Trend Indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
    font-weight: 600;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--error-color);
}

.trend-neutral {
    color: var(--text-secondary);
}

/* Mini Charts */
.mini-chart {
    display: flex;
    gap: 2px;
    align-items: end;
    height: 30px;
    margin: var(--spacing-xs) 0;
}

.mini-bar {
    background: var(--accent-color);
    border-radius: 2px 2px 0 0;
    min-width: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.mini-bar:hover {
    opacity: 1;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: var(--spacing-base) 0;
}

.data-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tr:hover {
    background: var(--bg-tertiary);
}

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

/* Responsive Data Visualization */
@media (max-width: 768px) {
    .chart-container {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) 0;
    }
    
    .stat-label {
        min-width: 60px;
        font-size: 0.8em;
    }
    
    .rating-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }
    
    .rating-circle.large {
        width: 60px;
        height: 60px;
        font-size: 1.2em;
    }
    
    .data-table {
        font-size: 0.9em;
    }
    
    .data-table th,
    .data-table td {
        padding: var(--spacing-xs);
    }
    
    /* Stack table on very small screens */
    .data-table.stack-mobile {
        display: block;
    }
    
    .data-table.stack-mobile thead {
        display: none;
    }
    
    .data-table.stack-mobile tr {
        display: block;
        margin-bottom: var(--spacing-sm);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }
    
    .data-table.stack-mobile td {
        display: block;
        text-align: right;
        padding: var(--spacing-xs) var(--spacing-sm);
        border: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .data-table.stack-mobile td:before {
        content: attr(data-label) ": ";
        float: left;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .data-table.stack-mobile td:last-child {
        border-bottom: none;
    }
}

/* Unified Notification System */
.notification-container {
    position: fixed;
    top: var(--spacing-base);
    right: var(--spacing-base);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
    pointer-events: none;
}

.notification-toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-base);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    pointer-events: auto;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    min-height: 60px;
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-toast.success {
    border-left: 4px solid var(--success-color);
}

.notification-toast.error {
    border-left: 4px solid var(--error-color);
}

.notification-toast.warning {
    border-left: 4px solid var(--warning-color);
}

.notification-toast.info {
    border-left: 4px solid var(--info-color);
}

.notification-icon {
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-icon.success {
    color: var(--success-color);
}

.notification-icon.error {
    color: var(--error-color);
}

.notification-icon.warning {
    color: var(--warning-color);
}

.notification-icon.info {
    color: var(--info-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.notification-message {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    color: var(--text-secondary);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Progress bar for auto-dismiss */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: width linear;
}

/* Mobile Notification Adjustments */
@media (max-width: 768px) {
    .notification-container {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        left: var(--spacing-sm);
        max-width: none;
    }
    
    .notification-toast {
        transform: translateY(-100px);
        margin-bottom: 0;
    }
    
    .notification-toast.show {
        transform: translateY(0);
    }
    
    .notification-icon {
        font-size: 20px;
    }
    
    .notification-title {
        font-size: 0.95em;
    }
    
    .notification-message {
        font-size: 0.9em;
    }
}

/* Floating Action Notifications */
.floating-notification {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-base);
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 300px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.floating-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.floating-notification.success {
    background: var(--success-color);
    color: var(--bg-primary);
}

.floating-notification.error {
    background: var(--error-color);
    color: var(--bg-primary);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.online {
    background: var(--success-color);
    color: var(--bg-primary);
}

.status-indicator.offline {
    background: var(--error-color);
    color: var(--bg-primary);
}

.status-indicator.pending {
    background: var(--warning-color);
    color: var(--bg-primary);
}

.status-indicator.inactive {
    background: var(--text-secondary);
    color: var(--bg-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
/* =================================
   UNIFIED MODAL SYSTEM - Mobile First
   ================================= */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(30, 30, 30, 0.98) 100%);
    border: 2px solid var(--accent-color);
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    color: var(--text-primary);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 24px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

/* Hidden state for modals */
.modal.hidden {
    display: none !important;
}

.modal-content h3 {
    margin: 0 0 20px 0;
    padding: 0;
    color: var(--text-primary);
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.modal-content > div:not(.close) {
    padding: 0;
}

/* Mobile-optimized close button */
.close {
    color: var(--text-secondary);
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    min-height: 48px; /* Ensure touch target size */
    min-width: 48px;
}

.close:hover,
.close:focus {
    color: var(--text-primary);
    background: var(--accent-color);
    border-color: var(--accent-color);
    text-decoration: none;
    transform: scale(1.05);
}

/* =================================
   NOTIFICATION MODAL SYSTEM
   ================================= */

.notification-modal {
    max-width: 380px;
    text-align: center;
}

.modal-content.notification-modal {
    padding: 32px 24px;
    border-radius: 20px;
}

#notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#notification-icon {
    font-size: 64px;
    line-height: 1;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

#notification-icon.success {
    color: #4caf50;
}

#notification-icon.error {
    color: #f44336;
}

#notification-icon.warning {
    color: #ff9800;
}

#notification-icon.info {
    color: #2196f3;
}

#notification-icon.question {
    color: #9c27b0;
}

#notification-title {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

#notification-message {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 1em;
}

#notification-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 8px;
}

#notification-buttons button {
    min-width: 120px;
    min-height: 48px; /* Touch-friendly height */
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--accent-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#notification-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: var(--accent-color-hover, #357abd);
}

#notification-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

#notification-buttons button.secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.2);
}

#notification-buttons button.secondary:hover {
    background: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

#notification-icon.question {
    color: #ff9800;
}

#notification-title {
    color: #ff9800;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
}

#notification-message {
    color: #e0e0e0;
    margin-bottom: 20px;
    line-height: 1.4;
    font-size: 1em;
}

#notification-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#notification-buttons button {
    background: #ff9800;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

#notification-buttons button:hover {
    background: #e68900;
    transform: translateY(-1px);
}

#notification-buttons button.secondary {
    background: #666;
    color: #fff;
}

#notification-buttons button.secondary:hover {
    background: #555;
}

#notification-buttons button.danger {
    background: #f44336;
    color: #fff;
}

#notification-buttons button.danger:hover {
    background: #da190b;
}

/* Events list */
#events-list .event-card {
    background-color: #1e1e1e;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#events-list .event-card:hover {
    border-color: #ffb74d;
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.3);
}

/* No animations class */
.no-animations * {
    transition: none !important;
}

/* Calendar styles */
.calendar {
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================
   STORYLINES MANAGEMENT (Updated)
   ========================= */

.storylines-nav {
    display: flex;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-xl);
    overflow: hidden;
    border: 2px solid var(--border-subtle);
}

.storyline-tab {
    flex: 1;
    min-height: var(--touch-target);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition-normal);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.storyline-tab:last-child {
    border-right: none;
}

.storyline-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.storyline-tab.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.storyline-content {
    background: var(--bg-elevated);
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-subtle);
}

.storylines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 767px) {
    .storylines-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.storyline-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    border-left: 4px solid var(--accent-gold);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

.storyline-card.high {
    border-left-color: var(--accent-danger);
}

.storyline-card.medium {
    border-left-color: var(--accent-warning);
}

.storyline-card.low {
    border-left-color: var(--accent-success);
}

.storyline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: var(--space-md);
    gap: var(--space-md);
}

.storyline-header h3 {
    margin: 0;
    color: var(--accent-gold);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.priority-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.priority-badge.high {
    background: var(--accent-danger);
    color: var(--text-primary);
}

.priority-badge.medium {
    background: var(--accent-warning);
    color: var(--text-primary);
}

.priority-badge.low {
    background: var(--accent-success);
    color: var(--text-primary);
}

.storyline-participants,
.storyline-phase {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.storyline-participants strong,
.storyline-phase strong {
    color: var(--text-primary);
    font-weight: 700;
}

.storyline-progress {
    margin: var(--space-lg) 0;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
    transition: width var(--transition-slow);
    border-radius: var(--border-radius-sm);
}

.progress-fill.climax {
    background: linear-gradient(90deg, var(--accent-danger), var(--accent-warning));
    animation: pulse 2s infinite;
}

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

.progress-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    padding: var(--space-xs);
}

.storyline-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-subtle);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.heat-0 { color: var(--text-muted); }
.stat-value.heat-1 { color: var(--text-secondary); }
.stat-value.heat-2 { color: var(--text-primary); }
.stat-value.heat-3 { color: var(--accent-gold); }
.stat-value.heat-4 { color: var(--accent-warning); }
.stat-value.heat-5 { color: var(--accent-danger); }

.storyline-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .storyline-actions {
        flex-direction: column;
    }
}

.storyline-actions button {
    flex: 1;
    min-height: var(--touch-target);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    margin: 0;
    font-family: inherit;
}

.storyline-actions button:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.storyline-actions .btn-danger {
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.storyline-actions .btn-danger:hover {
    background: var(--accent-danger);
    color: var(--text-primary);
}

/* =========================
   CONTAINERS & GRIDS
   ========================= */

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

.progress-text {
    font-size: 12px;
    color: #aaa;
}

.storyline-stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px;
    background: #222;
    border-radius: 4px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
}

.stat-value.heat-0 { color: #666; }
.stat-value.heat-1 { color: #888; }
.stat-value.heat-2 { color: #aaa; }
.stat-value.heat-3 { color: #d4af37; }
.stat-value.heat-4 { color: #ff6600; }
.stat-value.heat-5 { color: #ff4444; }

.storyline-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.storyline-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.details-btn {
    background: #d4af37;
    color: #000;
}

.details-btn:hover {
    background: #f4d477;
}

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

.edit-btn:hover {
    background: #66aaff;
}

.end-btn {
    background: #ff4444;
    color: white;
}

.end-btn:hover {
    background: #ff6666;
}

/* Create Storyline Form */

.create-storyline-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #d4af37;
    font-weight: bold;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.participants-selection {
    background: #333;
    padding: 15px;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.roster-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.wrestler-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #222;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wrestler-checkbox:hover {
    background: #444;
}

.wrestler-checkbox input {
    margin-right: 10px;
}

.wrestler-name {
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
}

.wrestler-stats {
    font-size: 12px;
    color: #aaa;
}

.create-btn {
    background: #44ff44;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.2s ease;
}

.create-btn:hover {
    background: #66ff66;
}

/* Suggestions and Completed */

.suggestions-grid,
.completed-storylines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.suggestion-card {
    background: #333;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--accent-primary);
}

.suggestion-card.high {
    border-left-color: #ff4444;
}

.suggestion-card.medium {
    border-left-color: #ffaa00;
}

.suggestion-card.low {
    border-left-color: #44ff44;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.suggestion-header h3 {
    margin: 0;
    color: var(--accent-primary);
    font-size: 18px;
}

.suggestion-participants,
.suggestion-reason {
    margin-bottom: 10px;
    color: #ccc;
}

.suggestion-reason {
    font-style: italic;
}

.suggestion-actions {
    margin-top: 15px;
}

.completed-storyline-card {
    background: #333;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #666;
}

.completed-storyline-card h3 {
    margin: 0 0 15px 0;
    color: #999;
    font-size: 18px;
}

.storyline-info p {
    margin: 8px 0;
    color: #ccc;
}

/* Storyline Detail Modal Styles */

.storyline-details {
    max-height: 70vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    margin: 0 0 10px 0;
    color: #d4af37;
    font-size: 16px;
}

.segments-list,
.moments-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.segments-list li,
.moments-list li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
}

.segments-list li:last-child,
.moments-list li:last-child {
    border-bottom: none;
}

/* Enhanced Match Quality Analysis Styles */

.match-analysis-panel {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.match-rating-display {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: bold;
}

.match-rating-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.match-rating-good {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.match-rating-average {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
    color: white;
}

.match-rating-poor {
    background: linear-gradient(135deg, #dc3545, #6f42c1);
    color: white;
}

.match-breakdown {
    background: #f8f9fa;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.4;
}

.match-strengths {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 12px;
}

.match-concerns {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 12px;
}

.match-suggestions {
    background: #cce5ff;
    border: 1px solid #99d6ff;
    color: #004085;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 12px;
}

.chemistry-indicator {
    border-left: 4px solid var(--accent-primary);
    padding-left: 10px;
    margin: 10px 0;
}

.chemistry-excellent {
    border-left-color: #28a745;
}

.chemistry-good {
    border-left-color: #ffc107;
}

.chemistry-poor {
    border-left-color: #dc3545;
}

/* Match Quality Indicators */

.quality-indicator {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin: 0 2px;
}

.quality-excellent {
    background: #28a745;
    color: white;
}

.quality-good {
    background: #ffc107;
    color: #333;
}

.quality-average {
    background: #fd7e14;
    color: white;
}

.quality-poor {
    background: #dc3545;
    color: white;
}

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

.calendar-header button {
    width: auto;
    padding: 5px 10px;
    font-size: 14px;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    color: #ff9800;
    padding: 10px;
}

.calendar-day {
    position: relative;
    min-height: 80px;
    background-color: #292929;
    border-radius: 4px;
    cursor: default;
    display: flex;
    flex-direction: column;
    padding: 5px;
    width: 100%;
    min-width: 0; /* Allow flex item to shrink below content width */
    box-sizing: border-box;
    overflow: hidden; /* Prevent content from overflowing the cell */
}

/* Day number styling */
.day-number {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: left;
}

/* Current day highlighting */
.calendar-day.current-day {
    background-color: #2c5530;
    border: 2px solid #4caf50;
}

.calendar-day.current-day .day-number {
    color: #4caf50;
}

/* Past day styling */
.calendar-day.past-day {
    background-color: #2a2a2a;
    opacity: 0.7;
}

.calendar-day.past-day .day-number {
    color: #888;
}

/* Shows container */
.shows-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    width: 100%;
    min-width: 0; /* Allow flexbox to shrink below content size */
}

/* Individual show styling */
.show-item {
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: #000;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* PPV and Special Event Styling */
.ppv-event {
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5) !important;
    color: #000 !important;
    font-weight: bold !important;
}

.ppv-event[style*="8A2BE2"] {
    border: 2px solid #8A2BE2 !important;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.5) !important;
    color: #FFF !important;
}

/* PPV/Live Event Type Display in Past Events */
.event-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 4px;
}

.event-type.ppv {
    background-color: #FFD700;
    color: #000;
    border: 1px solid #FFA500;
}

.event-type.live-event {
    background-color: #8A2BE2;
    color: #FFF;
    border: 1px solid #6A1B9A;
}

/* Legacy support for single show */
.calendar-day.has-show {
    background-color: #ff9800;
    color: #121212;
}

/* New multi-show support */
.calendar-day.has-shows:hover {
    background-color: #333;
}

.calendar-day.current-day.has-shows {
    background-color: #2c5530;
}

.calendar-day.past-day.has-shows {
    background-color: #2a2a2a;
}

/* Calendar legend */
.calendar-legend {
    margin-top: 15px;
    padding: 15px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
}

.calendar-legend h4 {
    margin: 0 0 10px 0;
    color: #ff9800;
    font-size: 14px;
}

.legend-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #555;
}

/* Calendar mobile styles */
@media (max-width: 600px) {
    .calendar {
        padding: 5px;
        max-width: 100%;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 3px;
    }
    
    .day-number {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .show-item {
        font-size: 8px;
        padding: 1px 2px;
    }
    
    .calendar-header button {
        padding: 3px 6px;
        font-size: 12px;
    }
    
    .calendar-header h3 {
        font-size: 16px;
    }
    
    .calendar-legend {
        padding: 10px;
        margin-top: 10px;
    }
    
    .legend-items {
        gap: 15px;
    }
    
    .legend-item {
        gap: 5px;
        font-size: 14px;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    body {
        padding: 0;
    }

    #roster-container {
        width: 100% !important;
        padding: 0 15px 30px 15px !important;
        margin: 0 !important;
    }

    #roster-container .tier-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        margin: 0 !important;
        padding: 6px !important;
        font-size: 0.65em !important;
        border-width: 1px;
        box-shadow: var(--shadow-sm) !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 80px !important;
        max-width: none !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: var(--border-radius-sm);
    }

    .card:hover {
        transform: translateY(-2px) !important;
        box-shadow: var(--shadow-md) !important;
    }

    .card img {
        width: 100% !important;
        height: 40px !important;
        object-fit: cover !important;
        border-radius: var(--border-radius-sm);
        margin-bottom: 4px;
    }

    .card h3 {
        font-size: 0.7em !important;
        margin: 4px 0 2px 0 !important;
        line-height: 1.1 !important;
        font-weight: 600 !important;
    }

    .card p {
        font-size: 0.6em !important;
        margin: 2px 0 !important;
        line-height: 1.2 !important;
        opacity: 0.8;
    }

    .card img {
        width: 100% !important;
        height: 45px !important;
        object-fit: cover !important;
        border-radius: 4px;
        margin-bottom: 2px;
    }

    .card h3 {
        font-size: 0.65em !important;
        margin: 1px 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card p {
        font-size: 0.55em !important;
        margin: 0.5px 0 !important;
    }

    button, select, input[type="text"] {
        font-size: 16px;
        padding: 10px;
    }

    .tier-heading {
        font-size: 1em;
        margin: 15px 0 8px;
        padding: 0 15px;
    }

    .tab {
        font-size: 12px;
        padding: 8px;
    }
}

/* Extra small mobile devices - 2 cards per row */
@media (max-width: 400px) {
    #roster-container .tier-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    
    .card {
        min-height: 95px !important;
        padding: 8px !important;
    }
    
    .card h3 {
        font-size: 0.75em !important;
        white-space: normal !important;
    }
    
    .card img {
        height: 50px !important;
    }
}

    .type-button {
        font-size: 12px;
        padding: 8px;
    }

    /* Back button styling for mobile */
    .back-button-top {
        width: 100%;
        margin-bottom: 15px;
        background: #444 !important;
        color: #FFD700 !important;
        font-weight: bold;
        padding: 12px !important;
        font-size: 14px !important;
        border-radius: 5px;
        border: 1px solid #666;
    }

    #roster-controls {
        padding: 0 20px;
        margin-bottom: 20px;
    }

    #roster h1 {
        margin: 20px 0 10px;
        padding: 0 20px;
    }

    /* Free Agents mobile styles */
    #free-agents-container {
        width: 100% !important;
        padding: 0 20px 30px 20px !important;
        margin: 0 !important;
    }

    #free-agents-container .tier-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 15px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #free-agents-controls {
        padding: 0 20px;
        margin-bottom: 20px;
    }

    #free-agents h1 {
        margin: 20px 0 10px;
        padding: 0 20px;
    }
}

/* Television Page Modern Design */
#television {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 100vh;
    padding: 20px;
}

#television h1 {
    color: #ff9800;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

/* TV Header Stats */
.tv-header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9800, #ffc107);
    border-radius: 12px 12px 0 0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

.stat-card h3 {
    color: #ffc107;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-card span {
    color: #4caf50;
    font-size: var(--text-3xl);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* =========================
   TELEVISION SCREEN (Updated)
   ========================= */

#tv-shows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 767px) {
    #tv-shows {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

#tv-shows .card {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

#tv-shows .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold), var(--accent-danger));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

#tv-shows .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

#tv-shows .card h3 {
    color: var(--accent-primary);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    font-weight: 700;
    line-height: 1.3;
}

#tv-shows .card p {
    margin: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.5;
}

#tv-shows .card p strong {
    color: var(--accent-gold);
    font-weight: 700;
}

#tv-shows .card .highlight {
    color: var(--accent-success);
    font-weight: 700;
    font-size: var(--text-lg);
}

#tv-shows .card .positive {
    color: var(--accent-success);
    font-weight: 700;
}

#tv-shows .card .negative {
    color: var(--accent-danger);
    font-weight: 700;
}

#tv-shows .card hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    margin: var(--space-lg) 0;
}

#tv-shows .summary-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 2px solid var(--accent-success);
    grid-column: 1 / -1;
}

#tv-shows .summary-card::before {
    background: linear-gradient(90deg, var(--accent-success), #66bb6a, #81c784);
}

#tv-shows .summary-card h3 {
    color: var(--accent-success);
    text-align: center;
}

/* TV Action Buttons */
.tv-action-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-3xl);
}

@media (max-width: 767px) {
    .tv-action-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }
}

.primary-button, .secondary-button {
    min-height: var(--touch-target);
    padding: var(--space-lg) var(--space-xl);
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius-lg);
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.secondary-button {
    background: transparent;
    color: var(--accent-primary);
}

.primary-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-button:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* TV Screen Mobile Optimizations */
@media (max-width: 767px) {
    .primary-button, .secondary-button {
        width: 100%;
        margin: var(--space-sm) 0;
    }
}

.primary-button {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.secondary-button {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #777 0%, #666 100%);
}

.back-to-tv-button {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.back-to-tv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #777 0%, #666 100%);
}

/* Responsive design for television screen */
@media (max-width: 768px) {
    #tv-shows {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #television h1 {
        font-size: 2em;
    }
    
    #tv-shows .card {
        padding: 20px;
    }
    
    .tv-header-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tv-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Championships Page Modern Design */
#championships {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 100vh;
    padding: 20px;
}

#championships h1 {
    color: #FFD700;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

/* Championships Header Stats */
.championships-header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.championships-header-stats .stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.championships-header-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 12px 12px 0 0;
}

.championships-header-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.championships-header-stats .stat-card h3 {
    color: #FFD700;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.championships-header-stats .stat-card span {
    color: #4caf50;
    font-size: 1.8em;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Modern Championship Accordion */
.championship-accordion {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #444;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.championship-accordion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF8F00);
    border-radius: 16px 16px 0 0;
}

.championship-accordion:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.championship-header {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.championship-header:hover {
    background: rgba(255, 215, 0, 0.1);
}

.championship-header.active {
    background: rgba(255, 215, 0, 0.15);
}

.championship-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    gap: 20px;
}

.championship-info {
    flex: 1;
    text-align: left;
}

.championship-name {
    color: #FFD700;
    font-size: 1.6em;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.current-champion {
    color: #e0e0e0;
    font-size: 1.2em;
    margin: 0;
    font-weight: 400;
}

.champion-name {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.championship-images {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.championship-belt-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 2px solid #444;
}

.champion-face-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.accordion-arrow {
    font-size: 1.5em;
    color: #FFD700;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.championship-header.active .accordion-arrow {
    transform: rotate(180deg);
}

/* Championship Panel Content */
.championship-panel {
    display: none;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    padding: 30px;
    border-top: 2px solid #444;
}

.championship-panel.show {
    display: block;
}

.championship-history h4 {
    color: #FFD700;
    font-size: 1.4em;
    margin: 0 0 25px 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-align: center;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 10px;
}

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

.history-item {
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #666;
    border-radius: 0 12px 12px 0;
}

.history-item.current-reign::before {
    background: linear-gradient(180deg, #FFD700, #FFA500);
}

.history-item.current-reign {
    background: linear-gradient(135deg, #2a2a1a 0%, #1a1a0a 100%);
    border-color: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.reign-number {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #FFD700;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid #444;
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.current-reign .reign-number {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border-color: #FFD700;
}

.wrestler-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.history-wrestler-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.current-reign .history-wrestler-img {
    border-color: #FFD700;
}

.wrestler-details {
    flex: 1;
}

.wrestler-name {
    color: #e0e0e0;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.current-reign .wrestler-name {
    color: #FFD700;
}

.reign-date {
    color: #aaa;
    font-size: 1em;
    font-weight: 400;
}

.current-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    text-shadow: none;
}

/* Championships Action Buttons */
.championships-action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.back-button {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    min-width: 180px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #777 0%, #666 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .championships-header-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #championships h1 {
        font-size: 2em;
    }
    
    .championship-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .championship-images {
        order: -1;
        justify-content: center;
    }
    
    .championship-info {
        text-align: center;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wrestler-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .current-badge {
        position: static;
        margin-top: 10px;
        align-self: center;
    }
}

/* Booking roster grid styles */
.booking-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

/* Mobile styles for booking roster */
@media (max-width: 600px) {
    #roster-controls {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: none;
        margin-bottom: 15px;
    }
    
    #roster-controls .button-row {
        grid-template-columns: 1fr;
    }
    
    #free-agents-controls {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: none;
        margin-bottom: 15px;
    }
    
    #free-agents-controls .button-row {
        grid-template-columns: 1fr;
    }
    
    .booking-roster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    
    /* Better accordion panel spacing on mobile */
    .accordion-panel {
        padding: 15px !important;
    }
    
    /* Ensure booking cards use mobile styling */
    .booking-roster-grid .card {
        margin: 0 !important;
        padding: 4px !important;
        font-size: 0.7em !important;
        border-width: 1px;
        box-shadow: none !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 80px !important;
        max-width: none !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .booking-roster-grid .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .booking-roster-grid .card img {
        width: 100% !important;
        height: 40px !important;
        object-fit: cover !important;
        border-radius: 4px;
        margin-bottom: 2px;
    }
    
    .booking-roster-grid .card h3 {
        font-size: 0.6em !important;
        margin: 1px 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .booking-roster-grid .card p {
        font-size: 0.5em !important;
        margin: 0.5px 0 !important;
    }
    
    /* Mobile styling for booking controls */
    .roster-controls {
        margin-bottom: 10px !important;
    }
    
    .roster-controls select,
    .roster-controls input {
        font-size: 14px !important;
        padding: 8px !important;
        margin-bottom: 5px;
    }
    
    /* Championship mobile styles */
    .championship-header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px 15px;
    }
    
    .championship-info {
        order: 2;
    }
    
    .championship-images {
        order: 1;
        justify-content: center;
        gap: 10px;
    }
    
    .championship-belt-img {
        width: 45px;
        height: 45px;
    }
    
    .champion-face-img {
        width: 40px;
        height: 40px;
    }
    
    .championship-name {
        font-size: 1.1em;
    }
    
    .current-champion {
        font-size: 0.9em;
    }
    
    .championship-panel {
        padding: 15px;
    }
    
    .history-item {
        padding: 10px;
        gap: 10px;
    }
    
    .wrestler-info {
        gap: 8px;
    }
    
    .history-wrestler-img {
        width: 35px;
        height: 35px;
    }
    
    .wrestler-name {
        font-size: 1em;
    }
    
    .reign-date {
        font-size: 0.8em;
    }
    
    .reign-number {
        width: 25px;
        height: 25px;
        font-size: 0.9em;
    }
    
    .current-badge {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}

/* Events Page Styles */
.events-controls {
    margin-bottom: 20px;
    text-align: center;
}

.events-controls label {
    font-weight: bold;
    margin-right: 10px;
    color: #e0e0e0;
}

.events-controls select {
    padding: 12px 15px;
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    color: #e0e0e0;
    border: 2px solid #444;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23e0e0e0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.events-controls select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    transform: translateY(-1px);
}

.events-controls select:hover {
    border-color: #666;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Event Accordion Styles */
.event-accordion {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.event-accordion-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.event-accordion-header:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #333 100%);
}

.event-accordion-header.active {
    background: linear-gradient(135deg, #444 0%, #333 100%);
    border-bottom-color: #555;
}

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

.event-accordion-header h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin: 0;
}

.event-count {
    background-color: #ff9800;
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.event-accordion-content {
    display: none;
    padding: 20px;
    background-color: #1e1e1e;
}

/* Event Card Styles */
.event-card {
    background-color: #2a2a2a;
    border: 2px solid #ff9800;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.event-card:hover {
    border-color: #ffb74d;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
    transform: translateY(-2px);
}

/* Performance-based event card styling */
.event-card-excellent {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}
.event-card-excellent:hover {
    border-color: #66BB6A;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.6);
}

.event-card-great {
    border-color: #8BC34A;
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.3);
}
.event-card-great:hover {
    border-color: #9CCC65;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.5);
}

.event-card-good {
    border-color: #CDDC39;
    box-shadow: 0 0 8px rgba(205, 220, 57, 0.2);
}
.event-card-good:hover {
    border-color: #D4E157;
    box-shadow: 0 4px 12px rgba(205, 220, 57, 0.4);
}

.event-card-poor {
    border-color: #F44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}
.event-card-poor:hover {
    border-color: #EF5350;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.5);
}

.event-header {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    padding: 12px 15px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-header-right {
    display: flex;
    align-items: center;
}

.event-header h4 {
    color: #ff9800;
    margin: 0;
    font-size: 1.1em;
}

.event-date {
    color: #aaa;
    font-size: 0.9em;
}

.tv-rating {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.event-segments {
    padding: 15px;
    margin: var(--space-lg) 0;
}

.booking-actions {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-elevated);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-subtle);
}

.event-segment {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}

.event-segment:last-child {
    margin-bottom: 0;
}

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

.segment-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating {
    font-size: 1.1em;
    letter-spacing: 1px;
}

.segment-type {
    background-color: #444;
    color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.segment-rating {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.rating-high {
    background-color: #4CAF50;
    color: white;
}

.rating-medium {
    background-color: #FF9800;
    color: white;
}

.rating-low {
    background-color: #f44336;
    color: white;
}

/* Performance Summary Styles */
.event-performance-summary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 15px;
    border-bottom: 1px solid #444;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-grade-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.event-grade {
    font-size: 1.4em;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 50px;
    text-align: center;
}

.event-score {
    font-size: 1.1em;
    color: #e0e0e0;
    font-weight: 500;
}

.performance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.performance-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3); }
}

.star-performer {
    color: #FFD700;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.star-performer strong {
    color: #FFF;
}

.segment-details {
    color: #e0e0e0;
    font-size: 0.95em;
    line-height: 1.4;
}

.no-segments {
    color: #aaa;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Mobile styles for events */
@media (max-width: 600px) {
    .events-controls {
        margin-bottom: 15px;
    }
    
    .events-controls select {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        max-width: 300px;
    }
    
    .event-accordion-header {
        padding: 12px 15px;
    }
    
    .event-accordion-header h3 {
        font-size: 1.1em;
    }
    
    .event-count {
        font-size: 0.8em;
        padding: 3px 8px;
    }
    
    .event-accordion-content {
        padding: 15px;
    }
    
    .event-header {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .event-header-left {
        align-self: stretch;
    }
    
    .event-header-right {
        align-self: stretch;
        justify-content: flex-start;
    }
    
    .tv-rating {
        font-size: 0.8em;
        padding: 3px 8px;
    }
    
    .event-segments {
        padding: 12px;
    }
    
    .event-segment {
        padding: 10px;
    }
    
    .segment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .event-performance-summary {
        padding: 12px;
    }
    
    .event-grade-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .event-grade {
        font-size: 1.2em;
        padding: 6px 12px;
    }
    
    .performance-badges {
        flex-direction: column;
        gap: 6px;
    }
    
    .performance-badge {
        font-size: 0.8em;
        padding: 5px 10px;
        text-align: center;
    }
    
    .star-performer {
        font-size: 0.9em;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px;
    }
    
    .segment-rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .star-rating {
        font-size: 1em;
        letter-spacing: 0.5px;
    }
}

/* TV Negotiations Page Modern Design */
#tv-negotiations {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 100vh;
    padding: 20px;
}

#tv-negotiations h1 {
    color: #ff9800;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.tv-negotiations-controls {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #444;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tv-negotiations-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #ffc107, #ff5722);
    border-radius: 16px 16px 0 0;
}

.tv-negotiations-controls label {
    font-weight: 700;
    color: #ffc107;
    white-space: nowrap;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.tv-negotiations-controls select,
.tv-negotiations-controls input {
    padding: 12px 15px;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    color: #e0e0e0;
    border: 2px solid #555;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.tv-negotiations-controls select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffc107' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
}

.tv-negotiations-controls select:focus,
.tv-negotiations-controls input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3);
    transform: translateY(-2px);
}

.tv-negotiations-controls select:hover,
.tv-negotiations-controls input:hover {
    border-color: #ff9800;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

.tv-negotiations-controls .tv-button-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.tv-negotiations-controls .tv-button-row button {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
}

.tv-negotiations-controls .tv-button-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

/* TV slot tier headings */
.tier-heading {
    color: #ff9800;
    font-size: 1.8em;
    margin: 30px 0 20px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 3px solid #ff9800;
    padding-bottom: 10px;
}

/* TV slot cards */
.tier-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 40px;
}

.tier-container .card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #444;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tier-container .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #81c784);
    border-radius: 16px 16px 0 0;
}

.tier-container .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.tier-container .card.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #3a2a2a 0%, #2e1e1e 100%);
    border-color: #666;
}

.tier-container .card.unavailable::before {
    background: linear-gradient(90deg, #f44336, #e57373, #ef5350);
}

.tier-container .card.unavailable:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: #666;
}

.tier-container .card h3 {
    color: #ff9800;
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.tier-container .card p {
    margin: 8px 0;
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.4;
}

/* TV negotiations back button */
#tv-negotiations > button {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 10px 10px 0;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

#tv-negotiations > button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

/* Mobile responsive for TV negotiations */
@media (max-width: 768px) {
    .tv-negotiations-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tv-negotiations-controls label {
        margin-bottom: 5px;
        font-size: 1em;
    }
    
    .tv-negotiations-controls select,
    .tv-negotiations-controls input {
        font-size: 16px;
        padding: 12px;
        width: 100%;
    }
    
    .tv-negotiations-controls .tv-button-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tier-container {
        grid-template-columns: 1fr !important;
    }
    
    #tv-negotiations h1 {
        font-size: 2em;
    }
}

/* Sponsor Styles */
.sponsor-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sponsor-deal-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.sponsor-deal-card:hover {
    border-color: #ffb74d;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3);
}

.sponsor-deal-card.active {
    border-color: #4caf50 !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3) !important;
}

.sponsor-deal-card.warning {
    border-color: #ff9800 !important;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.3) !important;
}

/* TV Deal Styling */
.card.summary-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 2px solid #3b82f6;
    margin-top: 20px;
}

.card .highlight {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.1em;
}

.card .positive {
    color: #4caf50;
    font-weight: bold;
}

.card .negative {
    color: #f44336;
    font-weight: bold;
}

.sponsor-deal-card.expiring {
    border-color: #f44336;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(244, 67, 54, 0.3); }
    50% { box-shadow: 0 0 25px rgba(244, 67, 54, 0.6); }
    100% { box-shadow: 0 0 15px rgba(244, 67, 54, 0.3); }
}

.sponsor-deal-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.sponsor-industry {
    color: #81c784;
    font-weight: bold;
    margin-bottom: 8px;
}

.sponsor-payout {
    color: #ffb74d;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
}

.sponsor-duration {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.weeks-active {
    color: #90a4ae;
    font-size: 0.9em;
}

.sponsor-description {
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sponsor-actions {
    display: flex;
    gap: 10px;
}

.sponsor-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sponsor-actions button:first-child {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.sponsor-actions button:first-child:hover:not(:disabled) {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    transform: translateY(-2px);
}

.sponsor-actions button:first-child:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.terminate-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    color: white !important;
}

.terminate-btn:hover {
    background: linear-gradient(135deg, #ef5350 0%, #f44336 100%) !important;
    transform: translateY(-2px);
}

.sponsor-negotiations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sponsor-negotiation-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.sponsor-negotiation-card.available {
    border-color: #ff9800;
}

.sponsor-negotiation-card.available:hover {
    border-color: #ffb74d;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
}

.sponsor-negotiation-card.unavailable {
    border-color: #f44336 !important;
    opacity: 0.7;
}

.sponsor-reputation {
    color: #e0e0e0;
    margin-bottom: 8px;
}

.insufficient {
    color: #f44336;
    font-weight: bold;
}

.sponsor-contract {
    color: #90a4ae;
    margin-bottom: 10px;
}

.negotiation-details {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.negotiation-details p {
    margin-bottom: 8px;
}

.negotiation-details p:last-child {
    margin-bottom: 0;
}

.negotiation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.negotiation-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

.negotiation-actions button:first-child {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.negotiation-actions button:first-child:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    transform: translateY(-2px);
}

.negotiation-actions button:last-child {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: white;
}

.negotiation-actions button:last-child:hover {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    transform: translateY(-2px);
}

/* Sponsor payout display in show results */
.sponsor-payout {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.sponsor-payout p {
    margin: 0;
    font-size: 1.1em;
}

/* Options Screen Styling */
#options-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.options-section {
    background: #1e1e1e;
    border: 2px solid #ff9800;
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 20px;
}

.options-section h3 {
    color: #ff9800;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #ff9800;
    padding-bottom: 8px;
}

.options-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.options-buttons button {
    background: #ff9800;
    color: #121212;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.options-buttons button:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.option-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.option-item label {
    color: #e0e0e0;
    font-weight: 500;
    flex: 1;
}

.option-item button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.option-item button:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.option-item button.off {
    background: #f44336;
}

.option-item button.off:hover {
    background: #da190b;
}

.option-item select {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
}

.option-item select:disabled {
    background: #1a1a1a;
    color: #666;
    cursor: not-allowed;
}

.coming-soon {
    color: #888;
    font-size: 0.8em;
    font-style: italic;
    margin-left: 8px;
}

/* Save/Load Slots Modal */
#save-load-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#save-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-base);
    margin: var(--spacing-lg) 0;
}

.save-slot {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-base);
    cursor: pointer;
    transition: all var(--transition-speed);
    min-height: var(--touch-target);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.save-slot:hover {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.save-slot.empty {
    border-style: dashed;
    color: var(--text-secondary);
    text-align: center;
    justify-content: center;
    align-items: center;
}

.save-slot-info {
    flex: 1;
}

.save-slot-date {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: var(--spacing-xs);
}

.save-slot-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.save-slot-actions button {
    flex: 1;
    min-height: 36px;
    font-size: 0.9em;
}

.save-slot-name {
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 4px;
}

.save-slot-details {
    font-size: 0.9em;
    color: #ccc;
}

.save-slot-date {
    font-size: 0.8em;
    color: #888;
    text-align: right;
    white-space: nowrap;
}

/* Mobile Responsiveness for Options */
@media (max-width: 768px) {
    .options-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .option-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .option-item label {
        margin-bottom: 4px;
    }
}

/* Match Psychology Enhancements */
.chemistry-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.chemistry-badge.high {
    background: #28a745;
}

.chemistry-badge.medium {
    background: #ffc107;
    color: #212529;
}

.chemistry-badge.low {
    background: #dc3545;
}

.psychology-panel {
    background: #2d2d2d;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.psychology-panel h4 {
    margin-bottom: 10px;
    color: #ffffff;
}

.match-rating-display {
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-weight: bold;
    text-align: center;
}

.match-rating-display.high {
    background: #28a745;
    color: white;
}

.match-rating-display.medium {
    background: #ffc107;
    color: #212529;
}

.match-rating-display.low {
    background: #dc3545;
    color: white;
}

.chemistry-analysis {
    border-left: 4px solid var(--accent-primary);
    padding-left: 10px;
    margin: 10px 0;
}

.style-breakdown {
    margin: 10px 0;
    font-size: 14px;
}

.suggestion-stipulation {
    background: #3d3d3d;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 14px;
    color: #e0e0e0;
}

.booking-suggestions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.booking-suggestions-content {
    background: #2d2d2d;
    border: 1px solid #555;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    color: #e0e0e0;
}

.suggestion-item {
    border: 1px solid #555;
    background: #3d3d3d;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #e0e0e0;
}

.suggestion-item:hover {
    background-color: #4d4d4d;
}

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

.suggestion-rating {
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #e0e0e0;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.booking-suggestions-btn {
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.booking-suggestions-btn:hover {
    background: var(--accent-gold);
}

/* Enhanced wrestler cards with psychology info */
.card.enhanced {
    position: relative;
}

.card .wrestler-style {
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 4px;
}

.card .wrestler-disposition {
    font-size: 12px;
    color: #b0b0b0;
    margin-top: 2px;
}

/* Development Screen Styling */
.development-section {
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.development-section h2 {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-primary);
    display: block;
}

.stat-label {
    color: #ccc;
    font-size: 0.9em;
    margin-top: 5px;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.training-card {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.training-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border-color: var(--accent-primary);
}

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

.training-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
}

.training-cost {
    background: #404040;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #ccc;
}

.training-effects {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.effect-badge {
    background: var(--accent-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8em;
}

.training-duration {
    color: #ccc;
    font-size: 0.9em;
    margin: 5px 0;
}

.development-controls {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    align-items: center;
}

.development-controls input,
.development-controls select {
    padding: 8px 12px;
    border: 1px solid #404040;
    border-radius: 4px;
    font-size: 0.9em;
    background: #1a1a1a;
    color: #fff;
}

.roster-dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.wrestler-dev-card {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.wrestler-dev-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border-color: var(--accent-primary);
}

.wrestler-dev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wrestler-name {
    font-weight: bold;
    color: #fff;
}

.age-badge {
    background: #666;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
}

.age-rookie { background: #28a745; }
.age-rising { background: #17a2b8; }
.age-prime { background: #ffc107; color: black; }
.age-veteran { background: #fd7e14; }
.age-legend { background: #6f42c1; }
.age-elder { background: #dc3545; }

.dev-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 10px 0;
    font-size: 0.9em;
}

.dev-stat {
    text-align: center;
    padding: 4px;
    background: #2a2a2a;
    border-radius: 4px;
}

.dev-stat-label {
    display: block;
    font-size: 0.7em;
    color: #ccc;
    margin-bottom: 2px;
}

.dev-stat-value {
    font-weight: bold;
    color: #fff;
}

.potential-bar {
    width: 100%;
    height: 6px;
    background: #404040;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

.potential-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #ffc107, #28a745);
    transition: width 0.3s;
}

.training-status {
    background: #1a4d66;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    padding: 6px;
    margin: 8px 0;
    font-size: 0.8em;
    text-align: center;
    color: #ccc;
}

.training-active {
    background: #1a4d1a;
    border-color: #28a745;
    color: #90ee90;
}

.recommendations {
    background: #4d3d1a;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
    font-size: 0.8em;
}

.recommendation-item {
    margin: 2px 0;
    color: #ffeb3b;
}

.dev-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dev-button {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #404040;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s;
}

.dev-button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.dev-button:disabled {
    background: #404040;
    color: #888;
    cursor: not-allowed;
}

/* Competition System Styles */
.competition-tabs {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.tab-button {
    background: #2a2a2a;
    color: #e0e0e0;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #3a3a3a;
}

.tab-button.active {
    background: #ff9800;
    color: #000;
    border-bottom: 2px solid #ff9800;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Competition Overview */
.competition-overview {
    display: grid;
    gap: 20px;
}

.market-share-section {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.market-share-visual {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.market-share-pie {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg);
    margin: 0 auto;
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ff9800;
}

.market-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-value {
    font-weight: bold;
    color: #ff9800;
}

.position-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.position-card {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.position-card.player-company {
    border-color: #ff9800;
    background: #2a2a2a;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 10px;
}

.company-header h4 {
    color: #ffffff;
    margin: 0;
}

.market-share {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff9800;
}

.momentum-bar {
    margin: 10px 0;
}

.momentum-bar label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9em;
}

.momentum-indicator {
    position: relative;
    background: #333;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.momentum-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.momentum-text {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
}

.company-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.stat .label {
    color: #aaa;
}

.stat .value.positive {
    color: #4caf50;
}

.stat .value.negative {
    color: #f44336;
}

.stat .value.emergency {
    color: #ff5722;
    font-weight: bold;
}

.stat .value.normal {
    color: #4caf50;
}

/* Competition Alerts */
.competition-alerts {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.alerts-list {
    max-height: 300px;
    overflow-y: auto;
}

.competition-alert {
    background: #2a2a2a;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #666;
}

.competition-alert.major {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.competition-alert.moderate {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.competition-alert.minor {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

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

.alert-title {
    font-weight: bold;
    color: #ffffff;
}

.alert-week {
    font-size: 0.8em;
    color: #888;
}

.alert-message {
    color: #ccc;
    font-size: 0.9em;
}

/* Trending Storylines */
.trending-storylines {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.storylines-grid {
    display: grid;
    gap: 10px;
}

.storyline-card {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #444;
}

.storyline-heat {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.heat-label {
    color: #aaa;
    font-size: 0.9em;
    min-width: 40px;
}

.heat-bar {
    flex: 1;
    position: relative;
    background: #333;
    height: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.heat-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.heat-value {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 0.7em;
    font-weight: bold;
    color: #fff;
}

.storyline-description {
    color: #ccc;
    font-size: 0.9em;
}

/* Ratings War Panel */
.ratings-war-panel {
    display: grid;
    gap: 20px;
}

.ratings-war-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.competition-level {
    color: #aaa;
}

.level-indicator {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

.level-indicator.intense {
    background: #f44336;
    color: #fff;
}

.level-indicator.competitive {
    background: #ff9800;
    color: #fff;
}

.level-indicator.moderate {
    background: #4caf50;
    color: #fff;
}

/* Battle Results */
.last-battle {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.battle-result {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    margin-top: 15px;
}

.battle-result.major {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.battle-result.moderate {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.battle-result.minor {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.battle-companies {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.winner-side, .loser-side {
    text-align: center;
}

.company-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
}

.company-name.winner {
    text-shadow: 0 0 10px currentColor;
}

.rating-display {
    font-size: 2em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    background: #333;
}

.rating-display.winner {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: #fff;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.rating-display.loser {
    background: #2a2a2a;
    color: #888;
}

.vs-indicator {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff9800;
    align-self: center;
}

.victory-margin {
    text-align: center;
    font-size: 1.1em;
    margin: 10px 0;
    color: #e0e0e0;
}

.battle-significance {
    text-align: center;
    font-size: 0.9em;
}

.battle-significance span.major {
    color: #f44336;
    font-weight: bold;
}

.battle-significance span.moderate {
    color: #ff9800;
    font-weight: bold;
}

.battle-significance span.minor {
    color: #4caf50;
    font-weight: bold;
}

/* Ratings Chart */
.ratings-chart-container {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.line-chart {
    position: relative;
    width: 100%;
    height: 100%;
}

.chart-grid {
    position: absolute;
    width: 100%;
    height: 100%;
}

.grid-line {
    position: absolute;
    width: 100%;
    border-bottom: 1px solid #333;
    color: #666;
    font-size: 0.8em;
    padding-left: 5px;
}

.chart-lines {
    position: relative;
    width: 100%;
    height: 100%;
}

.chart-line {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translate(-50%, 50%);
    cursor: pointer;
    transition: all 0.2s ease;
}

.data-point:hover {
    transform: translate(-50%, 50%) scale(1.5);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-line {
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

/* Current Week Breakdown */
.ratings-breakdown {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.week-breakdown {
    display: grid;
    gap: 10px;
}

.show-result {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.show-result.winner {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.position-number {
    font-size: 1.5em;
    font-weight: bold;
    width: 40px;
    text-align: center;
    color: #ff9800;
    margin-right: 15px;
}

.show-info {
    flex: 1;
    background: var(--bg-elevated);
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-align: center;
    margin: var(--space-lg) 0;
    font-style: italic;
}

.show-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.company-name {
    font-weight: bold;
    font-size: 1.1em;
}

.show-name {
    color: #aaa;
    font-style: italic;
}

.show-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #ccc;
}

.winner-badge {
    font-size: 2em;
    margin-left: 15px;
}

/* Talent Movement Panel */
.talent-movement-panel {
    display: grid;
    gap: 20px;
}

.talent-war-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.fa-count {
    color: #ff9800;
    font-weight: bold;
}

.top-free-agents {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.free-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.free-agent-card {
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
    overflow: hidden;
    transition: all 0.3s ease;
}

.free-agent-card:hover {
    border-color: #ff9800;
    transform: translateY(-2px);
}

.wrestler-image {
    height: 100px;
    overflow: hidden;
}

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

.wrestler-info {
    padding: 15px;
}

.wrestler-name {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.wrestler-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wrestler-stats .stat {
    font-size: 0.8em;
    color: #aaa;
}

.wrestler-value {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.salary-demand {
    color: #4caf50;
    font-weight: bold;
}

.contract-length {
    color: #aaa;
}

.ai-interest {
    padding: 10px 15px;
    background: #1e1e1e;
    border-top: 1px solid #444;
}

.interest-level {
    font-size: 0.8em;
    color: #aaa;
}

.interest-meter {
    position: relative;
    background: #333;
    height: 15px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
}

.interest-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #ff9800, #f44336);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.interest-label {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 0.7em;
    font-weight: bold;
    color: #fff;
}

/* Talent Movement History */
.talent-movement-history {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.movement-timeline {
    max-height: 300px;
    overflow-y: auto;
}

.movement-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    margin-bottom: 8px;
    background: #2a2a2a;
    border-radius: 6px;
    border-left: 3px solid #ff9800;
}

.move-date {
    min-width: 80px;
    color: #ff9800;
    font-weight: bold;
    font-size: 0.9em;
}

.move-details {
    color: #ccc;
    font-size: 0.9em;
}

.no-movement {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Poaching Risk Analysis */
.poaching-alerts {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.risk-analysis {
    margin-top: 15px;
}

.no-risk {
    text-align: center;
    color: #4caf50;
    font-style: italic;
    padding: 20px;
}

.risk-wrestlers h5 {
    color: #ff9800;
    margin-bottom: 15px;
}

.risk-wrestler {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a2a;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #444;
}

.risk-wrestler.high {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.risk-wrestler.medium {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.risk-wrestler.low {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.risk-wrestler .wrestler-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.small-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.wrestler-details .wrestler-name {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 3px;
}

.contract-info {
    font-size: 0.8em;
    color: #aaa;
}

.risk-indicator {
    text-align: right;
}

.risk-level {
    font-size: 0.8em;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    margin-bottom: 3px;
}

.risk-level.high {
    background: #f44336;
    color: #fff;
}

.risk-level.medium {
    background: #ff9800;
    color: #fff;
}

.risk-level.low {
    background: #4caf50;
    color: #fff;
}

.ai-interest-mini {
    font-size: 0.7em;
    color: #aaa;
}

/* Business Warfare Panel */
.business-warfare-panel {
    display: grid;
    gap: 20px;
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.warfare-intensity {
    color: #aaa;
}

.business-modifiers {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.modifier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.modifier-card {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

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

.modifier-header h5 {
    color: #ffffff;
    margin: 0;
}

.modifier-value {
    font-size: 1.2em;
    font-weight: bold;
}

.modifier-value.positive {
    color: #4caf50;
}

.modifier-value.negative {
    color: #f44336;
}

.modifier-description {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Competitor Analysis */
.competitor-analysis {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.competitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.competitor-card {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
}

.competitor-header {
    padding-left: 10px;
    margin-bottom: 15px;
}

.competitor-header h5 {
    color: #ffffff;
    margin: 0 0 5px 0;
}

.financial-health {
    font-size: 0.9em;
}

.financial-health.strong {
    color: #4caf50;
}

.financial-health.moderate {
    color: #ff9800;
}

.financial-health.weak {
    color: #f44336;
}

.competitor-stats {
    display: grid;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.stat-label {
    color: #aaa;
}

.stat-value {
    font-weight: bold;
    color: #e0e0e0;
}

.stat-value.positive {
    color: #4caf50;
}

.stat-value.negative {
    color: #f44336;
}

.stat-value.emergency {
    color: #ff5722;
    animation: pulse 2s infinite;
}

.stat-value.normal {
    color: #4caf50;
}

/* Market Outlook */
.market-outlook {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.outlook-analysis {
    margin-top: 15px;
}

.market-predictions {
    display: grid;
    gap: 10px;
}

.prediction {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #666;
}

.prediction.positive {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.prediction.negative {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.prediction.warning {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.prediction.info {
    border-left-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.prediction-icon {
    font-size: 1.2em;
    line-height: 1;
}

.prediction-text {
    color: #e0e0e0;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 6px;
    }
    
    .position-cards {
        grid-template-columns: 1fr;
    }
    
    .battle-companies {
        flex-direction: column;
        gap: 15px;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
    }
    
    .modifier-cards {
        grid-template-columns: 1fr;
    }
    
    .competitor-grid {
        grid-template-columns: 1fr;
    }
    
    .free-agents-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Enhanced Financial System Styles */
.financial-tabs-container {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.financial-tabs {
    display: flex;
    background: #2d2d2d;
    border-bottom: 2px solid #3d3d3d;
}

.financial-tabs .tab-button {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.financial-tabs .tab-button:hover {
    background: #3d3d3d;
    color: #fff;
}

.financial-tabs .tab-button.active {
    background: #4caf50;
    color: #fff;
    font-weight: 700;
}

.financial-tabs .tab-panel {
    display: none;
    padding: 20px;
    min-height: 400px;
}

.financial-tabs .tab-panel.active {
    display: block;
}

/* Financial Summary Cards */
.financial-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border-left: 4px solid #4caf50;
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-card.income {
    border-left-color: #2196f3;
}

.summary-card.expenses {
    border-left-color: #f44336;
}

.summary-card.profit {
    border-left-color: #ff9800;
}

.summary-card h3 {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .amount {
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.summary-card .amount.positive {
    color: #4caf50;
}

.summary-card .amount.negative {
    color: #f44336;
}

.summary-card .subtitle {
    font-size: 0.8em;
    color: #888;
}

.summary-card .trend {
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 4px;
}

.summary-card .trend.positive {
    color: #4caf50;
}

.summary-card .trend.negative {
    color: #f44336;
}

/* Financial Charts */
.financial-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-container {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
}

.chart-container h4 {
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.1em;
}

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

.pie-svg {
    width: 200px;
    height: 200px;
    margin-bottom: 12px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
}

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

/* Company Financial Info */
.company-financial-info {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
}

.company-financial-info h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.company-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #3d3d3d;
}

.stat-item .label {
    color: #b0b0b0;
    font-weight: 500;
}

.stat-item .value {
    color: #fff;
    font-weight: 600;
}

/* Income/Expense Breakdown */
.income-breakdown, .expense-breakdown {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.income-breakdown h4, .expense-breakdown h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1em;
}

.income-items, .expense-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.income-item, .expense-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.income-item .source, .expense-item .category {
    display: flex;
    justify-content: space-between;
    color: #b0b0b0;
    font-size: 0.9em;
}

.income-item .amount, .expense-item .amount {
    color: #fff;
    font-weight: 600;
}

.bar {
    height: 8px;
    background: #3d3d3d;
    border-radius: 4px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.expense-items .bar .fill {
    background: linear-gradient(90deg, #f44336, #e57373);
}

/* Efficiency Metrics */
.expense-efficiency {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
}

.expense-efficiency h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1em;
}

.efficiency-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #3d3d3d;
}

.metric .label {
    color: #b0b0b0;
}

.metric .value {
    color: #fff;
    font-weight: 600;
}

.metric .value.positive {
    color: #4caf50;
}

.metric .value.negative {
    color: #f44336;
}

/* Trend Charts */
.trend-chart, .performance-chart {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.line-chart {
    width: 100%;
    height: 200px;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8em;
    color: #888;
}

/* Financial Insights */
.financial-insights {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
}

.financial-insights h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1em;
}

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

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    background: #3d3d3d;
}

.insight-item.positive {
    border-left: 4px solid #4caf50;
}

.insight-item.negative {
    border-left: 4px solid #f44336;
}

.insight-item.warning {
    border-left: 4px solid #ff9800;
}

.insight-icon {
    font-weight: bold;
    margin-top: 2px;
}

.insight-item.positive .insight-icon {
    color: #4caf50;
}

.insight-item.negative .insight-icon {
    color: #f44336;
}

.insight-item.warning .insight-icon {
    color: #ff9800;
}

.insight-text {
    color: #e0e0e0;
    line-height: 1.4;
    flex: 1;
}

/* Responsive Design for Financial UI */
@media (max-width: 768px) {
    .financial-charts-row {
        grid-template-columns: 1fr;
    }
    
    .financial-summary-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
    }
    
    .financial-tabs {
        flex-wrap: wrap;
    }
    
    .financial-tabs .tab-button {
        flex: 1 1 50%;
        min-width: 120px;
    }
}

/* Enhanced Free Agents UI Styling - Matches Roster */
.free-agents-header-container {
    margin-bottom: 24px;
}

.free-agents-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.enhanced-free-agents-controls {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.free-agents-controls-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
}

.free-agents-content-container {
    min-height: 400px;
}

/* Free Agent Card Specific Styling */
.wrestler-card.free-agent {
    border: 2px solid #27ae60;
    
}

.wrestler-card.free-agent .wrestler-stats {
    background: transparent !important;
    padding: 16px !important;
}

.wrestler-card.free-agent .stat-item {
    background: transparent !important;
}

.wrestler-card.free-agent.expensive {
    border-color: #e74c3c;
    opacity: 0.7;
}

.wrestler-card.free-agent .expensive-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Status badges for free agents */
.status-badge.affordable {
    background: #27ae60;
    color: white;
}

.status-badge.expensive {
    background: #e74c3c;
    color: white;
}

.status-badge.prospect {
    background: #f39c12;
    color: white;
}

/* Free agent list styling */
.wrestler-list-item.free-agent {
    border-left: 4px solid #27ae60;
}

.wrestler-list-item.free-agent.expensive {
    border-left-color: #e74c3c;
    opacity: 0.7;
}

/* Roster Card Specific Styling - Match Free Agent spacing */
.wrestler-card:not(.free-agent) .wrestler-stats {
    background: transparent !important;
    padding: 16px !important;
}

.wrestler-card:not(.free-agent) .stat-item {
    background: transparent !important;
}

/* Modal button styling for free agents */
.action-btn.sign-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.action-btn.sign-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.action-btn.disabled {
    background: #7f8c8d;
    color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.action-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Enhanced Roster UI Styles */
.roster-header-container {
    margin-bottom: 24px;
}

.roster-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.roster-summary-cards .summary-card {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border-left: 4px solid #4caf50;
    transition: transform 0.2s ease;
}

.roster-summary-cards .summary-card:hover {
    transform: translateY(-2px);
}

.roster-summary-cards .summary-card.total-salary {
    border-left-color: #f44336;
}

.roster-summary-cards .summary-card.avg-popularity {
    border-left-color: #2196f3;
}

.roster-summary-cards .summary-card.avg-morale {
    border-left-color: #ff9800;
}

.roster-summary-cards .summary-card.champions {
    border-left-color: #ffd700;
}

.roster-summary-cards .summary-card.injured {
    border-left-color: #e91e63;
}

/* Enhanced Roster Controls */
.enhanced-roster-controls {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.roster-controls-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    color: #b0b0b0;
    font-size: 0.9em;
    font-weight: 500;
}

.control-group input,
.control-group select {
    padding: 8px 12px;
    border: 1px solid #3d3d3d;
    background: #1e1e1e;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9em;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #4caf50;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    flex: 1;
    padding: 8px 12px;
    background: #3d3d3d;
    border: none;
    color: #b0b0b0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.view-btn:hover {
    background: #4d4d4d;
    color: #fff;
}

.view-btn.active {
    background: #4caf50;
    color: #fff;
}

.view-icon {
    font-size: 0.9em;
}

/* Roster Content */
.roster-content-container {
    min-height: 400px;
}

.no-wrestlers {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 60px 20px;
    background: #2d2d2d;
    border-radius: 8px;
}

/* Grid View */
.tier-section {
    margin-bottom: 32px;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3d3d3d;
}

.tier-title {
    color: #fff;
    font-size: 1.3em;
    margin: 0;
}

.tier-count {
    color: #888;
    font-size: 0.9em;
}

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

/* Wrestler Cards */
.wrestler-card {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wrestler-card:hover {
    transform: translateY(-4px);
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.wrestler-card.injured {
    border-color: #f44336;
    opacity: 0.8;
}

.wrestler-card.external {
    opacity: 0.7;
}

.wrestler-card-header {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #353535;
}

.wrestler-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #4caf50;
}

.wrestler-basic-info {
    flex: 1;
    min-width: 0;
}

.wrestler-name {
    color: #fff;
    font-size: 1.0em;
    margin: 0 0 3px 0;
    font-weight: 600;
}

.wrestler-promotion {
    color: #888;
    font-size: 0.8em;
    margin-bottom: 3px;
}

.championship-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.wrestler-rating {
    text-align: center;
    min-width: 60px;
}

.wrestler-card .overall-rating {
    background: #4caf50 !important;
    color: #ffffff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    margin: 0 auto 4px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    line-height: 1 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Flip card rating circle styles */
.flip-card-front .overall-rating {
    background: #4caf50 !important;
    color: #ffffff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    margin: 0 auto 4px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    line-height: 1 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent overall rating text from being mirrored during flip */
.flip-card:hover .flip-card-front .overall-rating,
.flip-card.flipped .flip-card-front .overall-rating {
    transform: rotateY(-180deg) !important;
}

/* Color-coded overall rating circles */
.overall-rating.excellent,
.flip-card-front .overall-rating.excellent {
    background: #2e7d32 !important; /* Dark Green */
    color: #ffffff !important;
}

.overall-rating.great,
.flip-card-front .overall-rating.great {
    background: #4caf50 !important; /* Green */
    color: #ffffff !important;
}

.overall-rating.good,
.flip-card-front .overall-rating.good {
    background: #ffa726 !important; /* Orange */
    color: #ffffff !important;
}

.overall-rating.average,
.flip-card-front .overall-rating.average {
    background: #ff7043 !important; /* Red-Orange */
    color: #ffffff !important;
}

.overall-rating.poor,
.flip-card-front .overall-rating.poor {
    background: #e53935 !important; /* Red */
    color: #ffffff !important;
}

.wrestler-card .rating-label {
    color: #888 !important;
    font-size: 0.8em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

/* Professional Wrestler Stats Section */
.wrestler-stats {
    padding: 16px !important;
    background: #2a2a2a !important;
    margin: 0 !important;
    border-bottom: 1px solid #3a3a3a !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: none;
}

.stats-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.primary-stats {
    padding-bottom: 8px;
    border-bottom: 1px solid #3a3a3a;
}

.stat-group {
    text-align: center;
    flex: 1;
    position: relative;
    min-width: 0; /* Allow flex shrinking */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 1px !important;
    display: block !important;
}

.stat-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    display: block !important;
}

/* Special styling for different stat types */
.salary-group .stat-value {
    color: #4caf50 !important;
}

.morale-group .stat-value.positive {
    color: #4caf50 !important;
}

.morale-group .stat-value.negative {
    color: #f44336 !important;
}

.age-group .stat-value {
    color: #ff9800 !important;
}

/* Professional Details Section */
.wrestler-details {
    padding: 12px 16px !important;
    background: #262626 !important;
    border-bottom: 1px solid #3a3a3a !important;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #aaa !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.detail-value {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: capitalize !important;
}

.detail-value.face {
    color: #2196f3 !important;
}

.detail-value.heel {
    color: #f44336 !important;
}

.detail-value.neutral {
    color: #888 !important;
}

/* Refined Status Badges */
.wrestler-status {
    padding: 8px 16px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-height: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #262626 !important;
    border-bottom: 1px solid #3a3a3a !important;
}

.status-badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    border: none !important;
    box-shadow: none !important;
}

.status-badge.injured {
    background: #f44336 !important;
    color: #fff !important;
}

.status-badge.championship {
    background: #ffd700 !important;
    color: #000 !important;
}

.status-badge.affordable {
    background: #4caf50 !important;
    color: #fff !important;
}

.status-badge.expensive {
    background: #ff5722 !important;
    color: #fff !important;
}

/* Professional Card Footer */
.card-footer {
    padding: 8px 16px !important;
    background: #222 !important;
    text-align: center !important;
    border-top: 1px solid #3a3a3a !important;
}

.flip-hint {
    font-size: 10px !important;
    color: #666 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Remove old styles */
.wrestler-info-section,
.flip-indicator {
    display: none !important;
}

.wrestler-stats .stat-value.positive {
    color: #4caf50 !important;
}

.wrestler-stats .stat-value.negative {
    color: #f44336 !important;
}

/* Wrestler Status */
.wrestler-status {
    padding: 6px 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    min-height: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
}

.status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge.injured {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.status-badge.feud {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.status-badge.disposition.face {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.status-badge.disposition.heel {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.status-badge.disposition {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid #9e9e9e;
}

.status-badge.championship {
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    border: 1px solid #ffd700;
    font-weight: 600;
}

/* List View */
.wrestlers-list {
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
}

.list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: #353535;
    font-weight: 600;
    color: #fff;
    font-size: 0.9em;
    border-bottom: 1px solid #3d3d3d;
}

.wrestler-list-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #3d3d3d;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
}

.wrestler-list-item:hover {
    background: #353535;
}

.wrestler-list-item.injured {
    opacity: 0.7;
    background: rgba(244, 67, 54, 0.1);
}

.wrestler-list-item.external {
    opacity: 0.6;
}

.list-col {
    color: #e0e0e0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

.name-col {
    gap: 12px;
}

.wrestler-list-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #4caf50;
}

.wrestler-list-name {
    font-weight: 500;
    color: #fff;
}

.list-col.positive {
    color: #4caf50;
}

.list-col.negative {
    color: #f44336;
}

.list-col.na {
    color: #666;
}

/* Flip Cards for Roster and Free Agents */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 380px;
    perspective: 1000px;
    font-family: inherit;
    position: relative;
    z-index: 1;
}

.flip-card:hover,
.flip-card.flipped {
    z-index: 10;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    top: 0;
    left: 0;
    transform-origin: center center;
}

.flip-card-front {
    background: #2d2d2d;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    position: relative;
}

.flip-card:hover .flip-card-front {
    border-color: #4caf50;
}

.flip-card-back {
    background: linear-gradient(135deg, #3e3e3e 0%, #2d2d2d 50%, #3e3e3e 100%);
    color: white;
    transform: rotateY(180deg);
    border: 2px solid #4caf50;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-back-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced from 8px */
}

.back-wrestler-name {
    color: #fff;
    font-size: 1.1em;
    margin: 0 0 6px 0;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #4caf50;
    padding-bottom: 6px;
}

.back-columns {
    display: flex;
    gap: 8px;
    flex: 1;
}

.back-left-column,
.back-right-column {
    flex: 1;
}

.back-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 6px;
}

.back-section.compact {
    padding: 6px;
    margin-bottom: 4px;
}

.back-section h4 {
    color: #4caf50;
    font-size: 0.8em;
    margin: 0 0 4px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-detail {
    color: #e0e0e0;
    font-size: 0.8em;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-detail-compact {
    color: #e0e0e0;
    font-size: 0.75em;
    margin-bottom: 2px;
    line-height: 1.2;
}

.back-section.injury-section {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.back-actions {
    margin-top: auto;
    padding-top: 8px;
}

.back-action-btn {
    width: 100%;
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.back-action-btn:hover {
    background: #45a049;
}

.back-action-btn.fire-btn {
    background: #e74c3c;
}

.back-action-btn.fire-btn:hover {
    background: #c0392b;
}

.back-action-btn.hire-btn {
    background: #27ae60;
}

.back-action-btn.hire-btn:hover {
    background: #229954;
}

/* Grid adjustments for flip cards */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
}

.flip-cards-grid .flip-card {
    contain: layout;
}

/* Injured and External states for flip cards */
.flip-card.injured .flip-card-front {
    border-color: #f44336;
    opacity: 0.8;
}

.flip-card.external .flip-card-front {
    opacity: 0.7;
}

.flip-card.expensive .flip-card-front {
    border-color: #ff9800;
}

/* Wrestler Details Modal */
.wrestler-details-modal {
    max-width: 900px;
    margin: 0 auto;
}

.wrestler-details-modal .modal-content {
    max-height: 95vh;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.wrestler-photo-large img {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 3px solid var(--success-color);
}

.wrestler-title-info {
    flex: 1;
}

.wrestler-modal-name {
    color: var(--text-primary);
    font-size: 2em;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.wrestler-modal-promotion {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 12px;
}

.wrestler-overall-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.overall-number {
    background: var(--success-color);
    color: var(--text-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5em;
}

.overall-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modal Content Grid */
.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.detail-section {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: var(--spacing-base);
}

.detail-section h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 1.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-bar-container {
    margin-bottom: 8px;
}

.stat-bar-label {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-bar {
    position: relative;
    background: #1e1e1e;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.stat-bar-fill.positive {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.stat-bar-fill.negative {
    background: linear-gradient(90deg, #f44336, #e57373);
}

.stat-bar-value {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 600;
    font-size: 0.85em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Financial Grid */
.financial-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.financial-label {
    color: #b0b0b0;
    font-weight: 500;
}

.financial-value {
    color: #fff;
    font-weight: 600;
}

/* Championship Section */
.championship-section {
    grid-column: span 2;
}

.championship-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 6px;
    color: #000;
}

.championship-title {
    font-weight: 700;
    font-size: 1.1em;
}

.championship-promotion {
    font-weight: 500;
    opacity: 0.8;
}

/* Feud Section */
.feud-section {
    grid-column: span 2;
}

.feud-info {
    padding: 12px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 6px;
    border-left: 4px solid #ff9800;
}

.feud-opponents {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.feud-details {
    color: #ff9800;
    font-size: 0.9em;
}

/* Injury Section */
.injury-section {
    grid-column: span 2;
}

.injury-info {
    padding: 12px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 6px;
    border-left: 4px solid #f44336;
}

.injury-status {
    color: #f44336;
    font-weight: 600;
    margin-bottom: 4px;
}

.injury-time {
    color: #f44336;
    font-size: 0.9em;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    padding-top: var(--spacing-base);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.action-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--touch-target);
    min-width: 100px;
    justify-content: center;
    font-size: 0.95em;
}

.action-btn.fire-btn {
    background: #f44336;
    color: #fff;
}

.action-btn.fire-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.action-btn.hire-btn {
    background: #4caf50;
    color: #fff;
}

.action-btn.hire-btn:hover {
    background: #43a047;
    transform: translateY(-2px);
}

.action-btn.cancel-btn {
    background: #666;
    color: #fff;
}

.action-btn.cancel-btn:hover {
    background: #555;
}

.btn-icon {
    font-size: 1.1em;
}

/* Responsive Design for Roster */
@media (max-width: 1024px) {
    .roster-controls-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .wrestlers-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .modal-content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .championship-section,
    .feud-section,
    .injury-section {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .roster-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wrestlers-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    /* Mobile flip cards adjustments */
    .flip-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
    
    .list-header,
    .wrestler-list-item {
        grid-template-columns: 2fr 60px 60px 1fr;
        gap: 8px;
    }
    
    .list-col:nth-child(4),
    .list-col:nth-child(5),
    .list-col:nth-child(6) {
        display: none;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .modal-actions {
        justify-content: center;
    }
    
    /* =================================
       MOBILE MODAL OPTIMIZATIONS
       ================================= */
    
    .modal {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        margin: 0;
        max-height: calc(100vh - 24px);
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        padding: 24px 20px;
    }
    
    .close {
        font-size: 24px;
        width: 44px;
        height: 44px;
        top: 12px;
        right: 12px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .notification-modal {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-content.notification-modal {
        padding: 28px 20px;
        border-radius: 16px;
    }
    
    #notification-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    
    #notification-buttons button {
        width: 100%;
        min-width: 100%;
        min-height: 52px; /* Larger touch targets on mobile */
        font-size: 17px;
        border-radius: 14px;
    }
    
    #notification-icon {
        font-size: 56px;
    }
    
    #notification-title {
        font-size: 1.25em;
    }
    
    #notification-message {
        font-size: 1em;
        line-height: 1.4;
    }
    
    /* Save/Load Modal Mobile */
    #save-slots-container {
        grid-template-columns: 1fr;
    }
    
    .save-slot {
        min-height: 60px;
    }
    
    .save-slot-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .save-slot-actions button {
        width: 100%;
    }
}

/* Tag Teams Styles */
.tag-teams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 8px;
}

.tag-teams-stats {
    color: #ff9800;
    font-weight: bold;
}

.tag-teams-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.tag-team-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tag-team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.tag-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tag-team-header h3 {
    color: #ff9800;
    margin: 0;
    font-size: 1.2em;
}

.tag-team-actions {
    display: flex;
    gap: 8px;
}

.tag-team-members {
    text-align: center;
    margin: 15px 0;
    font-size: 1.1em;
}

.tag-team-members .member {
    color: #e0e0e0;
    font-weight: bold;
}

.tag-team-members .plus {
    color: #ff9800;
    margin: 0 10px;
    font-weight: bold;
}

.tag-team-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.tag-team-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.tag-team-stats .stat label {
    color: #888;
    font-size: 0.9em;
}

.chemistry {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.chemistry.excellent {
    background: #4caf50;
    color: white;
}

.chemistry.good {
    background: #8bc34a;
    color: white;
}

.chemistry.average {
    background: #ff9800;
    color: white;
}

.chemistry.poor {
    background: #ff5722;
    color: white;
}

.chemistry.terrible {
    background: #f44336;
    color: white;
}

/* Create Tag Team Form */
.create-tag-team-form {
    max-width: 500px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.create-tag-team-form h3 {
    color: #ff9800;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #e0e0e0;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.chemistry-preview {
    margin: 20px 0;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.chemistry-preview h4 {
    color: #ff9800;
    margin-bottom: 10px;
}

.chemistry-bar-container {
    position: relative;
    background: #444;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.chemistry-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chemistry-value {
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Tag Team Details */
.tag-team-details {
    max-width: 600px;
    margin: 0 auto;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
}

.details-header h3 {
    color: #ff9800;
    margin: 0;
    font-size: 1.5em;
}

.team-info {
    margin-bottom: 30px;
}

.members-section,
.stats-section {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.members-section h4,
.stats-section h4 {
    color: #ff9800;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.member-cards {
    display: flex;
    gap: 15px;
}

.member-card {
    flex: 1;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    text-align: center;
}

.member-card h5 {
    color: #e0e0e0;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.member-card p {
    color: #888;
    margin: 4px 0;
    font-size: 0.9em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stats-grid .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #444;
}

.stats-grid .stat label {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stats-grid .stat span {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1.1em;
}

.team-actions {
    text-align: center;
    padding: 20px;
}

.no-teams {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Button Styles */
.create-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.create-btn:hover:not(:disabled) {
    background: #45a049;
}

.create-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.view-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.view-btn:hover {
    background: #1976d2;
}

.disband-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.disband-btn:hover {
    background: #d32f2f;
}

.back-btn {
    background: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tag-teams-list {
        grid-template-columns: 1fr;
    }
    
    .tag-teams-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .member-cards {
        flex-direction: column;
    }
    
    .details-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stables Styles */
.stables-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 8px;
}

.stables-stats {
    color: #ff9800;
    font-weight: bold;
}

.stables-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stable-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

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

.stable-header h3 {
    color: #ff9800;
    margin: 0;
    font-size: 1.2em;
}

.stable-actions {
    display: flex;
    gap: 8px;
}

.stable-members {
    margin: 15px 0;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.4;
}

.stable-members .member {
    color: #e0e0e0;
    font-weight: bold;
}

.stable-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.stable-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.stable-stats .stat label {
    color: #888;
    font-size: 0.9em;
}

/* Create Stable Form */
.create-stable-form {
    max-width: 800px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.create-stable-form h3 {
    color: #ff9800;
    margin-bottom: 20px;
    text-align: center;
}

.wrestler-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.available-wrestlers,
.selected-wrestlers {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
}

.available-wrestlers h4,
.selected-wrestlers h4 {
    color: #ff9800;
    margin-bottom: 10px;
    font-size: 1em;
}

.wrestler-list {
    max-height: 300px;
    overflow-y: auto;
}

.wrestler-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    background: #333;
    border-radius: 4px;
    transition: background 0.2s;
}

.wrestler-option:hover {
    background: #444;
}

.wrestler-option.selected {
    background: #2a4d3a;
    border: 1px solid #4caf50;
}

.wrestler-name {
    flex-grow: 1;
    color: #e0e0e0;
    font-weight: bold;
}

.wrestler-skill {
    color: #888;
    margin-right: 10px;
    font-size: 0.9em;
}

.add-btn,
.remove-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background 0.2s;
}

.remove-btn {
    background: #f44336;
}

.add-btn:hover {
    background: #45a049;
}

.remove-btn:hover {
    background: #d32f2f;
}

.no-selection,
.no-wrestlers {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* Stable Details */
.stable-details {
    max-width: 800px;
    margin: 0 auto;
}

.stable-info {
    margin-bottom: 30px;
}

.members-section {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.members-section h4 {
    color: #ff9800;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.member-card {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    text-align: center;
    position: relative;
}

.member-card h5 {
    color: #e0e0e0;
    margin-bottom: 8px;
    font-size: 1em;
}

.member-card p {
    color: #888;
    margin: 4px 0;
    font-size: 0.85em;
}

.remove-member-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
    margin-top: 8px;
    transition: background 0.2s;
}

.remove-member-btn:hover {
    background: #d32f2f;
}

.add-member-section {
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px dashed #666;
}

.add-member-section h5 {
    color: #ff9800;
    margin-bottom: 10px;
}

.add-member-section select {
    width: 70%;
    padding: 8px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    margin-right: 10px;
}

.add-member-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.add-member-btn:hover {
    background: #45a049;
}

.max-members {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px dashed #666;
}

.no-stables {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
    background: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Responsive Design for Stables */
@media (max-width: 768px) {
    .stables-list {
        grid-template-columns: 1fr;
    }
    
    .stables-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .wrestler-selection {
        grid-template-columns: 1fr;
    }
    
    .member-cards {
        grid-template-columns: 1fr;
    }
    
    .add-member-section select {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .add-member-btn {
        width: 100%;
    }
}

/* =========================
   ANALYTICS DASHBOARD
   ========================= */

.analytics-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-subtle);
}

.header-left {
    justify-self: start;
}

.header-title {
    justify-self: center;
    color: var(--accent-primary);
    margin: 0;
}

.analytics-controls {
    justify-self: end;
    display: flex;
    gap: 10px;
    align-items: center;
}


.refresh-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.refresh-btn:hover {
    background: var(--accent-hover);
}

#analytics-timeframe {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.analytics-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 25px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
    overflow-x: auto;
}

.analytics-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 140px;
    font-size: 0.9em;
}

.analytics-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.analytics-tab.active {
    background: var(--accent-primary);
    color: white;
}

.analytics-content {
    position: relative;
}

.analytics-panel {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.analytics-panel.active {
    display: block;
}

.analytics-section {
    margin-bottom: 30px;
}

.analytics-section h3 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Top Performers */
.top-performers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.performer-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.performer-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.performer-card.top-performer {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.performer-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-primary);
    min-width: 35px;
}

.top-performer .performer-rank {
    color: var(--accent-gold);
}

.performer-name {
    flex: 1;
    font-weight: bold;
    color: var(--text-primary);
}

.performer-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
}

.performer-stats .stat {
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.performer-trend {
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.trend-rising {
    background: rgba(76, 175, 80, 0.2);
    color: var(--accent-success);
}

.trend-falling {
    background: rgba(244, 67, 54, 0.2);
    color: var(--accent-danger);
}

.trend-stable {
    background: rgba(255, 152, 0, 0.2);
    color: var(--accent-warning);
}

/* Performance Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.metric-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Tables */
.table-container {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

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

.analytics-table th,
.analytics-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.analytics-table th {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    font-weight: bold;
    position: sticky;
    top: 0;
}

.analytics-table td {
    color: var(--text-secondary);
}

.analytics-table .wrestler-name {
    color: var(--text-primary);
    font-weight: bold;
}

.popularity-bar {
    display: inline-block;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 8px;
    max-width: 60px;
}

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

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

/* Financial Cards */
.financial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.financial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.financial-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.financial-card.primary {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 152, 0, 0.1) 100%);
}

.card-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.card-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Revenue Streams */
.revenue-streams {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
}

.stream-item {
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}

.stream-item:last-child {
    margin-bottom: 0;
}

.stream-label {
    color: var(--text-primary);
    font-size: 0.9em;
}

.stream-bar {
    background: var(--bg-tertiary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.stream-bar div {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stream-value {
    color: var(--accent-primary);
    font-weight: bold;
    text-align: right;
    font-size: 0.9em;
}

/* Quality Metrics */
.quality-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.quality-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
}

.quality-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.quality-value {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.quality-label {
    color: var(--text-secondary);
    font-size: 0.85em;
}

/* Booking Patterns */
.booking-patterns-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pattern-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
}

.pattern-section h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.booking-list,
.underutilized-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-item,
.underutilized-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.booking-item .wrestler-name,
.underutilized-item .wrestler-name {
    color: var(--text-primary);
    font-weight: bold;
}

.match-count {
    background: var(--accent-primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.underutilized-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
}

.popularity {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Storyline Stats */
.feud-overview,
.storyline-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.feud-stat,
.storyline-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
}

.feud-stat:hover,
.storyline-stat:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85em;
}

/* Utility Classes */
.loading-message,
.no-data,
.placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-style: italic;
}

.loading-message::before {
    content: "⏳ ";
}

.no-data::before {
    content: "📊 ";
}

.placeholder::before {
    content: "🔧 ";
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness for Analytics */
@media (max-width: 768px) {
    .analytics-header {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .header-left, 
    .header-title,
    .analytics-controls {
        justify-self: center;
    }
    
    .analytics-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .refresh-btn,
    #analytics-timeframe {
        width: 100%;
    }
    
    .analytics-tabs {
        flex-direction: column;
    }
    
    .analytics-tab {
        min-width: unset;
        text-align: center;
    }
    
    .top-performers {
        grid-template-columns: 1fr;
    }
    
    .performer-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .financial-cards {
        grid-template-columns: 1fr;
    }
    
    .booking-patterns-content {
        grid-template-columns: 1fr;
    }
    
    .quality-metrics,
    .feud-overview,
    .storyline-stats {
        grid-template-columns: 1fr;
    }
    
    .stream-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .analytics-table {
        min-width: 600px;
    }
}

/* Angles Dashboard Styles - Matching Wrestling History Design */
.angles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.angle-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.angle-card.player-angle {
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.angle-card.ai-angle {
    border-color: #17a2b8;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
}

.angle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

.angle-card .card-header {
    margin-bottom: 15px;
}

.angle-name {
    color: #ffc107;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.angle-company {
    font-size: 0.9em;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.angle-company.player-company {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.angle-company.ai-company {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.angle-participants {
    color: #e0e0e0;
    margin-bottom: 15px;
}

.angle-progress {
    margin: 15px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #b0b0b0;
}

.angle-heat {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.heat-excellent { background: #4caf50; color: white; }
.heat-great { background: #8bc34a; color: white; }
.heat-good { background: #ffc107; color: #333; }
.heat-average { background: #ff9800; color: white; }
.heat-poor { background: #f44336; color: white; }

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

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

.current-phase-desc {
    font-size: 0.9em;
    color: #b0b0b0;
    font-style: italic;
}

.next-phase, .completion-ready {
    background: #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    border-left: 4px solid #ffc107;
}

.next-phase strong, .completion-ready strong {
    color: #ffc107;
}

.requirements {
    margin-top: 8px;
    font-size: 0.85em;
    color: #888;
}

.angle-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.stat-item {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-label {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    color: #4caf50;
    font-weight: 600;
}

.completed-angles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.completed-angle-card {
    opacity: 0.8;
    border-style: dashed;
}

.completed-angle-card .angle-name {
    color: #4caf50;
}

.completion-date {
    font-size: 0.85em;
    color: #888;
}

.angle-summary {
    margin-top: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-label {
    color: #888;
    font-size: 0.9em;
}

.summary-value {
    color: #e0e0e0;
    font-weight: 500;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.template-card {
    border-color: #6c757d;
}

.template-name {
    color: #17a2b8;
    font-size: 1.1em;
    margin: 0 0 8px 0;
}

.template-participants {
    color: #888;
    font-size: 0.9em;
}

.template-info {
    margin: 15px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-label {
    color: #888;
    font-size: 0.9em;
}

.info-value {
    color: #e0e0e0;
    font-weight: 500;
}

.template-phases {
    border-top: 1px solid #444;
    padding-top: 15px;
}

.template-phases h5 {
    color: #ffc107;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.phases-list {
    max-height: 200px;
    overflow-y: auto;
}

.phase-item {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 0.9em;
}

.phase-item:last-child {
    border-bottom: none;
}

.phase-item strong {
    color: #ffc107;
}

.angle-types-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.angle-type-stat {
    text-align: center;
}

.angle-type-count {
    color: #4caf50;
    font-weight: 600;
    font-size: 1.2em;
}

.angle-type-percentage {
    color: #888;
    font-size: 0.9em;
}

.no-data-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-data-state h3 {
    color: #ffc107;
    margin-bottom: 15px;
}

.getting-started-tips {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
}

.getting-started-tips h4 {
    color: #17a2b8;
    margin: 0 0 15px 0;
}

.getting-started-tips ul {
    margin: 0;
    padding-left: 20px;
}

.getting-started-tips li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

/* Enhanced Progress Tracking Styles */
.phase-tracker {
    margin: 15px 0;
}

.phase-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.phase-dots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #444;
    z-index: 0;
}

.phase-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    cursor: help;
}

.phase-dot.completed {
    background: #4caf50;
    border: 2px solid #4caf50;
    color: white;
}

.phase-dot.current {
    background: #ffc107;
    border: 2px solid #ffc107;
    color: #333;
    animation: pulse 2s infinite;
}

.phase-dot.upcoming {
    background: #333;
    border: 2px solid #666;
    color: #999;
}

.phase-number {
    font-size: 0.8em;
    font-weight: 600;
}

.overall-progress-bar {
    background: #333;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.overall-progress-fill {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.requirements-status {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
}

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

.requirements-title {
    color: #ffc107;
    font-weight: 600;
}

.requirements-progress {
    color: #4caf50;
    font-weight: 600;
    font-size: 0.9em;
}

.requirements-bar {
    background: #333;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.requirements-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.requirements-fill.completed {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.requirements-fill.in-progress {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.requirements-fill.pending {
    background: linear-gradient(90deg, #666, #555);
}

.requirements-desc {
    color: #b0b0b0;
    font-size: 0.9em;
    font-style: italic;
}

.next-phase-desc {
    margin-top: 8px;
    font-size: 0.9em;
    color: #b0b0b0;
    font-style: italic;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .angles-grid,
    .completed-angles-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .angle-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .angle-types-stats {
        grid-template-columns: 1fr;
    }
    
    .phase-dot {
        width: 24px;
        height: 24px;
    }
    
    .phase-number {
        font-size: 0.7em;
    }
    
    .requirements-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}

/* Roster Cards Grid Styles */
.roster-cards-grid {
    margin-top: 20px;
}

.roster-cards-grid .wrestlers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .roster-cards-grid .wrestlers-grid {
        grid-template-columns: 1fr;
    }
}

/* Coming Soon Message Styles */
.coming-soon-message {
    text-align: center;
    padding: 40px 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.coming-soon-message h4 {
    color: #ffc107;
    margin-bottom: 15px;
}

.coming-soon-message p {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.coming-soon-message ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    color: #b0b0b0;
}

.coming-soon-message li {
    margin-bottom: 8px;
}

/* Enhanced Match Booking System Styles */
.match-booking-steps {
    margin-bottom: 20px;
}

.top-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-subtle);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a2a;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    gap: 10px;
}

.step {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.step.completed {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.match-step-content {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    min-height: 400px;
    max-height: none !important;
    height: auto !important;
}

/* Match Type Selection */
.match-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.match-type-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-type-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.match-type-card.selected {
    border-color: #4a90e2;
    background: #2a3a4a;
}

.match-type-card h4 {
    color: white;
    margin-bottom: 8px;
}

.match-type-card p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

.match-type-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.match-type-stats small {
    background: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
    color: #aaa;
    font-size: 11px;
}

/* Wrestler Assignment */
.wrestler-assignment-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.side-container {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
}

.side-container h4 {
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.side-wrestlers {
    min-height: 60px;
    margin-bottom: 10px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px dashed #444;
}

.wrestler-tag {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px;
    font-size: 12px;
}

.wrestler-tag button {
    background: none;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Enhanced wrestler tags with images */
.wrestler-tag-enhanced {
    display: inline-flex;
    align-items: center;
    background: var(--accent-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    margin: 4px;
    font-size: 12px;
    max-width: 150px;
    border: 1px solid var(--accent-gold);
}

.wrestler-tag-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wrestler-tag-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.wrestler-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s ease;
}

.wrestler-tag-remove:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Selected Wrestler Card - Mini version matching roster design */
.selected-wrestler-card {
    display: inline-block;
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    margin: 4px;
    width: 160px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

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

.selected-wrestler-card .wrestler-card-header {
    padding: 8px;
    position: relative;
}

.selected-wrestler-card .wrestler-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 8px;
    border: 2px solid var(--border-subtle);
}

.selected-wrestler-card .wrestler-basic-info {
    overflow: hidden;
}

.selected-wrestler-card .wrestler-name {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-wrestler-card .wrestler-promotion {
    font-size: 0.7em;
    color: var(--text-muted);
    margin: 0;
}

.selected-wrestler-card .overall-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: bold;
    color: white;
}

.remove-wrestler-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-danger);
    color: white;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.remove-wrestler-btn:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.available-wrestlers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 6px;
}

.wrestler-selection-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wrestler-selection-card:hover {
    border-color: #4a90e2;
    transform: scale(1.02);
}

.wrestler-selection-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.wrestler-selection-card h5 {
    color: white;
    font-size: 11px;
    margin-bottom: 3px;
}

.wrestler-selection-card p {
    color: #aaa;
    font-size: 10px;
    margin: 0;
}

/* Side Selection Modal */
.side-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Removed duplicate .modal-content - using unified system above */

.side-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.side-buttons button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.side-buttons button:hover {
    background: #357abd;
}

.side-buttons button:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Winner Selection */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.winner-selection-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.winner-selection-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.winner-selection-card.selected {
    border-color: #4caf50;
    background: #2a3a2a;
}

.winner-selection-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.winner-selection-card h4 {
    color: white;
    margin-bottom: 5px;
}

.winner-selection-card p {
    color: #aaa;
    font-size: 12px;
}

/* Win Type Selection */
.win-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.win-type-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.win-type-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.win-type-card.selected {
    border-color: #4caf50;
    background: #2a3a2a;
}

.win-type-card h4 {
    color: white;
    margin-bottom: 10px;
}

.win-type-card p {
    color: #ccc;
    font-size: 14px;
}

/* Interference Selection */
.interference-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.interference-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interference-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.interference-card.selected {
    border-color: #4caf50;
    background: #2a3a2a;
}

.interference-card h4 {
    color: white;
    margin-bottom: 10px;
}

.interference-card p {
    color: #ccc;
    font-size: 14px;
}

.interferer-selection {
    margin-top: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 6px;
}

.interferer-selection h4 {
    color: white;
    margin-bottom: 15px;
}

.interferer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.interferer-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.interferer-card:hover {
    border-color: #4a90e2;
}

.interferer-card.selected {
    border-color: #4caf50;
    background: #2a3a2a;
}

.interferer-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 5px;
}

.interferer-card h5 {
    color: white;
    font-size: 11px;
}

.target-selection {
    margin-top: 15px;
}

.target-selection h5 {
    color: white;
    margin-bottom: 10px;
}

.target-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.target-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-subtle);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
    min-width: 200px;
}

.target-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.target-btn.selected {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
}

.target-side-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--accent-primary);
}

.target-btn.selected .target-side-label {
    color: white;
}

.target-wrestlers {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.target-btn.selected .target-wrestlers {
    color: rgba(255, 255, 255, 0.9);
}

/* Post Match Events */
.post-match-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.post-match-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-match-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
}

.post-match-card.selected {
    border-color: #4caf50;
    background: #2a3a2a;
}

.post-match-card h4 {
    color: white;
    margin-bottom: 10px;
}

.post-match-card p {
    color: #ccc;
    font-size: 14px;
}

/* Championship Cards */
.championships-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.championship-card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
}

.championship-card h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.championship-card p {
    color: white;
    margin-bottom: 15px;
}

.championship-card label {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.championship-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.step-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.step-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.step-btn.prev-btn {
    background: #666;
}

.step-btn.prev-btn:hover {
    background: #777;
}

.step-btn.next-btn {
    background: var(--accent-success);
}

.step-btn.next-btn:hover {
    background: #45a049;
}

/* Booking Complete */
.booking-complete {
    text-align: center;
    padding: 40px 20px;
}

.booking-complete h3 {
    color: var(--accent-success);
    margin-bottom: 20px;
    font-size: 24px;
}

.completion-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.confirm-booking-btn {
    background: var(--accent-success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    min-width: 180px;
}

.confirm-booking-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.confirm-booking-btn:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.match-summary {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.match-summary h4 {
    color: #4a90e2;
    margin-bottom: 15px;
    text-align: center;
}

.match-summary p {
    color: white;
    margin-bottom: 8px;
}

.match-summary strong {
    color: #4caf50;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
        gap: 8px;
    }
    
    .step {
        font-size: 11px;
        padding: 8px;
    }
    
    .match-types-grid {
        grid-template-columns: 1fr;
    }
    
    .wrestler-assignment-container {
        grid-template-columns: 1fr;
    }
    
    .available-wrestlers-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .winners-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .win-types-grid {
        grid-template-columns: 1fr;
    }
    
    .interference-types {
        grid-template-columns: 1fr;
    }
    
    .post-match-events {
        grid-template-columns: 1fr;
    }
    
    .championships-container {
        grid-template-columns: 1fr;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-btn {
        width: 100%;
    }
}

/* =========================
   HISTORICAL RECORDS SYSTEM
   ========================= */

.historical-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 16px;
}

.historical-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.historical-tab:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-1px);
}

.historical-tab.active {
    background: var(--primary-gold);
    color: var(--text-dark);
    border-color: var(--primary-gold);
    font-weight: 600;
}

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

.record-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--border-light);
    transition: all 0.2s ease;
}

.record-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.record-rank {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-gold);
    min-width: 40px;
    text-align: center;
}

.record-details {
    flex: 1;
    min-width: 0;
}

.record-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.record-info {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.record-stipulation,
.record-description {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
}

.record-rating {
    font-size: 20px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

/* Career cards for wrestler careers */
.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.career-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.2s ease;
}

.career-card.hof-member {
    border-left-color: var(--primary-gold);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 215, 0, 0.05));
}

.career-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.career-header h4 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.career-age {
    font-size: 12px;
    color: var(--text-tertiary);
}

.career-stats {
    margin-top: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.stat-row span:first-child {
    color: var(--text-secondary);
}

.stat-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* Hall of Fame specific styles */
.hof-inductees {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hof-inductee {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 215, 0, 0.08));
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.hof-inductee::before {
    content: "🏛️";
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 24px;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 50%;
}

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

.hof-header h4 {
    margin: 0;
    color: var(--primary-gold);
    font-size: 18px;
}

.induction-year {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

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

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

.stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.hof-career-info {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

/* Milestones list */
.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.2s ease;
}

.milestone-item:hover {
    background: var(--bg-tertiary);
}

.milestone-icon {
    font-size: 24px;
    min-width: 40px;
    text-align: center;
}

.milestone-details {
    flex: 1;
}

.milestone-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.milestone-achievement {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 2px;
}

.milestone-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Rating classes for historical records */
.rating-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.rating-great {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.rating-good {
    background: linear-gradient(135deg, #17a2b8, #007bff);
    color: white;
}

.rating-average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: var(--text-dark);
}

.rating-below-average {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
    color: white;
}

.rating-poor {
    background: linear-gradient(135deg, #dc3545, #6c757d);
    color: white;
}

/* Mobile responsiveness for historical records */
@media (max-width: 768px) {
    .historical-tabs {
        flex-direction: column;
    }
    
    .historical-tab {
        text-align: center;
    }
    
    .record-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .record-rank {
        font-size: 24px;
    }
    
    .record-rating {
        font-size: 24px;
        align-self: stretch;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hof-career-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===================================
   HISTORICAL RECORDS REDESIGN STYLES
   =================================== */

/* Grid layouts for different historical sections */
.matches-grid,
.shows-grid,
.careers-grid,
.hof-grid,
.angles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.milestones-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

/* Enhanced card styles */
.match-card,
.show-card,
.career-card,
.hof-card,
.angle-card,
.milestone-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card:hover,
.show-card:hover,
.career-card:hover,
.hof-card:hover,
.angle-card:hover,
.milestone-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

/* Card headers */
.card-header {
    background: linear-gradient(135deg, #333 0%, #222 100%);
    padding: 12px 16px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
}

.card-header h4 {
    margin: 0;
    color: #ffc107;
    font-size: 1.1em;
    font-weight: 600;
}

.card-rank {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

.card-rating {
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: bold;
    color: white;
    min-width: 40px;
    text-align: center;
    font-size: 14px;
}

/* Card content */
.card-content {
    padding: 16px;
}

.card-content h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 1em;
}

/* Detail items for match/show cards */
.match-details,
.show-details,
.angle-details {
    display: grid;
    gap: 6px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #999;
    font-weight: 500;
}

.detail-value {
    color: #fff;
    font-weight: 600;
}

.detail-value.winner {
    color: #4caf50;
}

/* Career stats grid */
.career-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.career-stats-grid .stat-item {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-label {
    display: block;
    color: #999;
    font-size: 11px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.stat-detail {
    display: block;
    color: #ccc;
    font-size: 10px;
}

/* Hall of Fame specific styles */
.hof-card {
    border-color: #FFD700;
    background: linear-gradient(135deg, #2a2a2a 0%, rgba(255, 215, 0, 0.1) 100%);
}

.hof-card .card-header {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.hof-card .card-header h4 {
    color: #000;
}

.hof-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-section {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
}

.stat-section h5 {
    margin: 0 0 8px 0;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.big-stat {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.hof-career-info {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #ccc;
}

/* Career card specific styles */
.career-card.hof-member {
    border-color: #FFD700;
    background: linear-gradient(135deg, #2a2a2a 0%, rgba(255, 215, 0, 0.1) 100%);
}

.wrestler-name {
    color: #ffc107 !important;
}

.wrestler-style {
    color: #999;
    font-size: 12px;
}

/* Angle card narrative */
.angle-narrative {
    margin-top: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-style: italic;
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
}

/* Milestone card specific */
.milestone-card .card-header {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: #000;
}

.milestone-icon {
    font-size: 24px;
    color: #fff;
}

.milestone-date {
    font-size: 11px;
    color: #000;
    opacity: 0.8;
}

.milestone-subject {
    color: #4caf50 !important;
}

.milestone-title {
    color: #fff;
    font-size: 14px;
    margin: 8px 0 4px 0;
}

.milestone-category {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No data state styling */
.no-data-state {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 12px;
    border: 2px solid #444;
}

.no-data-state h3 {
    color: #ffc107;
    margin-bottom: 16px;
    font-size: 1.3em;
}

.no-data-state p {
    color: #ccc;
    margin-bottom: 24px;
    font-size: 1.1em;
}

.getting-started-tips {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.getting-started-tips h4 {
    color: #4caf50;
    margin-bottom: 12px;
    font-size: 1em;
}

.getting-started-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.getting-started-tips li {
    color: #ddd;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.getting-started-tips li:before {
    content: "→";
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Mobile responsiveness for historical records */
@media (max-width: 768px) {
    .matches-grid,
    .shows-grid,
    .careers-grid,
    .hof-grid,
    .angles-grid,
    .milestones-timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .career-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hof-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hof-career-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .card-header {
        padding: 10px 12px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .getting-started-tips {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .matches-grid,
    .shows-grid,
    .careers-grid,
    .hof-grid,
    .angles-grid,
    .milestones-timeline {
        gap: 12px;
    }
    
    .card-content h4 {
        font-size: 0.95em;
    }
    
    .detail-item {
        font-size: 12px;
    }
    
    .career-stats-grid,
    .hof-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Roster Modernization Styles */
.roster-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.coming-soon-message {
    text-align: center;
    padding: 40px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    border: 2px dashed var(--accent-primary);
    margin: 20px 0;
}

.coming-soon-message h4 {
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-size: 1.2em;
}

.coming-soon-message p {
    color: #ccc;
    margin-bottom: 16px;
}

.coming-soon-message ul {
    text-align: left;
    display: inline-block;
    color: #aaa;
}

.coming-soon-message li {
    margin-bottom: 8px;
}
