* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Toast notifications */
#toastContainer {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #7ee787;
}

.toast-info {
    border-left: 4px solid #58a6ff;
}

.toast-error {
    border-left: 4px solid #f85149;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #f0f3f6;
}

.toast-body {
    font-size: 0.8rem;
    color: #8b949e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e1e4e8;
    min-height: 100vh;
}

/* App layout with sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background: #161b22;
    border-right: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #30363d;
}

.sidebar-header h1 {
    font-size: 1.3rem;
    color: #58a6ff;
}

.sidebar-nav {
    list-style: none;
    padding: 8px 0;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #21262d;
    color: #e1e4e8;
}

.nav-link.active {
    color: #e1e4e8;
    background: #21262d;
    border-left-color: #58a6ff;
}

.main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Login overlay */
#loginOverlay {
    position: fixed;
    inset: 0;
    background: #0f1117;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    width: 340px;
}

.login-box h2 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.login-box p {
    color: #8b949e;
    margin-bottom: 16px;
}

.login-box input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #30363d;
    background: #0d1117;
    color: #e1e4e8;
    font-size: 1rem;
    margin-bottom: 12px;
}

.login-box .btn {
    width: 100%;
}

header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.4rem;
    color: #58a6ff;
}

.header-actions {
    display: flex;
    gap: 8px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
}

.panel h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #c9d1d9;
    display: flex;
    align-items: center;
    gap: 12px;
}

#consolePanel {
    grid-column: 1 / -1;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #8b949e;
    gap: 4px;
}

.form-grid input[type="text"],
.form-grid input[type="number"] {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.form-grid input:focus {
    outline: none;
    border-color: #58a6ff;
}

.checkbox-label {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #58a6ff;
}

.add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.add-row input {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    padding: 8px 12px;
    font-size: 0.9rem;
    flex: 1;
}

.add-row input:focus {
    outline: none;
    border-color: #58a6ff;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background: #238636;
    color: #fff;
}

.btn-success {
    background: #1f6feb;
    color: #fff;
}

.btn-danger {
    background: #da3633;
    color: #fff;
}

.btn-small {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

/* Item lists */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-card .info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-card .actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #3fb950;
}

.status-dot.offline {
    background: #484f58;
}

.username {
    font-weight: 600;
    color: #e1e4e8;
}

.cmd-text {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #79c0ff;
}

.cmd-interval {
    color: #8b949e;
    font-size: 0.85rem;
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 40px;
    height: 22px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #484f58;
    border-radius: 11px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle .slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked+.slider {
    background: #238636;
}

.toggle input:checked+.slider::before {
    transform: translateX(18px);
}

/* Console */
.chat-log {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    height: 350px;
    overflow-y: auto;
    padding: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.chat-log .entry {
    color: #8b949e;
}

.chat-log .entry .time {
    color: #484f58;
    margin-right: 8px;
}

.chat-log .entry .msg-chat {
    color: #e1e4e8;
}

.chat-log .entry .msg-sent {
    color: #58a6ff;
}

.chat-log .entry .msg-system {
    color: #d29922;
}

.chat-log .entry .msg-error {
    color: #f85149;
    font-weight: 600;
}

.chat-log .entry .msg-disconnect {
    color: #f0883e;
}

.chat-log .entry .msg-warn {
    color: #d29922;
    font-style: italic;
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chat-input-row input {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    padding: 10px 14px;
    font-size: 0.9rem;
}

.chat-input-row input:focus {
    outline: none;
    border-color: #58a6ff;
}

#consoleAccount {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #484f58;
    padding: 20px;
    font-size: 0.9rem;
}

.panel-desc {
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 12px;
}

/* Microsoft sign-in button */
.btn-microsoft {
    background: #2f2f2f;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 100%;
}

.btn-microsoft:hover {
    background: #404040;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 8px;
    color: #e1e4e8;
    font-size: 1.2rem;
}

.modal-content p {
    color: #8b949e;
    margin-bottom: 8px;
}

.auth-code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: #58a6ff;
    background: #0d1117;
    border: 2px dashed #30363d;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    user-select: all;
    cursor: pointer;
}

.auth-link {
    display: inline-block;
    margin: 12px 0;
    text-decoration: none;
}

.auth-status {
    color: #8b949e;
    font-size: 0.9rem;
    margin: 12px 0;
}

/* Token info */
.token-info {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    white-space: nowrap;
}

.token-info.valid {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.1);
}

.token-info.warning {
    color: #d29922;
    background: rgba(210, 153, 34, 0.1);
}

.token-info.expired {
    color: #da3633;
    background: rgba(218, 54, 51, 0.1);
}

/* Multi-select for command accounts */
.multi-select-wrap {
    flex: 1;
    position: relative;
}

.multi-label {
    display: block;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #8b949e;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.multi-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 0;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.multi-dropdown.show {
    display: block;
}

.multi-dropdown label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #c9d1d9;
}

