:root {
    --bg-dark: #121212;
    --bg-card: #1e1e24;
    --bg-header: #1a1a2e;
    
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-accent: #f7931a; /* Bitcoin Orange */
    
    --border-color: #333;
    
    --color-hot: #ff5252;
    --color-cold: #448aff;
    --color-success: #00e676;
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

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

/* Header */
.main-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(29, 161, 242, 0.1);
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid rgba(29, 161, 242, 0.3);
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: rgba(29, 161, 242, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.profile-link .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-accent);
}

.profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.profile-info .username {
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-info .platform-icon {
    font-size: 0.7rem;
    color: #1da1f2;
}

.referral-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hg-link {
    text-decoration: none;
    color: var(--text-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.hg-link:hover {
    color: #ffb74d;
}

.ref-code-container {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.ref-code-container:hover {
    color: var(--text-primary);
}

.ref-code-container .code-highlight {
    color: var(--color-success);
    font-family: var(--font-mono);
    font-weight: bold;
}

.logo-area i {
    color: var(--text-accent);
}

.logo-area h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-area p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.status-bar .value.online {
    color: var(--color-success);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.card-header h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.refresh-indicator {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Recent Blocks Table */
.recent-blocks-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.table-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

tbody tr {
    animation: fadeIn 0.3s ease-out;
}

thead {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

th {
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2a;
    font-family: var(--font-mono);
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hex-highlight {
    color: var(--text-accent);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Middle Column */
.middle-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Targeted Prediction */
.target-control {
    padding: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.custom-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.custom-input:focus {
    border-color: var(--text-accent);
}

.btn-primary {
    background: var(--text-accent);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
    font-size: 1.1rem;
}

.btn-primary:hover {
    opacity: 0.9;
}

.target-result {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: -10px;
    padding-top: 20px;
    animation: fadeIn 0.3s ease-out;
}

.target-result.hidden {
    display: none;
}

.result-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-height {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-val {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-prob {
    font-size: 0.8rem;
    background: rgba(247, 147, 26, 0.2);
    color: var(--text-accent);
    padding: 2px 6px;
    border-radius: 4px;
}

.target-reason {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-next {
    background: transparent;
    border: 1px solid var(--text-accent);
    color: var(--text-accent);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-next:hover {
    background: rgba(247, 147, 26, 0.1);
}

.btn-prev {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

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

/* Stats */
.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-box .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-box.hot .icon { background: rgba(255, 82, 82, 0.2); color: var(--color-hot); }
.stat-box.cold .icon { background: rgba(68, 138, 255, 0.2); color: var(--color-cold); }

.stat-box h3 {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.num-badges {
    display: flex;
    gap: 5px;
}

.chart-wrapper {
    height: 250px;
    padding: 0 20px 20px 20px;
}

/* Predictions */
.prediction-card {
    flex: 1;
}

.predictions-scroller {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    overflow-y: auto;
}

.pred-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.pred-item:hover {
    transform: translateY(-2px);
    border-color: var(--text-accent);
}

.pred-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.pred-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.pred-bar-bg {
    background: #333;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.pred-bar-fill {
    background: var(--text-accent);
    height: 100%;
    border-radius: 2px;
}

/* Reason Badges */
.char-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reason-badge {
    font-size: 0.65rem;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Tooltip for Result Numbers */
.res-num[data-reason] {
    position: relative;
    cursor: help;
}

.res-num[data-reason]:hover::after {
    content: attr(data-reason);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 8px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

.res-num[data-reason]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    margin-bottom: -2px;
    z-index: 10;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 5px;
}

.modal-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: all 0.2s;
    border: 1px solid transparent;
}

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

.modal-tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
    border-color: rgba(255, 255, 255, 0.1);
}

.mode-prob .modal-tab-btn.active {
    background: rgba(33, 150, 243, 0.2);
    color: #90CAF9;
    border-color: rgba(33, 150, 243, 0.3);
}

.mode-meta .modal-tab-btn.active {
    background: rgba(156, 39, 176, 0.2);
    color: #E1BEE7;
    border-color: rgba(156, 39, 176, 0.3);
}

/* Attribute Recommendation Box in Modal */
.attr-rec-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.attr-rec-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.attr-rec-val {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
}

.mode-prob .attr-rec-val {
    color: #4fc3f7; /* Light Blue */
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.mode-meta .attr-rec-val {
    color: #e1bee7; /* Light Purple */
    text-shadow: 0 0 10px rgba(225, 190, 231, 0.3);
}

/* Attributes Bars */
.attr-section {
    margin-bottom: 12px;
}

.attr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.attr-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    width: 30px;
}

.attr-bar {
    flex: 1;
    height: 14px;
    display: flex;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    font-size: 0.65rem;
    line-height: 14px;
    color: #fff;
    font-weight: bold;
}

.attr-fill {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.attr-fill.left {
    background: #448aff; /* Cold Blue for Odd/Digit */
}

.attr-fill.right {
    background: #ff5252; /* Hot Red for Even/Letter */
}

.pred-divider {
    height: 1px;
    background: #333;
    margin: 8px 0;
}

/* Hex Grid */
.gap-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    overflow-y: auto;
}

.hex-box {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hex-box .char {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.hex-box .val {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.tooltip-icon {
    cursor: help;
    color: var(--text-secondary);
}

/* Global Controls */
.global-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    background: rgba(30, 30, 36, 0.5);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.custom-select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.custom-select:focus {
    border-color: var(--text-accent);
}

.custom-select:hover {
    border-color: #555;
}

/* Action Buttons */
.btn-action {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #fff;
}

.btn-prob {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
}

.btn-prob:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

.btn-meta {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    box-shadow: 0 2px 5px rgba(156, 39, 176, 0.3);
}

.btn-meta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(156, 39, 176, 0.4);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
}

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

#page-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CI Badge */
.ci-badge {
    background: rgba(0, 230, 118, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-family: var(--font-mono);
    cursor: help;
}

/* Stats Badges */
.num-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.num-badge.hot {
    background: linear-gradient(45deg, rgba(255, 82, 82, 0.1), rgba(255, 82, 82, 0.2));
    color: var(--color-hot);
    border: 1px solid rgba(255, 82, 82, 0.4);
}

.num-badge.cold {
    background: linear-gradient(45deg, rgba(68, 138, 255, 0.1), rgba(68, 138, 255, 0.2));
    color: var(--color-cold);
    border: 1px solid rgba(68, 138, 255, 0.4);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    vertical-align: middle;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-success);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--color-success);
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Insight Box */
.insight-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-box li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.insight-box li span.val {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
}

.custom-input-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.custom-input-small:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.9);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

/* Loading View */
.loading-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--text-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.progress-bar {
    width: 80%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-accent);
    width: 0%;
    /* animation handled by JS for precise control, or CSS for simple visual */
    transition: width 0.1s linear;
}

/* Result View */
.result-group {
    margin-bottom: 20px;
}

.result-group h3 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--text-accent);
    padding-left: 10px;
}

.result-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.res-num {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--text-primary);
}

.res-num.highlight {
    background: rgba(247, 147, 26, 0.2);
    border-color: var(--text-accent);
    color: var(--text-accent);
}

/* Specific styles for modes */
.mode-prob .progress-fill {
    background: linear-gradient(90deg, #2196F3, #21CBF3);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.mode-prob .result-group h3 {
    border-left-color: #2196F3;
}

.mode-prob .res-num.highlight {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    color: #90CAF9;
}

.mode-meta .progress-fill {
    background: linear-gradient(90deg, #9C27B0, #E040FB);
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
}

.mode-meta .result-group h3 {
    border-left-color: #9C27B0;
}

.mode-meta .res-num.highlight {
    background: rgba(156, 39, 176, 0.2);
    border-color: #9C27B0;
    color: #E1BEE7;
}

.hidden {
    display: none !important;
}
