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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e4e4e4;
    overflow: hidden;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00d9ff;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.1);
    position: relative;
    z-index: 100;
}

.header h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.interactive-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.title-icon {
    font-size: 1.4rem;
}

.acronym {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.acronym-part {
    cursor: pointer;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #e4e4e4;
    font-weight: 700;
    transition: color 0.2s ease;
    user-select: none;
}

.acronym-part:hover {
    color: #ffffff;
}

.acronym-part.expanded {
    color: #ffffff;
}
.optimizer-quick {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.optimizer-label {
    color: #e4e4e4;
    font-size: 0.9rem;
}
.optimizer-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #e4e4e4;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    min-width: 120px;
}

/* Settings Bar */
.settings-bar {
    height: 32px;
    min-height: 32px;
    background: rgba(15, 15, 30, 0.6);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 12px;
}

.settings-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    opacity: 0.5;
    transition: all 0.2s ease;
    line-height: 1;
}

.settings-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.settings-icon {
    display: inline-block;
}

/* Universal Progress Bar */
.universal-progress-bar {
    flex: 1;
    height: 30px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.universal-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.universal-progress-bar .progress-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* CHARA Controls in Settings Bar */
.chara-bar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(123, 66, 255, 0.15);
    border: 1px solid rgba(123, 66, 255, 0.3);
    border-radius: 6px;
    margin-left: auto;
}

.chara-bar-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chara-bar-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chara-bar-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.chara-bar-value {
    font-size: 0.85rem;
    color: #00d9ff;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    min-width: 60px;
}

.chara-bar-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.chara-bar-status.stopped {
    color: #888;
    background: rgba(100, 100, 100, 0.2);
}

.chara-bar-status.running {
    color: #7fff00;
    background: rgba(127, 255, 0, 0.15);
    animation: chara-pulse 1s ease-in-out infinite;
}

.chara-bar-status.paused {
    color: #ffa500;
    background: rgba(255, 165, 0, 0.15);
}

.chara-bar-status.exploring {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    animation: chara-explore-pulse 0.5s ease-in-out infinite;
    font-weight: 700;
}

.chara-bar-status.desperate {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.2);
    animation: chara-desperate-pulse 0.3s ease-in-out infinite;
    font-weight: 700;
}

.chara-bar-status.tournament {
    color: #ffd700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    animation: chara-tournament-pulse 0.8s ease-in-out infinite;
    font-weight: 700;
}

.chara-bar-status.parallel {
    color: #00ffcc;
    background: linear-gradient(90deg, rgba(0, 255, 204, 0.2), rgba(0, 200, 255, 0.2));
    animation: chara-parallel-pulse 1s ease-in-out infinite;
    font-weight: 700;
}

@keyframes chara-parallel-pulse {
    0%, 100% { opacity: 1; background: linear-gradient(90deg, rgba(0, 255, 204, 0.2), rgba(0, 200, 255, 0.2)); }
    50% { opacity: 0.85; background: linear-gradient(90deg, rgba(0, 255, 204, 0.3), rgba(0, 200, 255, 0.3)); }
}

@keyframes chara-tournament-pulse {
    0%, 100% { opacity: 1; background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2)); }
    50% { opacity: 0.9; background: linear-gradient(90deg, rgba(255, 215, 0, 0.35), rgba(255, 140, 0, 0.35)); }
}

@keyframes chara-explore-pulse {
    0%, 100% { opacity: 1; background: rgba(255, 107, 107, 0.2); }
    50% { opacity: 0.8; background: rgba(255, 107, 107, 0.35); }
}

@keyframes chara-desperate-pulse {
    0%, 100% { opacity: 1; background: rgba(255, 204, 0, 0.2); }
    50% { opacity: 0.85; background: rgba(255, 204, 0, 0.35); }
}

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

.chara-bar-buttons {
    display: flex;
    gap: 0.4rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-success {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.6);
}

.btn-success:hover:not(:disabled) {
    background: rgba(40, 167, 69, 1);
}

.btn-warning {
    background: rgba(255, 193, 7, 0.8);
    border-color: rgba(255, 193, 7, 0.6);
    color: #000;
}

.btn-warning:hover:not(:disabled) {
    background: rgba(255, 193, 7, 1);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.6);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(220, 53, 69, 1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Disclaimer Modal */
.disclaimer-modal-content {
    max-width: 700px !important;
    width: 95%;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.98) 0%, rgba(25, 35, 55, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 217, 255, 0.1);
}

.disclaimer-header {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(127, 255, 0, 0.1) 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.disclaimer-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d9ff 0%, #7fff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
}

.disclaimer-subtitle {
    color: #9aa;
    font-size: 1.1rem;
    margin: 0;
}

.disclaimer-body {
    padding: 1.5rem 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.disclaimer-section {
    margin-bottom: 1.5rem;
}

.disclaimer-section:last-of-type {
    margin-bottom: 0.5rem;
}

.disclaimer-section h3 {
    color: #00d9ff;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-section p {
    color: #c8d0e0;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.disclaimer-section ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    color: #b0b8c8;
    font-size: 0.9rem;
}

.disclaimer-section li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.disclaimer-section strong {
    color: #7fff00;
}

.disclaimer-footer-note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 8px;
}