.multi-dropdown label:hover {
    background: #21262d;
}

.cmd-accounts {
    font-size: 0.75rem;
    color: #8b949e;
    margin-left: 4px;
}

/* Actions panel */
#actionsPanel {
    grid-column: 2;
    grid-row: 2;
}

.action-target label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 16px;
}

.action-target select {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.action-group h3 {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 12px;
}

.move-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.move-input {
    width: 60px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    padding: 6px 8px;
    font-size: 0.85rem;
    text-align: center;
}

.move-label {
    color: #8b949e;
    font-size: 0.85rem;
}

.direction-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dir-row {
    display: flex;
    gap: 4px;
}

.dir-btn {
    width: 90px;
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 8px;
}

.action-btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #30363d;
    }

    .sidebar-nav {
        display: flex;
        padding: 0;
    }

    .sidebar-nav li {
        flex: 1;
    }

    .nav-link {
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 8px;
    }

    .nav-link.active {
        border-left-color: transparent;
        border-bottom-color: #58a6ff;
    }

    main {
        grid-template-columns: 1fr;
    }

    #actionsPanel {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Viewer page */
.viewer-controls {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.viewer-controls label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: #8b949e;
}

.viewer-controls select {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.viewer-status-text {
    font-size: 0.85rem;
    color: #8b949e;
    padding-bottom: 8px;
}

.viewer-container {
    height: calc(100vh - 140px);
    background: #0d1117;
    position: relative;
}

.viewer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #484f58;
    font-size: 1rem;
}

.viewer-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* --- Store Tracking --- */
.store-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px 28px;
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #4caf50;
}

.stat-label {
    font-size: 13px;
    color: #8b949e;
    margin-top: 4px;
}

.store-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1100px) {
    .store-grid {
        grid-template-columns: 1fr;
    }

    .store-stats {
        flex-direction: column;
    }
}

.store-table {
    width: 100%;
    border-collapse: collapse;
}

.store-table thead th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: #8b949e;
    border-bottom: 1px solid #30363d;
}

.store-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #21262d;
    font-size: 13px;
}

.store-table tbody tr:hover {
    background: #161b22;
}

.money {
    color: #4caf50;
    font-weight: 600;
}

.rank-cell {
    font-size: 16px;
    font-weight: 700;
    width: 50px;
}

.rank-top3 td {
    font-size: 14px;
}

.rank-top3 .rank-cell {
    color: #ffd700;
}

.player-link {
    color: #58a6ff;
    text-decoration: none;
}

.player-link:hover {
    text-decoration: underline;
}

.source-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.source-discord {
    background: #5865f2;
    color: #fff;
}

.source-ingame {
    background: #2ea043;
    color: #fff;
}

.player-hidden td {
    background: rgba(255, 50, 50, 0.15) !important;
}