.disclaimer-footer-note p {
    color: #ffc800;
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

.disclaimer-footer-note.heart-note {
    background: linear-gradient(135deg, rgba(255, 100, 150, 0.15) 0%, rgba(255, 50, 100, 0.1) 100%);
    border-color: rgba(255, 100, 150, 0.3);
    margin-bottom: 0.75rem;
}

.disclaimer-footer-note.heart-note p {
    color: #ff6b9d;
}

.disclaimer-footer-note.heart-note p:first-child {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.about-section p {
    margin-bottom: 0.5rem;
}

.disclaimer-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.disclaimer-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.disclaimer-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00d9ff;
}

.disclaimer-checkbox-label {
    color: #e4e4e4;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.disclaimer-footer .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00d9ff 0%, #00a8cc 100%);
    border: none;
    transition: all 0.3s ease;
}

.disclaimer-footer .btn:hover {
    background: linear-gradient(135deg, #00f0ff 0%, #00c8e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
}

/* CHARA Modal */
.chara-modal-content {
    max-width: 450px !important;
    width: 95%;
    background: rgba(18, 22, 36, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(127, 255, 0, 0.3);
    padding: 1.5rem;
}

.chara-header h2 {
    margin-bottom: 6px;
    color: #7fff00;
}

.chara-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(127, 255, 0, 0.2);
}

.chara-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.chara-stat-label {
    font-size: 0.8rem;
    color: #9aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chara-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7fff00;
}

.chara-status {
    font-size: 0.95rem !important;
}

.chara-status.running {
    color: #7fff00 !important;
    animation: pulse-glow 1s ease-in-out infinite;
}

.chara-status.paused {
    color: #ffa500 !important;
}

.chara-status.stopped {
    color: #888 !important;
}

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

.chara-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.chara-btn {
    min-width: 100px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c040);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #32c85a, #28d048);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #000;
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffcd39, #f0b800);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #e64a5a, #d32f40);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.chara-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chara-footnote {
    margin-top: 16px;
    padding: 12px;
    background: rgba(127, 255, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(127, 255, 0, 0.15);
}

.chara-footnote p {
    margin: 6px 0;
    font-size: 0.85rem;
    color: #9aa;
    line-height: 1.4;
}

.chara-footnote p:first-child {
    margin-top: 0;
}

.chara-footnote p:last-child {
    margin-bottom: 0;
}

/* Import Config Zone */
/* Drag and drop feedback on body - DISABLED (was causing stuck overlay issues)
body.drag-over::after {
    content: '📥 Drop JSON file to import';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 217, 255, 0.95);
    color: #000;
    padding: 2rem 3rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
*/
/* Placeholder to maintain CSS structure */
body.drag-over-disabled::after {
    display: none;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.5);
}

/* Settings Modal */
.settings-modal {
    max-width: 900px;
    width: 90%;
    background: rgba(20, 20, 40, 0.98);
    backdrop-filter: blur(20px);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-section {
    background: rgba(30, 30, 50, 0.5);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.settings-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #00d9ff;
}

.collection-toggle {
    display: flex;
    align-items: flex-start;
}

.collection-toggle .toggle-text {
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.collection-toggle .toggle-text input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.collection-toggle .toggle-main {
    color: #e4e4e4;
    font-weight: 600;
}

.collection-toggle .toggle-sub {
    color: #888;
    font-size: 0.85rem;
}

/* Keep old label styles for backward compatibility */
.collection-toggle label {
    cursor: pointer;
    flex: 1;
    line-height: 1.5;
}

.collection-toggle label strong {
    color: #e4e4e4;
    display: inline !important;
    font-weight: 600;
}

.collection-toggle label small {
    color: #888;
    font-size: 0.85rem;
    display: inline !important;
    margin-left: 8px;
}

.collection-toggle.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.collection-toggle.disabled label {
    color: #666;
    cursor: not-allowed;
}

.collection-toggle.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* Template compatible filter - always 0.5 opacity when disabled */
#showOnlyTemplateCompatible:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#showOnlyTemplateCompatible:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
    color: #666;
}

.header-actions .btn-optimize {
    min-width: 140px;
}

/* Tab Navigation */
.tab-navigation {
    background: rgba(20, 20, 40, 0.9);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    padding: 0 2rem;
    display: flex;
    gap: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.tab-btn:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.tab-btn.active {
    color: #00d9ff;
    border-bottom-color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #00d9ff, #7b42ff);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 66, 255, 0.4);
}

.btn-secondary {
    background: #e74c3c;
    color: white;
}

.btn-secondary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover {
    background: #a93226;
    transform: translateY(-2px);
}

/* CHARA button states */
.chara-start-btn {
    background: linear-gradient(135deg, #00d9ff, #7b42ff) !important;
    color: white !important;
}

.chara-reset-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
    animation: chara-reset-pulse 1.5s ease-in-out infinite;
}

.chara-reset-btn:hover {
    background: linear-gradient(135deg, #ff5252, #d63031) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}

@keyframes chara-reset-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Actions Dropdown */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-dropdown .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.actions-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #e4e4e4;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
}

.dropdown-item:active {
    background: rgba(0, 217, 255, 0.2);
}

.dropdown-item:disabled {
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.dropdown-item:disabled:hover {
    background: transparent;
    color: #666;
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 0.5rem;
}

/* Center Content - Team and Browser stacked vertically */
.center-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Chemistry Combos Panel */
.combos-panel {
    flex: 0 0 180px;
    width: 180px;
    background: rgba(15, 15, 30, 0.8);
    border-right: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.combos-header {
    padding: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #00d9ff;
    text-align: center;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.05);
}

.combos-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.3rem;
}

.combos-content::-webkit-scrollbar {
    width: 4px;
}

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

.combos-content::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 2px;
}

.combos-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

.combos-loading {
    padding: 1rem;
    text-align: center;
    font-size: 0.7rem;
    color: #888;
}

.combo-group {
    margin-bottom: 0.8rem;
}

.combo-group-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.combo-group-title:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #aaa;
}

.expand-arrow {
    font-size: 0.5rem;
    transition: transform 0.2s ease;
}

.combo-filters {
    display: flex;
    gap: 0.3rem;
    padding: 0.3rem;
    margin-bottom: 0.5rem;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.combo-filter-btn {
    flex: 1;
    background: rgba(30, 30, 50, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: #888;
    padding: 0.3rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.combo-filter-btn:hover {
    background: rgba(30, 30, 50, 0.5);
    border-color: rgba(0, 217, 255, 0.3);
}

.combo-filter-btn.active {
    background: rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.5);
    color: #00d9ff;
}

.combo-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    margin-bottom: 0.2rem;
    border-radius: 3px;
    background: rgba(30, 30, 50, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.2s ease;
    cursor: grab;
}

.combo-item:hover {
    background: rgba(30, 30, 50, 0.5);
    border-color: rgba(0, 217, 255, 0.3);
}

.combo-item:active {
    cursor: grabbing;
}

.combo-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.combo-item.active {
    background: rgba(0, 200, 0, 0.4) !important;
    border-color: rgba(0, 255, 0, 0.7) !important;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.combo-item.cc-used {
    opacity: 0.3;
    cursor: not-allowed !important;
    pointer-events: auto;
}

.combo-item.cc-used:hover {
    background: rgba(30, 30, 50, 0.3);
    border-color: rgba(0, 217, 255, 0.1);
    cursor: not-allowed !important;
}

.combo-item.cc-used:active {
    cursor: not-allowed !important;
}

.combo-logos {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.combo-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Note: draggable="false" is set in JavaScript to prevent individual logo dragging */
}

.combo-logo-placeholder {
    width: 32px;
    height: 32px;
    background: rgba(100, 100, 100, 0.3);
    border: 1px dashed rgba(150, 150, 150, 0.5);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #888;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Note: draggable="false" is set in JavaScript to prevent individual placeholder dragging */
}

.combo-buff {
    font-size: 0.65rem;
    font-weight: 600;
    color: #00d9ff;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Team Panel */
.team-panel {
    flex: 0 0 auto;
    width: 100%;
    padding: 1rem;
    overflow-y: auto;
    max-height: 45vh;
}

.team-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #e4e4e4;
}

/* Team summary in header */
.header .team-summary {
    margin: 0;
    flex: 1;
    justify-content: center;
    padding: 0 2rem;
}

.summary-block {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-weight: 600;
    position: relative;
}

.summary-block:not(:first-child)::before {
    content: '•';
    color: rgba(148, 176, 255, 0.45);
    font-size: 0.9rem;
    margin-right: 0.8rem;
}

.summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8f9bb8;
}

.summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.summary-salary {
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.summary-salary.salary-over {
    color: #ff6b6b;
}

.summary-salary.salary-ok {
    color: #7fff00;
}

/* AP waste indicator */
.ap-waste {
    color: #ffa500 !important;
}

/* AP shortage indicator */
.ap-shortage {
    color: #ff6b6b !important;
    font-weight: 600;
}

/* Lineup Grid */
.lineup-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 50px; /* Space for collapsed card browser */
}

.line-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.line-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.line-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00d9ff;
}

.line-boosts {
    font-size: 0.9rem;
    color: #7fff00;
    font-weight: 500;
    line-height: 1.3;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.line-boosts small {
    color: #7b42ff;
    font-size: 0.7rem;
    opacity: 0.8;
    display: inline;
    margin-left: 0.5rem;
}

.player-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    max-width: 900px;
}

/* Line Combo Controls */
.line-combo-controls {
    display: grid;
    grid-template-columns: 540px 360px;
    gap: 0;
    margin-bottom: 0;
    min-height: 50px;
    width: fit-content;
}

.assigned-combo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.assigned-combo-logos {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.assigned-combo-logos img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.assigned-combo-buff {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7fff00;
    flex-shrink: 0;
}

.combo-actions {
    display: flex;
    gap: 0.3rem;
    margin-left: auto;
}

.combo-action-btn {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(100, 100, 120, 0.3);
    color: #e4e4e4;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.combo-action-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.5);
}

.combo-action-btn.optimize-btn {
    background: rgba(0, 150, 255, 0.15);
    border-color: rgba(0, 150, 255, 0.4);
}

.combo-action-btn.optimize-btn:hover {
    background: rgba(0, 150, 255, 0.3);
}

.combo-action-btn.optimize-collection-btn {
    background: rgba(0, 200, 100, 0.15);
    border-color: rgba(0, 200, 100, 0.4);
}

.combo-action-btn.optimize-collection-btn:hover {
    background: rgba(0, 200, 100, 0.3);
}

.combo-action-btn.optimize-database-btn {
    background: rgba(150, 100, 255, 0.15);
    border-color: rgba(150, 100, 255, 0.4);
}

.combo-action-btn.optimize-database-btn:hover {
    background: rgba(150, 100, 255, 0.3);
}

.combo-action-btn.unassign-btn {
    background: rgba(255, 50, 50, 0.15);
    border-color: rgba(255, 50, 50, 0.4);
    color: #ff6b6b;
}

.combo-action-btn.unassign-btn:hover {
    background: rgba(255, 50, 50, 0.3);
}


/* Chemistry Combo Placeholders */
.chemistry-placeholders {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin-top: 0.5rem;
}

/* Chemistry Display Container with Navigation */
.chemistry-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chemistry-display.forward-chemistry-display {
    grid-column: span 3;
}

.chemistry-display.defense-chemistry-display,
.chemistry-display.goalie-chemistry-display {
    grid-column: span 2;
}

/* Navigation Arrows */
.chem-nav-arrow {
    width: 16px;
    height: 20px;
    background: rgba(60, 60, 80, 0.6);
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: 3px;
    color: #aaa;
    cursor: pointer;
    font-size: 8px;
    padding: 0;
    transition: all 0.2s ease;
}

.chem-nav-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.chem-nav-arrow:not(:disabled):hover {
    background: rgba(0, 217, 255, 0.3);
    color: #fff;
}

/* Chemistry Totals Display */
.chem-totals {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    padding-left: 4px;
}

.chemistry-grid {
    display: grid;
    gap: 2px;
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid rgba(100, 100, 120, 0.2);
    border-radius: 4px;
    padding: 3px;
    width: fit-content;
}

.chemistry-grid.forward-chemistry {
    grid-template-columns: repeat(3, 26px);
    grid-template-rows: repeat(3, 26px);
}

.chemistry-grid.defense-chemistry {
    grid-template-columns: repeat(2, 26px);
    grid-template-rows: repeat(3, 26px);
}

.chemistry-grid.goalie-chemistry {
    grid-template-columns: repeat(2, 26px);
    grid-template-rows: repeat(3, 26px);
}

.chem-slot {
    width: 26px;
    height: 26px;
    background: rgba(40, 40, 60, 0.6);
    border-radius: 2px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.chem-slot.active {
    opacity: 1.0;
    background: rgba(0, 217, 255, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.5);
}

.chem-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-slot {
    background: rgba(30, 30, 50, 0.8);
    border: 0;
    border-radius: 0;
    padding: 0;
    min-height: 250px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-slot.filled {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.player-slot.locked {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.player-slot.locked::before {
    content: 'LOCK';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 10;
    letter-spacing: 0.5px;
}

.slot-label {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* Chemistry Breakdown Row (contains forward and defense breakdowns side by side) */
.chemistry-breakdown-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

/* Chemistry Breakdown (inline under each line/pair) */
.chemistry-breakdown {
    display: none;
    background: rgba(123, 66, 255, 0.08);
    border: 1px solid rgba(123, 66, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
}

/* Forward breakdown takes 3 parts (60%) */
.chemistry-breakdown[data-type="forward"] {
    /* Takes 3fr in the grid */
}

/* Defense/Goalie breakdown takes 2 parts (40%) */
.chemistry-breakdown[data-type="defense"],
.chemistry-breakdown[data-type="goalie"] {
    /* Takes 2fr in the grid */
}

.chem-breakdown-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chem-breakdown-header {
    cursor: pointer;
}

.chem-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0;
}

.chem-score-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chem-buffs-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    flex: 1;
}

.chem-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(123, 66, 255, 0.2);
    gap: 8px;
}

.btn-toggle-breakdown {
    background: rgba(123, 66, 255, 0.2);
    border: 1px solid rgba(123, 66, 255, 0.4);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #7b42ff;
    flex-shrink: 0;
    font-size: 14px;
}

.btn-toggle-breakdown:hover {
    background: rgba(123, 66, 255, 0.3);
    border-color: rgba(123, 66, 255, 0.6);
}

.toggle-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.toggle-arrow.expanded {
    transform: rotate(180deg);
}

.chem-breakdown-details {
    padding-top: 0.6rem;
    border-top: 1px solid rgba(123, 66, 255, 0.2);
    margin-top: 0.4rem;
}

.chem-label {
    color: #7b42ff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.chem-total {
    color: #7fff00;
    font-weight: 700;
    font-size: 1rem;
}

.chem-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
}

.chem-summary-label {
    color: #00d9ff;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.chem-summary-value {
    color: #7fff00;
    font-weight: 700;
    font-size: 0.85rem;
}

.chem-details-mini {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: #666;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(123, 66, 255, 0.1);
}

.chem-detail-item {
    color: #888;
}

.chem-details {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.7rem;
}

.chem-base {
    color: #00d9ff;
    font-weight: 600;
}

.chem-boost {
    color: #95e1d3;
}

.chem-names {
    color: #aaa;
    font-size: 0.65rem;
    font-style: italic;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(123, 66, 255, 0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chem-item {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(123, 66, 255, 0.2);
}

.chem-item:first-child {
    margin-top: 0.4rem;
}

.chem-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.chem-name-row strong {
    color: #7fff00;
    font-size: 0.75rem;
}

.chem-boosts-mini {
    color: #00d9ff;
    font-size: 0.65rem;
    font-weight: 600;
}

.chem-player-conditions {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.player-condition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.pc-player {
    color: #fff;
    font-weight: 600;
    flex: 1;
}

.pc-condition {
    color: #95e1d3;
    font-size: 0.65rem;
    margin-left: 0.5rem;
}

.chem-none {
    color: #666;
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem;
    font-style: italic;
}

.slot-content {
    font-size: 0.7rem;
    color: #ddd;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.player-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    position: relative;
}

.faceoffs-label {
    color: #00d9ff;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.3rem;
}

/* Card Changes Modal */
.card-changes-modal {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.card-changes-content {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.leaving-cards, .joining-cards {
    flex: 1;
}

.leaving-cards h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.joining-cards h3 {
    color: #51cf66;
    margin-bottom: 1rem;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-change-item {
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid rgba(100, 100, 120, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-change-item.leaving {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.card-change-item.joining {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

.card-change-item.upgrade {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

.card-change-item.downgrade {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.card-change-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.card-change-image-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.card-change-info {
    flex: 1;
}

.card-change-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.card-change-details {
    color: #aaa;
    font-size: 0.9rem;
}

.player-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 0;
    object-fit: cover;
    border: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

.player-image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid rgba(0, 217, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    gap: 0.5rem;
}

.player-image-placeholder .placeholder-name {
    font-size: 0.7rem;
}

/* OVR Overlay - appears on top of player card images in lineup slots */
.ovr-overlay {
    position: absolute;
    top: 4px;
    left: 4px;
    background: transparent;
    pointer-events: none;
    z-index: 10;
}

.ovr-value {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #00d9ff;
    transform: scaleY(1.5);
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.7);
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

/* Captain Buff Overlay - Golden C for Season 3 Captain */
.captain-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    pointer-events: none;
    z-index: 10;
}

.captain-icon {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.5);
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Captain Overlay - Golden C for Season 3 Captains */
.captain-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 10;
    cursor: default;
}

.captain-overlay.active {
    pointer-events: none;
}

.captain-overlay.inactive {
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    pointer-events: auto;
    z-index: 100;
}

.captain-overlay.inactive:hover {
    opacity: 0.7;
}

.captain-icon {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.5);
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.captain-overlay.inactive .captain-icon {
    color: #888;
    text-shadow: 
        -1px -1px 0 #333,
        1px -1px 0 #333,
        -1px 1px 0 #333,
        1px 1px 0 #333;
    background: rgba(0, 0, 0, 0.4);
}

/* Conference Star Overlay - Golden Star for players fulfilling conference requirement */
.conference-star-overlay,
.eastern-star-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    pointer-events: none;
    z-index: 10;
}

.star-icon {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.5);
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.card-image {
    width: 150px;
    border-radius: 0;
    object-fit: cover;
    border: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

.card-image-placeholder {
    width: 150px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1;
    position: relative;
    gap: 0.5rem;
}

.placeholder-ovr {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #00d9ff, #7b42ff);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.placeholder-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.placeholder-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e4e4e4;
    text-align: center;
    padding: 0 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


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

/* Drag & Drop Styles */
.card-item {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-item:active {
    cursor: grabbing;
}

.card-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.player-slot.drag-over {
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid #00d9ff;
    transform: scale(1.05);
}

.player-slot.drag-over-valid {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    transform: scale(1.05);
}

.player-slot.drag-over-invalid {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    transform: scale(1.05);
}

/* Browser Panel */
.browser-panel {
    flex: 1;
    min-height: 250px;
    background: rgba(20, 20, 40, 0.8);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: flex 0.3s ease, min-height 0.3s ease;
}

.browser-panel.collapsed {
    position: fixed;
    bottom: 0;
    left: 180px;
    right: 0;
    flex: none;
    min-height: 0;
    z-index: 100;
}

/* When browser is collapsed, team-panel takes full height */
.team-panel.browser-collapsed {
    max-height: none;
    flex: 1;
}

.browser-panel.collapsed .browser-content {
    display: none;
}

.browser-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 30, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.browser-header:hover {
    background: rgba(15, 15, 30, 0.95);
}

.browser-toggle-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #00d9ff;
}

.browser-panel.collapsed .browser-toggle-arrow {
    transform: rotate(-90deg);
}

.browser-panel.collapsed .browser-content {
    display: none;
}

.browser-header h2 {
    color: #00d9ff;
    margin-bottom: 0;
    font-size: 1.3rem;
}

.card-count {
    font-size: 0.95rem;
    color: #9aa;
    font-weight: 600;
    margin-left: 6px;
}

/* Browser content - horizontal layout with filter column */
.browser-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Filter Column - narrow left column */
.filter-column {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    background: rgba(15, 15, 30, 0.6);
    border-right: 1px solid rgba(0, 217, 255, 0.15);
    padding: 0.8rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.line-combo-summary {
    margin-top: 0;
    padding: 8px 34px 8px 10px; /* Extra right padding for lock button */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

/* Lock toggle button */
.lock-toggle-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    line-height: 1;
}

.lock-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Active state - unlocked and ready for drops */
.line-combo-summary.active {
    border-color: rgba(0, 217, 255, 0.6);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Locked state - cannot drop combos */
.line-combo-summary.locked {
    opacity: 0.8;
}

.line-combo-summary.locked:not(.has-assigned-combo) {
    opacity: 0.5;
}

/* Drag over states for line-combo-summary */
.line-combo-summary.drag-over {
    border-color: rgba(0, 217, 255, 0.6);
    background: rgba(0, 217, 255, 0.1);
}

.line-combo-summary.drag-over-invalid {
    border-color: rgba(255, 100, 100, 0.6);
    background: rgba(255, 100, 100, 0.1);
}

/* Anchor forward summary to column 1 and defense to column 2 */
.line-combo-summary.forward {
    grid-column: 1;
}

.line-combo-summary.defense {
    grid-column: 2;
}

/* Goalie summary spans the goalie column position (column 2 in row 4) */
.line-combo-summary.goalie {
    grid-column: 2;
}

.line-combo-summary .line-chems {
    font-weight: 600;
}
.line-combo-summary .line-score {
    color: #9fd6ff;
}

/* Assigned combo display inside line-combo-summary */
.assigned-combo-display {
    padding: 8px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 4px;
}

/* CC Pills Container */
.cc-pills-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.cc-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
}

.cc-pill-logos {
    display: flex;
    gap: 3px;
    flex: 1;
}

.cc-pill-logos img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}

.cc-pill-boost {
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
    white-space: nowrap;
}

.cc-pill-remove {
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cc-pill-remove:hover {
    background: rgba(255, 100, 100, 0.4);
}

/* Total boost display */
.cc-total-boost {
    font-size: 13px;
    font-weight: 700;
    color: #4ade80;
    padding: 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2px;
}

/* Slot usage indicators */
.cc-slot-usage {
    display: flex;
    gap: 6px;
    margin: 6px 0;
    font-size: 10px;
    font-weight: 600;
}

.slot-indicator {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: #9fd6ff;
}

.slot-indicator.full {
    background: rgba(255, 200, 100, 0.15);
    border-color: rgba(255, 200, 100, 0.4);
    color: #ffb84d;
}

/* CC Actions */
.cc-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

/* Legacy assigned combo display (keep for compatibility) */
.assigned-combo-display .combo-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.assigned-combo-display .combo-logos {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.assigned-combo-display .combo-logos img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}

.assigned-combo-display .combo-buff {
    font-size: 12px;
    font-weight: 600;
    color: #4ade80;
}

.assigned-combo-display .combo-actions {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.assigned-combo-display .combo-action-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assigned-combo-display .combo-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.assigned-combo-display .optimize-btn {
    flex: 1;
}

.assigned-combo-display .unassign-btn {
    padding: 4px 10px;
}

.assigned-combo-display .clear-all-btn {
    padding: 4px 10px;
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

.assigned-combo-display .clear-all-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
}

.chem-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.2);
    margin-right: 6px;
}
.chem-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
}
.chem-name {
    font-weight: 600;
}
.chem-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}
.chem-buff {
    color: #9fd6ff;
    font-weight: 700;
    margin-left: 6px;
}
.chem-points {
    color: #ffc857;
    font-weight: 700;
    margin-left: 6px;
}

.filter-column::-webkit-scrollbar {
    width: 6px;
}

.filter-column::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.filter-column::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 3px;
}

.filter-column::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

.filter-column .filter-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-column .search-input,
.filter-column .filter-select {
    width: 100%;
}

.filter-column .ovr-filter {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-column .filter-clear-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.filter-column .collection-toggle {
    padding: 0.5rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.filter-column .collection-hint {
    font-size: 0.7rem;
    line-height: 1.3;
}

.filter-column .collection-hint-box {
    justify-content: center;
}

.filter-clear-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
}

.ovr-filter {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    min-width: 140px;
}

.ovr-filter label {
    color: #e4e4e4;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.ovr-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.4rem;
    color: #e4e4e4;
    font-size: 0.8rem;
    width: 45px;
    text-align: center;
    transition: all 0.3s ease;
}

.ovr-separator {
    color: #00d9ff;
    font-weight: 500;
    font-size: 0.9rem;
}

.ovr-input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.2);
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: #e4e4e4;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: #e4e4e4;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #00d9ff;
}

/* Dropdown options styling */
.filter-select option {
    background: #2a2a2a;
    color: #e4e4e4;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.filter-select option:hover {
    background: #00d9ff;
    color: #1a1a2e;
}

.filter-select option:checked {
    background: #00d9ff;
    color: #1a1a2e;
    font-weight: 500;
}

.collection-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #aaa;
    font-size: 0.9rem;
}

.collection-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collection-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00d9ff;
}

.collection-hint {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Card Browser Hint Box */
.collection-hint-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9), rgba(20, 25, 35, 0.95));
    border-radius: 8px;
    border: 1px solid rgba(100, 120, 150, 0.3);
}

.collection-hint-box .hint-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ccc;
}

.collection-hint-box .hint-item kbd {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.collection-hint-box .hint-collection {
    color: #7dcea0;
}

.collection-hint-box .hint-collection kbd {
    background: rgba(125, 206, 160, 0.2);
    border-color: rgba(125, 206, 160, 0.4);
}

.collection-hint-box .hint-temp {
    color: #f5a623;
}

.collection-hint-box .hint-temp kbd {
    background: rgba(245, 166, 35, 0.2);
    border-color: rgba(245, 166, 35, 0.4);
}

.collection-hint-box .hint-choice {
    color: #a78bfa;
}

.collection-hint-box .hint-choice kbd {
    background: rgba(167, 139, 250, 0.2);
    border-color: rgba(167, 139, 250, 0.4);
}

/* Triangle Weight Slider */


/* Optimization Buttons */
.optimization-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    flex-wrap: wrap;
}

.btn-optimize {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.btn-optimize-main {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-optimize-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
}

.btn-optimize:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-optimize:active {
    transform: translateY(0);
}

.btn-optimize .btn-icon {
    font-size: 1rem;
}

.btn-optimize:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-optimize:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Cards Container */
.cards-container {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    align-content: start;
}

.card-item {
    background: rgba(30, 30, 50, 0.8);
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 210px;
    width: 100%;
    overflow: visible;
    justify-content: flex-start;
    position: relative;
}

.card-item:hover {
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
}

.card-item.in-collection {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.card-item.in-collection::after {
    content: 'in collection';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20%;
    background: linear-gradient(0deg, rgba(39, 174, 96, 0.95) 0%, rgba(39, 174, 96, 0) 100%);
    color: #0a0a0a;
    width: 100%;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: lowercase;
    padding-bottom: 4px;
    pointer-events: none;
}

.card-item.in-temp-collection {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.card-item.in-temp-collection::after {
    content: 'temporary';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20%;
    background: linear-gradient(0deg, rgba(243, 156, 18, 0.95) 0%, rgba(243, 156, 18, 0) 100%);
    color: #0a0a0a;
    width: 100%;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: lowercase;
    padding-bottom: 4px;
    pointer-events: none;
}

/* Choice Pack Cards (Alt+Click) - Purple gradient */
.card-item.in-choice-pack {
    border-color: #9b59b6;
    background: rgba(155, 89, 182, 0.15);
}

.card-item.in-choice-pack::after {
    content: 'Choice Pack';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20%;
    background: linear-gradient(0deg, rgba(155, 89, 182, 0.95) 0%, rgba(155, 89, 182, 0) 100%);
    color: #fff;
    width: 100%;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: none;
    padding-bottom: 4px;
    pointer-events: none;
}

.card-item.in-lineup {
    opacity: 0.2;
    pointer-events: none;  /* Cannot click or drag cards already in lineup */
    cursor: not-allowed;
}

.card-item.in-lineup:hover {
    opacity: 0.2;  /* Stay at 0.2, no hover effect */
}

.card-image {
    width: 150px;
    border-radius: 0;
    object-fit: cover;
    border: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

.card-image-placeholder {
    width: 150px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1;
    position: relative;
    gap: 0.5rem;
}

/* Scraper Panel */
.scraper-panel {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.scraper-header {
    text-align: center;
    margin-bottom: 2rem;
}

.scraper-header h2 {
    color: #00d9ff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.scraper-header p {
    color: #aaa;
    font-size: 1.1rem;
}

.scraper-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.control-select, .control-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: #e4e4e4;
    font-size: 0.9rem;
    width: 100%;
}

.control-select:focus, .control-input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
}

.scraper-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-icon {
    font-size: 1.5rem;
}

.status-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e4e4e4;
}

.progress-container {
    position: relative;
    margin-bottom: 1rem;
}

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

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    color: #00d9ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.scraper-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-item .stat-label {
    display: block;
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.stat-item .stat-value {
    color: #00d9ff;
    font-size: 1.2rem;
    font-weight: 700;
}

.scraper-log {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.scraper-log h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
}

.log-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.log-entry {
    color: #aaa;
    margin-bottom: 0.3rem;
    padding: 0.2rem 0;
}

.log-entry:last-child {
    margin-bottom: 0;
}

/* Settings Panel */
.settings-panel {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.settings-panel h2 {
    color: #00d9ff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.settings-section h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.file-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.setting-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: #e4e4e4;
    font-size: 0.9rem;
    width: 100%;
}

.setting-input:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.info-label {
    display: block;
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.info-value {
    color: #00d9ff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2vh;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 92vh;
    overflow-y: auto;
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

.collection-modal {
    width: 80vw;
    height: 80vh;
}

.collection-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.collection-info p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.collection-count {
    color: #00d9ff;
    font-weight: 600;
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.collection-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.collection-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Progress Modal */
.progress-modal {
    width: 500px;
    text-align: center;
}

.progress-modal h2 {
    color: #00d9ff;
    margin-bottom: 1.5rem;
}

.progress-info {
    margin-bottom: 1.5rem;
}

.progress-step {
    color: #aaa;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-details {
    color: #00d9ff;
    font-weight: 600;
}

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

.progress-stats .stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 6px;
    color: #aaa;
    font-size: 0.9rem;
}

/* Results Modal */
.results-modal {
    width: 600px;
    max-height: 80vh;
}

.results-modal h2 {
    color: #00d9ff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.result-stat .stat-label {
    display: block;
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.result-stat .stat-value {
    color: #00d9ff;
    font-size: 1.2rem;
    font-weight: 700;
}

.results-details h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
}

.line-results {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.line-results h4 {
    color: #7b42ff;
    margin-bottom: 0.5rem;
}

.line-players {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.player-name {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #00d9ff;
}

.chemistry-list {
    margin-top: 0.5rem;
}

.chemistry-item {
    background: rgba(123, 66, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    color: #7b42ff;
}

.no-chemistry {
    color: #aaa;
    font-style: italic;
    font-size: 0.8rem;
}

/* Loading */
.loading {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .team-summary {
        gap: 0.5rem 1.2rem;
    }

    .player-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .team-summary {
        gap: 0.45rem 0.75rem;
    }

    .player-slots {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.optimization-settings {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.optimization-settings .slider-label {
    color: #00d9ff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.optimization-settings #generationsValue {
    color: #7fff00;
    font-weight: 700;
    min-width: 50px;
    display: inline-block;
    text-align: center;
}

.generations-slider {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.generations-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00d9ff, #7b42ff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.5);
}

.generations-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 217, 255, 0.7);
}

.generations-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00d9ff, #7b42ff);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.5);
}

.generations-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 217, 255, 0.7);
}


/* Scraper Modal Styles */
.scraper-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.scraper-info p {
    margin: 0.5rem 0;
    color: #ccc;
}

.scraper-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #7b42ff, #00d9ff);
}

/* Chemistry Editor Styles */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.chemistries-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.chemistries-section h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.chemistries-list {
    max-height: 60vh;
    overflow-y: auto;
}

.chemistry-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.chemistry-item.chemistry-active {
    background: rgba(127, 255, 0, 0.08);
    border: 2px solid rgba(127, 255, 0, 0.4);
    box-shadow: 0 0 15px rgba(127, 255, 0, 0.2);
}

.chemistry-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: #00d9ff;
}

.chemistry-item.chemistry-active:hover {
    border-color: rgba(127, 255, 0, 0.6);
    background: rgba(127, 255, 0, 0.12);
}

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

.chemistry-name {
    font-weight: 600;
    color: #00d9ff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #7fff00;
    background: rgba(127, 255, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(127, 255, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chemistry-actions {
    display: flex;
    gap: 0.5rem;
}

.chemistry-actions button {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-chemistry-btn {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.edit-chemistry-btn:hover {
    background: rgba(255, 193, 7, 0.3);
    color: #fff;
}

.delete-chemistry-btn {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.delete-chemistry-btn:hover {
    background: rgba(220, 53, 69, 0.3);
    color: #fff;
}

.chemistry-details {
    margin-bottom: 0.5rem;
}

.chemistry-conditions {
    margin-bottom: 0.5rem;
}

.condition-item {
    color: #e4e4e4;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    padding: 0.2rem 0;
}

.chemistry-boosts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.boost-item {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    color: #00d9ff;
    font-weight: 500;
}

/* Boost Tags for filtering */
.boost-tags-container {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.boost-tags-container h4 {
    color: #00d9ff;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.boost-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.boost-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: #00d9ff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.boost-tag:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: #00d9ff;
    transform: translateY(-1px);
}

.boost-tag.active {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.boost-tag-ovr {
    border-color: rgba(123, 66, 255, 0.5);
    color: #7b42ff;
}

.boost-tag-ovr:hover,
.boost-tag-ovr.active {
    background: rgba(123, 66, 255, 0.2);
    border-color: #7b42ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(123, 66, 255, 0.3);
}

.boost-tag-ap {
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.boost-tag-ap:hover,
.boost-tag-ap.active {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.boost-tag-salary {
    border-color: rgba(78, 205, 196, 0.5);
    color: #4ecdc4;
}

.boost-tag-salary:hover,
.boost-tag-salary.active {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
    color: #fff;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.chemistry-info {
    flex: 1;
    margin-bottom: 0.3rem;
}

.chemistry-details {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-bottom: 0.3rem;
}

.chemistry-boosts {
    font-size: 0.8rem;
    color: #00d9ff;
}

.chemistry-actions {
    display: flex;
    gap: 0.5rem;
}

.delete-chemistry-btn {
    background: #dc3545;
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.delete-chemistry-btn:hover {
    background: #c82333;
}

.add-chemistry-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.add-chemistry-section h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #e4e4e4;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: #e4e4e4;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
}

.conditions-container {
    margin: 1rem 0;
}

.condition-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.condition-group label {
    min-width: 60px;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.condition-group select {
    flex: 1;
    margin-bottom: 0;
}

.searchable-dropdown {
    position: relative;
    flex: 1;
}

.condition-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    color: #e4e4e4;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.condition-search:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(255, 255, 255, 0.15);
}

.condition-value {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    color: #e4e4e4;
    font-size: 0.9rem;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.condition-value option {
    padding: 0.5rem;
    background: #2a2a2a;
    color: #e4e4e4;
}

.condition-value option:hover {
    background: #00d9ff;
    color: #1a1a2e;
}

.condition-value option:checked {
    background: #00d9ff;
    color: #1a1a2e;
}

.boost-settings {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.boost-settings h4 {
    color: #00d9ff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.boost-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.boost-input {
    display: flex;
    flex-direction: column;
}

.boost-input label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.boost-input input {
    text-align: center;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Progress Modal */
.progress-info {
    text-align: center;
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.stat-label {
    font-weight: 500;
    color: #e4e4e4;
}

.stat-value {
    font-weight: bold;
    color: #00d9ff;
    font-size: 1.1rem;
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #7fff00);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: #e4e4e4;
    font-weight: 500;
}

.recent-cards {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.recent-cards h4 {
    margin: 0 0 0.5rem 0;
    color: #00d9ff;
    font-size: 0.9rem;
}

.recent-card-item {
    font-family: 'Courier New', monospace;
}

.form-actions .btn {
    flex: 1;
}

/* Goalie Optimization Results Modal */
.goalie-results-modal {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.goalie-results-content {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    min-height: 500px;
}

.temp-cards-notice {
    background: linear-gradient(135deg, #2a4a2a 0%, #1a3a1a 100%);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    color: #00ff00;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.best-pair-section {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    border: 2px solid #667eea;
    flex: 1;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
}

.goalie-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.goalie-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #333;
    padding: 1rem;
    border-radius: 8px;
    min-width: 120px;
}

.goalie-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.goalie-info {
    text-align: center;
}

.goalie-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.goalie-ovr {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
}

.vs-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.score-breakdown {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #222;
    border-radius: 8px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
}

.score-item.total-score {
    border-top: 1px solid #444;
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.score-label {
    color: #ccc;
}

.score-value {
    color: #667eea;
    font-weight: 600;
}

.chemistry-boosts {
    margin: 1rem 0;
    padding: 1rem;
    background: #1a3a1a;
    border-radius: 8px;
    border-left: 4px solid #00ff00;
}

.chemistry-boosts h4 {
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.boost-item {
    color: #ccc;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.no-chemistry {
    color: #666;
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

.all-pairs-section {
    margin-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.all-pairs-section h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.pairs-list {
    max-height: none;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 8px;
    flex: 1;
}

.pair-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #333;
    background: #222;
}

.pair-item.best-pair {
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a3a 100%);
    border-left: 4px solid #667eea;
}

.pair-item:last-child {
    border-bottom: none;
}

.pair-rank {
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
    margin-right: 1rem;
}

.pair-goalies {
    flex: 1;
    color: #ccc;
    font-size: 0.9rem;
}

.pair-score {
    color: #00ff00;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .goalie-results-content {
        flex-direction: column;
    }
    
    .best-pair-section {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .goalie-results-modal {
        max-width: 95vw;
    }
}

/* Defensemen Optimization Results Modal */
.defensemen-results-modal {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.defensemen-results-content {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    min-height: 600px;
}

.best-combination-section {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    border: 2px solid #667eea;
    flex: 1;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
}

.forward-line {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #333;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.forward-line h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.forward-line-players {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.forward-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #2a2a2a;
    border-radius: 8px;
    border: 2px solid #f59e0b;
    min-width: 200px;
}

.forward-card img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.forward-card .player-info {
    display: flex;
    flex-direction: column;
}

.forward-card .player-info strong {
    color: #f59e0b;
    font-size: 0.95rem;
}

.forward-card .player-info div {
    color: #ccc;
    font-size: 0.85rem;
}

.line-score {
    text-align: center;
    color: #f59e0b;
    font-weight: 600;
    font-size: 1rem;
}

.defense-pair {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #333;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.defense-pair h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.defense-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.defense-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    padding: 1rem;
    border-radius: 8px;
    min-width: 100px;
}

.defense-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.defense-info {
    text-align: center;
}

.defense-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.defense-position {
    color: #999;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.defense-ovr {
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
}

.all-combinations-section {
    margin-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.combinations-list {
    max-height: none;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 8px;
    flex: 1;
}

.combination-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #333;
    background: #222;
}

.combination-item.best-combination {
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a3a 100%);
    border-left: 4px solid #667eea;
}

.combination-item:last-child {
    border-bottom: none;
}

.combination-rank {
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
    margin-right: 1rem;
}

.combination-pairs {
    flex: 1;
    color: #ccc;
    font-size: 0.8rem;
    line-height: 1.3;
}

.combination-score {
    color: #00ff00;
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

/* Responsive layout for defensemen modal */
@media (max-width: 768px) {
    .defensemen-results-content {
        flex-direction: column;
    }
    
    .best-combination-section {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .defensemen-results-modal {
        max-width: 95vw;
    }
    
    .defense-cards {
        gap: 1rem;
    }
    
    .defense-card {
        min-width: 80px;
    }
}

/* Progress Modal styles */
.progress-modal {
    max-width: 500px;
    text-align: center;
    padding: 2rem;
}

.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.progress-info {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.progress-info p {
    margin: 0.5rem 0;
}

/* Success Modal styles */
.success-modal {
    max-width: 400px;
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-in-out;
}

.success-modal h2 {
    color: #00ff00;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.success-modal p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.success-modal .btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Card Review Modal styles */
.card-review-modal {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.card-review-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    height: auto;
}

.card-review-navigation .btn {
    height: auto;
    padding: 0.5rem 1rem;
    min-height: 40px;
}

.card-review-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-image-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.card-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

.card-details-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-basic-info h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.info-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    font-size: 0.95rem;
    color: #e4e4e4;
}

.info-item .label {
    color: #9aa0b5;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.info-item span:last-child {
    color: #ffffff;
    font-weight: 600;
}

.card-xfactors h4,
.card-stats h4 {
    color: #00d9ff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.xfactor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.xfactor-item {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    color: #00d9ff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0.4rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 0.8rem;
}

.stat-item .stat-name {
    color: #888;
}

.stat-item .stat-value {
    color: #e4e4e4;
    font-weight: bold;
}

.card-review-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.review-buttons {
    display: flex;
    gap: 0.5rem;
}

.final-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    gap: 1rem;
}

.approved-count {
    color: #51cf66;
    font-weight: bold;
    white-space: nowrap;
}

/* Condition Players Tooltip */
.condition-players-tooltip {
    position: fixed;
    background: rgba(20, 20, 40, 0.98);
    border: 2px solid #00d9ff;
    border-radius: 8px;
    padding: 0;
    max-width: 400px;
    max-height: 500px;
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.3);
    z-index: 10000;
    animation: tooltipFadeIn 0.2s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-header {
    background: rgba(0, 217, 255, 0.15);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00d9ff;
    font-size: 0.95rem;
}

.tooltip-close {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #888;
    transition: color 0.2s ease;
    padding: 0 5px;
}

.tooltip-close:hover {
    color: #ff6b6b;
}

.tooltip-count {
    padding: 10px 15px;
    font-size: 0.85rem;
    color: #7fff00;
    background: rgba(127, 255, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tooltip-players-list {
    overflow-y: auto;
    max-height: 350px;
    padding: 8px;
}

.tooltip-players-list::-webkit-scrollbar {
    width: 8px;
}

.tooltip-players-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.tooltip-players-list::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 4px;
}

.tooltip-players-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

.tooltip-player-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tooltip-player-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateX(2px);
}

.tooltip-player-name {
    color: #e4e4e4;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tooltip-player-ovr {
    color: #7b42ff;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 30px;
    text-align: center;
    background: rgba(123, 66, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.tooltip-player-type {
    color: #00d9ff;
    font-size: 0.75rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

/* Condition count styling in chemistry items */
.condition-count {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.condition-count:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1);
}

/* Add Cards Modal Styles */
.add-cards-content {
    padding: 1rem 0;
}

.info-section {
    margin-bottom: 1.5rem;
}

.drop-zone {
    border: 3px dashed rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(0, 217, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.drop-zone:hover {
    border-color: rgba(0, 217, 255, 0.6);
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.drop-zone.drag-over {
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.drop-zone-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.drop-zone-text {
    color: #e4e4e4;
    font-size: 1.1rem;
}

.drop-zone-text strong {
    color: #00d9ff;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-status {
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #e4e4e4;
}

.upload-info span {
    font-size: 1rem;
}

.upload-info #uploadFileName {
    color: #00d9ff;
    font-weight: bold;
    font-size: 1.1rem;
}

.upload-info #uploadCardCount {
    color: #7fff00;
    font-weight: 600;
}

.upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.upload-progress {
    text-align: center;
    padding: 2rem;
}

.progress-text {
    color: #00d9ff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.spinner {
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top: 4px solid #00d9ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Team Modal Styles */
.team-modal-content {
    max-width: 900px;
    width: 90vw;
}

.team-modal-wide {
    max-width: 1200px;
}

.team-modal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
}

.team-modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    margin: 0;
    color: #888;
    font-size: 1rem;
}

.team-modal-body {
    padding: 1rem 0;
}

.team-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #00d9ff;
    font-size: 1rem;
}

.input-modern {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.input-modern:focus {
    outline: none;
    border-color: #00d9ff;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.input-modern::placeholder {
    color: #666;
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
    min-width: 140px;
}

.teams-list-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.teams-list-container::-webkit-scrollbar {
    width: 10px;
}

.teams-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.teams-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 5px;
}

.teams-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

/* Improved saved team item */
.saved-team-item {
    transition: all 0.3s ease;
}

.saved-team-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.saved-team-item h3 {
    font-size: 1.3rem;
}

/* Combined Optimization Modal */
.combined-optimization-modal {
    max-width: 780px;
    padding: 2rem;
}

.combined-optimization-modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.combined-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.combined-status-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.combined-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.combined-section.running {
    border-color: rgba(0, 217, 255, 0.6);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.08);
}

.combined-section.completed {
    border-color: rgba(127, 255, 0, 0.6);
    box-shadow: 0 0 18px rgba(127, 255, 0, 0.08);
}

.combined-section.completed .combined-progress-fill {
    background: linear-gradient(90deg, #7fff00, #00d9ff);
}

.combined-section.error {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 18px rgba(255, 107, 107, 0.1);
}

.combined-section.skipped .combined-progress-fill {
    background: rgba(255, 255, 255, 0.35);
}

.combined-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.combined-section-icon {
    font-size: 1.75rem;
}

.combined-section-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.combined-section .label-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.combined-section .label-status {
    font-weight: 600;
}

.combined-section .label-detail {
    color: #9ca3af;
    font-size: 0.95rem;
}

.combined-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.combined-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    transition: width 0.3s ease;
}

.combined-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.combined-actions-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e4e4e4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.combined-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-optimizer-mode {
    min-width: 160px;
    font-weight: 700;
}

.combined-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.combined-status-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e4e4e4;
}

.combined-summary-text {
    color: #cbd5f5;
}

.combined-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}


/* Zoom out animation when all complete */
@keyframes zoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.zoom-out {
    animation: zoomOut 1s ease-in-out forwards;
}

/* Authentication & Admin Styles */
.user-display {
    color: #00d9ff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.btn-admin {
    background: linear-gradient(135deg, #7b42ff, #9b59ff) !important;
    border: none;
    font-weight: 600;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #8b52ff, #ab69ff) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 66, 255, 0.4);
}

.login-content {
    padding: 0;
}

.input-center {
    text-align: center;
}

.input-uppercase {
    text-transform: uppercase;
}

.btn-full {
    width: 100%;
}

.login-error {
    display: none;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 1rem;
    color: #ff6b6b;
    text-align: center;
    font-weight: 600;
}

.login-error:empty {
    display: none !important;
}

.login-footer-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.login-footer-note p {
    margin: 0;
    color: #888;
    font-size: 0.95rem;
}

.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
    margin-bottom: 2rem;
}

.admin-tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
}

.admin-tab-btn:hover {
    color: #00d9ff;
    background: rgba(0, 217, 255, 0.05);
}

.admin-tab-btn.active {
    color: #00d9ff;
    border-bottom-color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.add-cards-section,
.invite-creation,
.users-list-section {
    padding: 1rem;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #e4e4e4;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-meta {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.user-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.user-badge.admin {
    background: rgba(123, 66, 255, 0.2);
    color: #7b42ff;
    border: 1px solid rgba(123, 66, 255, 0.4);
}

.user-badge.user {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
    border: 1px solid rgba(0, 217, 255, 0.4);
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.invite-code-display {
    font-family: 'Courier New', monospace;
    color: #7fff00;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ========================================
   RESULTS BROWSER MODAL
   ======================================== */

.results-browser-modal {
    max-width: 1400px;
    width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.results-browser-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    overflow: hidden;
}

/* Results Table */
.results-table-container {
    overflow-y: auto;
    max-height: 65vh;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

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

.results-table thead {
    position: sticky;
    top: 0;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.results-table th {
    padding: 1rem;
    text-align: left;
    color: #00d9ff;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 217, 255, 0.5);
}

.results-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-row:hover {
    background: rgba(0, 217, 255, 0.1);
}

.result-row.selected {
    background: rgba(0, 217, 255, 0.2);
    border-left: 4px solid #00d9ff;
}

.rank-cell {
    font-weight: bold;
    color: #7fff00;
}

.salary-over {
    color: #ff6b6b !important;
}

.salary-ok {
    color: #7fff00 !important;
}

/* Results Preview */
.results-preview-container {
    border: 2px solid rgba(123, 66, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.results-preview-container h3 {
    color: #7b42ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-stat {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.25rem;
}

.preview-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #00d9ff;
}

.preview-chemistries {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-chemistries h4 {
    color: #7fff00;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.chemistry-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chemistry-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #7fff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chemistry-item strong {
    color: #e4e4e4;
}

.chem-boosts {
    font-size: 0.85rem;
    color: #7fff00;
    font-weight: 600;
}

.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .results-browser-layout {
        grid-template-columns: 1fr;
    }
    
    .results-table-container {
        max-height: 40vh;
    }
    
    .preview-chemistries {
        max-height: 200px;
    }
}

/* Drag-and-Drop Styles */
.player-slot[draggable="true"] {
    cursor: grab;
    transition: all 0.2s ease;
}

.player-slot.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: scale(0.95);
}

.player-slot.drag-over {
    border: 2px solid #7fff00;
    background: rgba(127, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(127, 255, 0, 0.4);
    transform: scale(1.05);
}

.player-slot.drag-over::after {
    content: "↓ Drop here";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(127, 255, 0, 0.9);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    pointer-events: none;
}

/* Card Suggestions Modal Styles */
.card-suggestions-modal {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.card-suggestions-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid rgba(0, 217, 255, 0.2);
}

.current-player-info,
.suggestions-info {
    flex: 1;
}

.current-player-info h3,
.suggestions-info h3 {
    color: #00d9ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.arrow-separator {
    font-size: 2rem;
    color: #7b42ff;
    font-weight: bold;
}

.player-card-preview {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.player-card-preview .player-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e4e4e4;
    margin-bottom: 0.5rem;
}

.player-card-preview .player-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.player-card-preview .detail-badge {
    background: rgba(0, 217, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #00d9ff;
}

.suggestions-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-suggestions-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.card-suggestions-filters .search-input {
    flex: 1;
}

.card-suggestions-filters .owned-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e4e4e4;
    cursor: pointer;
    white-space: nowrap;
}

.card-suggestions-filters .owned-filter-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Suggestions Table Layout */
.suggestions-grid {
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.suggestions-table-header {
    display: grid;
    grid-template-columns: 50px 60px 1fr 60px 70px 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
    font-weight: bold;
    color: #00d9ff;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.suggestion-card {
    display: grid;
    grid-template-columns: 50px 60px 1fr 60px 70px 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(100, 100, 120, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
}

.suggestion-card .card-owned {
    text-align: center;
    font-size: 1.1rem;
}

.suggestion-card .card-owned.owned {
    color: #27ae60;
}

.suggestion-card .card-owned.not-owned {
    color: #888;
}

.suggestion-card:hover {
    background: rgba(0, 217, 255, 0.1);
}

.suggestion-card.active-chemistry {
    background: rgba(127, 255, 0, 0.05);
}

.suggestion-card.active-chemistry:hover {
    background: rgba(127, 255, 0, 0.15);
}

.suggestion-card.in-collection {
    background: rgba(39, 174, 96, 0.1);
}

.suggestion-card.in-collection:hover {
    background: rgba(39, 174, 96, 0.15);
}

.suggestion-card .card-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.suggestion-card .card-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: #e4e4e4;
}

.suggestion-card .card-ovr {
    font-weight: bold;
    color: #00d9ff;
    font-size: 0.9rem;
}

.suggestion-card .card-position {
    color: #aaa;
    font-size: 0.85rem;
}

.suggestion-card .card-team {
    color: #aaa;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-card .card-type {
    color: #aaa;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-card .chemistry-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.suggestion-card .chem-badge {
    background: rgba(127, 255, 0, 0.2);
    color: #7fff00;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.suggestions-grid::-webkit-scrollbar {
    width: 8px;
}

.suggestions-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.suggestions-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.5);
    border-radius: 4px;
}

.suggestions-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.7);
}

.no-suggestions-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #aaa;
    font-size: 1.1rem;
}

/* CC Search Modal (kept for combos panel) */
.cc-search-modal {
    max-width: 600px;
}

.cc-search-info {
    padding: 1rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #00d9ff;
}

.cc-search-results {
    max-height: 400px;
    overflow-y: auto;
}

.cc-search-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.cc-search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(30, 30, 50, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.cc-search-item:hover {
    border-color: #00d9ff;
    background: rgba(30, 30, 50, 0.8);
}

.cc-search-item-name {
    flex: 1;
    font-size: 0.9rem;
    color: #e4e4e4;
}

.cc-search-item-boosts {
    font-size: 0.8rem;
    color: #00d9ff;
}

/* Player Search Modal */
.cc-player-search-modal {
    max-width: 800px;
}

.cc-player-search-info {
    padding: 1rem;
    background: rgba(123, 66, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7b42ff;
}

.cc-player-search-results {
    max-height: 500px;
    overflow-y: auto;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Temp Card Modal Styles */
.temp-card-modal {
    max-width: 700px;
}

.temp-card-modal .modal-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.temp-card-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.temp-card-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.temp-card-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.temp-card-form .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #00d9ff;
}

.temp-card-form .form-group input,
.temp-card-form .form-group select {
    padding: 0.6rem;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    color: #e4e4e4;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.temp-card-form .form-group input:focus,
.temp-card-form .form-group select:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.temp-card-form .form-group small {
    color: #888;
    font-size: 0.8rem;
}

.temp-card-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.temp-card-form .form-group input[type="number"] {
    appearance: textfield;
}

.temp-card-form .form-group input[type="number"]::-webkit-outer-spin-button,
.temp-card-form .form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom Card Modal Styles */
.custom-card-modal {
    max-width: 700px;
}

.custom-card-modal .modal-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.custom-card-search-section {
    margin-bottom: 1rem;
}

.custom-card-search-section label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #00d9ff;
    margin-bottom: 0.5rem;
}

.custom-card-search-section input {
    width: 100%;
    padding: 0.6rem;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    color: #e4e4e4;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-card-search-section input:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.custom-card-search-results {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.custom-card-search-results:empty {
    display: none;
}

.search-result-item {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(0, 217, 255, 0.2);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: #e4e4e4;
}

.search-result-info {
    font-size: 0.8rem;
    color: #888;
}

.search-no-results {
    padding: 0.8rem;
    color: #888;
    text-align: center;
    font-style: italic;
}

.custom-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.5), transparent);
    margin: 1.5rem 0;
}

.custom-card-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-card-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.custom-card-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-card-form .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #00d9ff;
}

.custom-card-form .form-group input,
.custom-card-form .form-group select {
    padding: 0.6rem;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    color: #e4e4e4;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-card-form .form-group input:focus,
.custom-card-form .form-group select:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.custom-card-tip {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 6px;
    padding: 0.8rem;
    font-size: 0.85rem;
    color: #ffc800;
}

.custom-card-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6666, #ee0000);
    transform: translateY(-1px);
}

/* Custom Card styling in Card Browser */
.card-item.is-custom-card {
    position: relative;
}

.card-item.is-custom-card::before {
    content: '✨ Custom';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a1a2e;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 4px;
    text-align: center;
    z-index: 10;
    border-radius: 4px 4px 0 0;
}

.card-item.is-custom-card .card-image-container {
    border: 2px solid #ffd700;
}

.card-item.is-custom-card:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Browser Star Overlay - Golden Star for cards in Card Browser matching captain's conference */
.browser-star-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    pointer-events: none;
    z-index: 10;
}

/* Temp Card Badge */
.temp-card-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* ============================================
   Master JSON Editor Modal
   ============================================ */
.master-editor-modal {
    max-width: 700px;
    width: 95%;
}

.master-editor-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.master-editor-filters label {
    font-weight: 600;
    color: #00d9ff;
}

.master-editor-filters select,
.master-editor-filters input[type="text"] {
    padding: 0.5rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
}

.master-editor-filters select {
    min-width: 150px;
}

.master-editor-filters input[type="text"] {
    flex: 1;
    min-width: 150px;
}

.editor-count {
    color: #888;
    font-size: 0.85rem;
}

.master-editor-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

#masterEditorPosition {
    font-weight: 600;
    color: #00d9ff;
    min-width: 80px;
    text-align: center;
}

.master-editor-player {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.master-editor-player.modified {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.player-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.player-image {
    width: 180px;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.player-info h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.3rem;
}

.player-info p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}

.player-info .missing-fields {
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 100, 100, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    color: #ff6b6b;
}

.master-editor-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.master-editor-fields .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.master-editor-fields .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.master-editor-fields label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.master-editor-fields input {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.95rem;
}

.master-editor-fields input:focus,
.master-editor-fields select:focus {
    border-color: #00d9ff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
}

.master-editor-fields select {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.master-editor-fields select option {
    background: #1a1a2e;
    color: #fff;
}

.xfactors-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.xfactors-section h4 {
    margin: 0 0 0.75rem 0;
    color: #00d9ff;
    font-size: 1rem;
}

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

.master-editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.master-editor-actions .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.master-editor-actions .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.editor-status {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #aaa;
    text-align: center;
}

/* ============================================
   Chemistry Scraper Modal Styles
   ============================================ */

.chemistry-scraper-modal {
    max-width: 600px;
    padding: 2rem;
}

.scraper-header {
    text-align: center;
    margin-bottom: 2rem;
}

.scraper-header h2 {
    color: #00d9ff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.scraper-header .modal-subtitle {
    color: #888;
    font-size: 0.95rem;
}

/* Status Section */
.scraper-status-section {
    margin-bottom: 1.5rem;
}

.status-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
}

.status-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.status-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.status-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-label {
    color: #888;
}

.status-value {
    color: #00d9ff;
    font-weight: 600;
}

/* Progress Section */
.scraper-progress-section {
    margin-bottom: 1.5rem;
}

.progress-container {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.progress-bar-wrapper {
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d9ff, #7b42ff);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #aaa;
    font-size: 0.95rem;
}

/* Results Section */
.scraper-results-section {
    margin-bottom: 1.5rem;
}

.results-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
}

.results-card.success {
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.3);
}

.results-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.results-info h3 {
    color: #7fff00;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.results-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.result-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.result-label {
    color: #888;
}

.result-value {
    color: #7fff00;
    font-weight: 600;
}

/* Error Section */
.scraper-error-section {
    margin-bottom: 1.5rem;
}

.error-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 12px;
}

.error-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.error-info h3 {
    color: #ff6b6b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #ff9999;
    font-size: 0.9rem;
}

/* Actions */
.scraper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.scraper-actions .btn-large {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    min-width: 160px;
}

.scraper-actions .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.scraper-actions .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Info Section */
.scraper-info {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid rgba(0, 217, 255, 0.5);
}

.scraper-info .info-text {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.scraper-info .info-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #888;
    font-size: 0.85rem;
}

.scraper-info .info-list li {
    margin-bottom: 0.3rem;
}

.scraper-info code {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: #00d9ff;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}

/* Step Indicator */
.scraper-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step.completed .step-number {
    background: #7fff00;
    color: #000;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid rgba(0, 217, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #00d9ff;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #00d9ff;
    color: #000;
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.step-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step.active .step-label {
    color: #00d9ff;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: rgba(0, 217, 255, 0.2);
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
}

/* Logo Mapping in Scraper */
.scraper-logo-mapping-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
}

.logo-mapping-header {
    margin-bottom: 1rem;
}

.logo-mapping-header h3 {
    color: #ffa500;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.logo-mapping-header p {
    color: #888;
    font-size: 0.85rem;
}

.unmapped-logos-container {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scraper-logo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.scraper-logo-item.mapped {
    background: rgba(127, 255, 0, 0.1);
    border-color: rgba(127, 255, 0, 0.3);
    opacity: 0.7;
}

.scraper-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.scraper-logo-info {
    flex: 1;
    min-width: 0;
}

.logo-filename {
    color: #e4e4e4;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-type {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.scraper-logo-select {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.4);
    color: #e4e4e4;
    font-size: 0.85rem;
}

.scraper-logo-select:focus {
    border-color: #00d9ff;
    outline: none;
}

.scraper-logo-save-btn {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    flex-shrink: 0;
}

.logo-mapping-actions {
    margin-top: 1rem;
    text-align: center;
}

/* ============================================
   Choice Pack Runner Modal (Landscape Layout)
   ============================================ */
.choice-pack-modal-landscape {
    max-width: 1600px;
    width: 98%;
    background: linear-gradient(135deg, rgba(20, 10, 40, 0.98) 0%, rgba(40, 20, 60, 0.95) 100%);
    border: 2px solid rgba(155, 89, 182, 0.4);
}

.choice-pack-modal-landscape h2 {
    color: #9b59b6;
    margin-bottom: 0.5rem;
}

.choice-pack-modal-landscape .modal-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.choice-pack-layout {
    display: flex;
    gap: 1.5rem;
    min-height: 400px;
}

.choice-pack-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.choice-pack-right {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.choice-pack-right .choice-pack-results {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0;
}

.choice-pack-right .results-summary {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
}

.results-placeholder {
    color: #666;
    text-align: center;
    padding: 3rem 1rem;
    font-style: italic;
}

.choice-pack-status {
    margin-bottom: 1.5rem;
}

.choice-pack-cards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    min-height: 80px;
}

.choice-pack-card-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 1px solid rgba(155, 89, 182, 0.5);
    border-radius: 6px;
    font-size: 0.85rem;
}

.choice-pack-card-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.choice-pack-card-item .card-info {
    display: flex;
    flex-direction: column;
}

.choice-pack-card-item .card-name {
    color: #fff;
    font-weight: 600;
}

.choice-pack-card-item .card-details {
    color: #9b59b6;
    font-size: 0.75rem;
}

.choice-pack-requirements {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #888;
}

.requirement-item .req-icon {
    font-size: 1.2rem;
}

.requirement-item.satisfied .req-icon {
    color: #4ade80;
}

.requirement-item.satisfied .req-text {
    color: #4ade80;
}

.requirement-item.unsatisfied .req-icon {
    color: #f87171;
}

.requirement-item.unsatisfied .req-text {
    color: #f87171;
}

.choice-pack-progress {
    margin-bottom: 1.5rem;
}

.choice-pack-progress h3 {
    color: #9b59b6;
    margin-bottom: 1rem;
}

.workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.worker-card {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.worker-card.running {
    border-color: rgba(155, 89, 182, 0.6);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.2);
}

.worker-card.completed {
    border-color: rgba(74, 222, 128, 0.6);
    background: rgba(74, 222, 128, 0.05);
}

.worker-card .worker-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.worker-card .worker-header img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.worker-card .worker-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.worker-card .worker-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.worker-card .worker-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.worker-card .worker-score {
    font-size: 0.8rem;
    color: #888;
}

.worker-card.completed .worker-score {
    color: #4ade80;
    font-weight: 600;
}

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

.overall-progress .progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.overall-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.overall-progress .progress-text {
    color: #9b59b6;
    font-weight: 600;
    min-width: 50px;
}

.choice-pack-results h3 {
    color: #4ade80;
    margin-bottom: 1rem;
}

.choice-pack-left .choice-pack-results {
    margin-bottom: 1.5rem;
}

.choice-pack-right .results-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.result-item.winner {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

.result-item.winner::before {
    content: '🏆';
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.result-item .result-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-item .result-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.result-item .result-card-info {
    display: flex;
    flex-direction: column;
}

.result-item .result-card-name {
    color: #fff;
    font-weight: 600;
}

.result-item .result-card-details {
    color: #888;
    font-size: 0.8rem;
}

.result-item .result-score {
    text-align: right;
}

.result-item .result-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9b59b6;
}

.result-item.winner .result-score-value {
    color: #4ade80;
}

.result-item .result-score-label {
    font-size: 0.75rem;
    color: #888;
}

.result-item .result-improvement {
    font-size: 0.85rem;
    color: #4ade80;
    margin-top: 0.25rem;
}

/* Apply Lineup button for winner */
.result-item .result-actions {
    margin-left: 1rem;
}

.result-item .btn-apply-lineup {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.result-item .btn-apply-lineup:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.choice-pack-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.choice-pack-actions .btn {
    min-width: 150px;
}

/* Responsive for smaller screens */
@media (max-width: 900px) {
    .choice-pack-layout {
        flex-direction: column;
    }
    
    .choice-pack-right {
        width: 100%;
    }
    
    .choice-pack-right .results-summary {
        max-height: 300px;
    }
}

/* Settings input animation - visual feedback when values change */
.setting-updated {
    animation: setting-flash 0.6s ease-out;
    transition: all 0.3s ease;
}

@keyframes setting-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
        border-color: #00d9ff;
        background: rgba(0, 217, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(0, 217, 255, 0.4);
        border-color: #00d9ff;
        background: rgba(0, 217, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
        border-color: #555;
        background: #2a2a2a;
    }
}

/* Custom Rules Styles */
.custom-rule-item {
    transition: all 0.2s ease;
}

.custom-rule-item:hover {
    background: rgba(0, 217, 255, 0.08) !important;
    border-color: rgba(0, 217, 255, 0.4) !important;
    transform: translateX(2px);
}

.delete-rule-btn:hover {
    background: rgba(255, 107, 107, 0.3) !important;
    border-color: rgba(255, 107, 107, 0.5) !important;
    transform: scale(1.05);
}

.player-search-result {
    transition: all 0.2s ease;
}

.player-search-result:hover {
    transform: translateX(4px);
}

#rulePlayerResults {
    max-height: 300px;
}

#rulePlayerResults::-webkit-scrollbar {
    width: 8px;
}

#rulePlayerResults::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

#rulePlayerResults::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
    border: 2px solid #1a1a1a;
}

#rulePlayerResults::-webkit-scrollbar-thumb:hover {
    background: #00d9ff;
}

#ruleSelectedPlayer {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Count input info text */
.count-info {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Settings modal grid layout */
#settingsModal .modal-content {
    max-height: 90vh;
}

@media (max-width: 1024px) {
    #settingsModal .modal-content {
        grid-template-columns: 1fr !important;
        max-width: 700px !important;
    }
}

/* What's New Link */
.whats-new-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

@keyframes whats-new-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
    }
}


.whats-new-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 237, 78, 0.1));
    border: 1.5px solid #ffd700;
    border-radius: 15px;
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75em;
    transition: all 0.3s ease;
    animation: whats-new-glow 2s ease-in-out infinite;
}

.whats-new-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 237, 78, 0.2));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.whats-new-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #ffd700;
    color: #1a1a2e;
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.75em;
}

.whats-new-link.viewed {
    opacity: 0.3;
    animation: none;
    border-color: rgba(255, 215, 0, 0.3);
}

.whats-new-link.viewed:hover {
    opacity: 0.6;
}

@keyframes whats-new-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
    }
}