.hidden-badge {
    font-size: 0.65rem;
    background: #ff4444;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Terminal Popup */
.terminal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.terminal-popup {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    width: 620px;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #30363d;
    color: #58a6ff;
    font-weight: 600;
    font-size: 0.9rem;
}

.terminal-close-btn {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.terminal-close-btn:hover:not(:disabled) {
    color: #ff7b72;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    color: #7ee787;
    line-height: 1.6;
    min-height: 200px;
    max-height: 55vh;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
}

/* Navbar Task Progress Bar */
.nav-task-bar {
    margin: 8px 12px;
    padding: 8px 12px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.nav-task-bar:hover {
    background: #292e36;
}

.nav-task-label {
    font-size: 0.75rem;
    color: #8b949e;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-task-progress {
    height: 4px;
    background: #30363d;
    border-radius: 2px;
    overflow: hidden;
}

.nav-task-progress-bar {
    height: 100%;
    background: #58a6ff;
    border-radius: 2px;
    width: 0%;
    animation: taskPulse 2s ease-in-out infinite;
    transition: width 0.3s;
}

.nav-task-bar.done .nav-task-progress-bar {
    width: 100% !important;
    background: #7ee787;
    animation: none;
}

.nav-task-bar.done .nav-task-label {
    color: #7ee787;
}

@keyframes taskPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Manual Credit Row */
.manual-credit-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.manual-credit-row input[type="text"],
.manual-credit-row input[type="number"] {
    padding: 8px 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    font-size: 0.85rem;
}

.manual-credit-row input[type="text"] {
    width: 160px;
}

.manual-credit-row input[type="number"] {
    width: 120px;
}

.empty-cell {
    text-align: center;
    color: #484f58;
    padding: 24px !important;
}

.back-link {
    color: #58a6ff;
    text-decoration: none;
    margin-right: 12px;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.mc-head {
    border-radius: 4px;
    image-rendering: pixelated;
    vertical-align: middle;
    margin-right: 8px;
    width: 32px;
    height: 32px;
}

#playerDetail h2 {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

#playerDetail .money {
    margin-left: auto;
    font-size: 20px;
}

#storeMonth {
    background: #161b22;
    color: #e1e4e8;
    border: 1px solid #30363d;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* Store Tabs */
.store-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0;
}

.store-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.store-tab:hover {
    color: #e1e4e8;
}

.store-tab.active {
    color: #58a6ff;
    border-bottom-color: #58a6ff;
}

.store-tab-content {
    display: none;
}

.store-tab-content.active {
    display: block;
}

/* Catalog Controls */
.catalog-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.catalog-search {
    flex: 1;
    padding: 8px 14px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    font-size: 14px;
}

.catalog-search:focus {
    border-color: #58a6ff;
    outline: none;
}

.catalog-sort {
    padding: 8px 14px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    font-size: 13px;
}

/* Catalog Stats Row */
.catalog-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.catalog-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}

.catalog-card:hover {
    border-color: #58a6ff;
}

.catalog-card.never-bought {
    opacity: 0.65;
}

.catalog-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #e1e4e8;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #3fb950;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.catalog-price-edit-btn {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}

.catalog-card:hover .catalog-price-edit-btn {
    opacity: 1;
}

.catalog-price-edit-btn:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

.catalog-price-input {
    width: 90px;
    padding: 4px 8px;
    background: #0d1117;
    border: 1px solid #58a6ff;
    border-radius: 4px;
    color: #e1e4e8;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.catalog-price-input.input-error {
    border-color: #da3633;
}

.catalog-price-save-btn,
.catalog-price-cancel-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
}

.catalog-price-save-btn {
    color: #3fb950;
}

.catalog-price-save-btn:hover {
    background: rgba(63, 185, 80, 0.15);
}

.catalog-price-cancel-btn {
    color: #8b949e;
}

.catalog-price-cancel-btn:hover {
    color: #da3633;
    background: rgba(218, 54, 51, 0.1);
}

.unknown-price {
    color: #8b949e;
    font-size: 13px;
    font-weight: 400;
}

.catalog-card-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.catalog-stat {
    text-align: center;
    flex: 1;
}

.catalog-stat-val {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e1e4e8;
}

.catalog-stat-lbl {
    display: block;
    font-size: 10px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-bar-wrap {
    height: 4px;
    background: #21262d;
    border-radius: 2px;
    overflow: hidden;
}

.catalog-bar {
    height: 100%;
    background: #58a6ff;
    border-radius: 2px;
    transition: width 0.3s;
}

.catalog-empty {
    text-align: center;
    color: #8b949e;
    padding: 40px;
    grid-column: 1 / -1;
}