html, body {
    background-color: #0f212e;
    color: #FFF;
}

#app {
    padding: 70px 10px 20px 10px;
}

.text-small,
.clients-list {
    font-size: 0.8rem;
}

.blur {
    filter: blur(5px);
}

.cursor-pointer {
    cursor: pointer;
}

#topbar {
    background-color: #213743;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 4px 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    font-size: 0.82rem;
}

.topbar-usd {
    color: #6c757d;
    font-size: 0.75em;
}

/* Bootstrap overwrites */
.table .thead-dark th {
    background-color: #213743;
    border-color: #1d303b;
    vertical-align: middle;
}

.table td, .table th {
    border-color: #1d303b;
    vertical-align: middle;
}

.dropdown-item {
    padding: .25rem 0.75rem;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* === Projections Panel === */
.projections-panel {
    background: #0f212e;
    border: 1px solid #1a3040;
    border-radius: 8px;
    overflow: hidden;
}
.projections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #1a2c3a;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e0e0e0;
    user-select: none;
}
.projections-toggle {
    font-size: 0.7rem;
    color: #adb5bd;
}
.projections-body {
    padding: 10px 14px 14px;
}
.proj-section {
    margin-bottom: 12px;
}
.proj-section:last-child {
    margin-bottom: 0;
}
.proj-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8899a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #1a3040;
}
.proj-grid {
    display: grid;
    gap: 8px;
}
.proj-grid-5 { grid-template-columns: repeat(5, 1fr); }
.proj-grid-4 { grid-template-columns: repeat(4, 1fr); }
.proj-cell {
    background: #1a2c3a;
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
}
.proj-label {
    font-size: 0.65rem;
    color: #8899a6;
    margin-bottom: 3px;
    white-space: nowrap;
}
.proj-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
}
.proj-table-wrap {
    overflow-x: auto;
}
.proj-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
}
.proj-table thead th {
    background: #1a2c3a;
    color: #8899a6;
    font-weight: 600;
    padding: 5px 8px;
    border-bottom: 1px solid #1a3040;
    white-space: nowrap;
}
.proj-table tbody td {
    padding: 5px 8px;
    border-bottom: 1px solid #0d1b27;
    color: #d0d0d0;
    white-space: nowrap;
}
.proj-table tbody tr:hover {
    background: #162636;
}
.proj-table .proj-highlight {
    background: #152535;
}
.proj-table .proj-highlight td {
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .proj-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .proj-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .proj-cell { padding: 6px 8px; }
    .proj-value { font-size: 0.75rem; }
}

/* Topbar Grid Layout */
.topbar-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 2px;
}

.topbar-item {
    padding: 1px 5px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.78rem;
    line-height: 1.4;
}

/* Responsive Column Hiding - hide on medium screens, show on wide screens */
@media (min-width: 769px) and (max-width: 1199px) {
    .col-hide-lg {
        display: none !important;
    }
}

.clients-list {
    white-space: nowrap;
    font-size: 0.73rem;
    table-layout: auto;
    width: 100%;
}

.clients-list th {
    font-size: 0.70rem;
    padding: 0.25rem 0.3rem !important;
}

.clients-list td {
    padding: 0.2rem 0.3rem !important;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clients-list tbody tr {
    transition: background-color 0.12s;
}
.clients-list tbody tr:hover {
    background-color: rgba(138, 180, 248, 0.08) !important;
}

/* Search and Sort Controls */
.search-box input {
    background-color: #213743;
    border: 1px solid #1d303b;
    color: #fff;
}

.search-box input:focus {
    background-color: #2c4152;
    border-color: #28a745;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.search-box input::placeholder {
    color: #adb5bd;
}

select.form-control {
    background-color: #213743;
    border: 1px solid #1d303b;
    color: #fff;
}

select.form-control:focus {
    background-color: #2c4152;
    border-color: #28a745;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

select.form-control option {
    background-color: #213743;
    color: #fff;
}

/* Desktop Pagination Styles */
.desktop-pagination {
    background-color: #1a2936;
    border: 1px solid #1d303b;
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 15px;
}

.pagination-info {
    font-size: 0.9rem;
}

.pagination .page-item .page-link {
    background-color: #213743;
    border-color: #1d303b;
    color: #adb5bd;
    padding: 0.375rem 0.75rem;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #2c4152;
    border-color: #28a745;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background-color: #1a2936;
    border-color: #1d303b;
    color: #6c757d;
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background-color: #1a2936;
    border-color: #1d303b;
    color: #6c757d;
}

@media (max-width: 768px) {
    .desktop-pagination {
        display: none !important;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .pagination .page-item .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ========== MOBILE CARD STYLES ========== */
@media (max-width: 768px) {
    #app {
        padding: 95px 10px 80px 10px;
    }
    
    #topbar {
        font-size: 0.7rem;
        padding: 5px 0;
    }
    
    #topbar .container-xl {
        padding: 0 8px;
    }

    .topbar-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 2px 6px;
    }

    .topbar-item {
        padding: 1px 4px;
        font-size: 0.68rem;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-hide-mobile {
        display: none !important;
    }

    .topbar-usd {
        display: none;
    }
    
    .table-responsive {
        display: none !important;
    }
    
    .mobile-cards {
        display: block !important;
        padding: 0;
        margin: 0;
    }
    
    .client-card {
        background-color: #213743;
        border: 1px solid #1d303b;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        position: relative;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        overflow: hidden;
    }
    
    .client-card.bust {
        border-left: 4px solid #dc3545;
        background-color: #2a1f20;
    }
    
    .client-card.disconnected {
        border-left: 4px solid #6c757d;
        background-color: #212529;
    }
    
    .client-card.paused {
        border-left: 4px solid #ffc107;
        background-color: #2a2520;
    }
    
    .client-card.active {
        border-left: 4px solid #28a745;
        background-color: #1f2a20;
    }
    
    .connection-indicator {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #28a745;
    }
    
    .connection-indicator.disconnected {
        background-color: #dc3545;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #1d303b;
    }
    
    .card-header .username {
        font-size: 1.1rem;
        font-weight: bold;
        margin: 0;
        color: #fff;
        max-width: 60%;
        word-break: break-all;
    }
    
    .status-badge {
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    .status-badge.ok {
        background-color: #28a745;
        color: white;
    }
    
    .status-badge.bust {
        background-color: #dc3545;
        color: white;
    }
    
    .vip-section {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        padding: 10px;
        background-color: #1a2936;
        border-radius: 6px;
    }
    
    .vip-info {
        text-align: center;
    }
    
    .vip-flag {
        font-size: 0.9rem;
        font-weight: bold;
        color: #ffc107;
    }
    
    .vip-progress {
        font-size: 0.8rem;
        color: #adb5bd;
    }
    
    .stage-info {
        text-align: center;
    }
    
    .stage-info div:first-child {
        font-size: 0.9rem;
        font-weight: bold;
    }
    
    .stage-info .text-muted {
        font-size: 0.75rem;
        color: #6c757d;
    }
    
    .balance-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .balance-item {
        padding: 10px;
        background-color: #1a2936;
        border-radius: 6px;
        text-align: center;
    }
    
    .balance-item.sufficient {
        background-color: #1f2a20;
        border: 1px solid #28a745;
    }
    
    .balance-item .label {
        font-size: 0.75rem;
        color: #adb5bd;
        margin-bottom: 5px;
    }
    
    .balance-item .value {
        font-size: 0.85rem;
        font-weight: bold;
        word-break: break-all;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .stat-item {
        padding: 8px;
        background-color: #1a2936;
        border-radius: 6px;
        text-align: center;
    }
    
    .stat-label {
        font-size: 0.7rem;
        color: #adb5bd;
        margin-bottom: 3px;
    }
    
    .stat-value {
        font-size: 0.8rem;
        font-weight: bold;
    }
    
    .additional-info {
        background-color: #1a2936;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border-bottom: 1px solid #0f212e;
        font-size: 0.75rem;
    }
    
    .info-item:last-child {
        border-bottom: none;
    }
    
    .info-item span:first-child {
        color: #adb5bd;
        min-width: 60px;
        flex-shrink: 0;
    }
    
    .info-item span:last-child {
        color: #fff;
        text-align: right;
        word-break: break-all;
        font-size: 0.65rem; /* 專門為IP地址設計的較小字體 */
        max-width: 60%;
        overflow-wrap: break-word;
    }
    
    .info-item.warning span:last-child {
        color: #ffc107;
    }
    
    .card-actions {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card-actions .btn {
        flex: 1;
        min-width: 40px;
        padding: 5px 8px;
        font-size: 0.7rem;
        border-radius: 4px;
    }
    
    /* 行動端分頁樣式 */
    .mobile-pagination {
        margin: 20px 0;
        padding: 15px;
        background-color: #1a2936;
        border-radius: 8px;
        border: 1px solid #1d303b;
    }
    
    .pagination-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .page-numbers {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-btn {
        background-color: #213743;
        border: 1px solid #1d303b;
        color: #adb5bd;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 35px;
    }
    
    .page-btn:hover {
        background-color: #2c4152;
        color: #fff;
    }
    
    .page-btn.active {
        background-color: #28a745;
        border-color: #28a745;
        color: #fff;
    }
    
    .page-ellipsis {
        color: #6c757d;
        padding: 5px 8px;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
    }
    
    .mobile-pagination-info {
        background-color: #1a2936;
        border-radius: 6px;
        padding: 8px;
        margin-bottom: 10px;
        border: 1px solid #1d303b;
    }

/* Missing / Offline Clients Banner — compact sleek design */
.missing-clients-banner {
    background: rgba(30, 30, 40, 0.85);
    border: 1px solid rgba(255, 160, 0, 0.35);
    border-left: 3px solid #ffa000;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 0;
    backdrop-filter: blur(8px);
}

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

.missing-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffa000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.missing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffa000;
    display: inline-block;
    animation: missingPulse 2s ease-in-out infinite;
}

@keyframes missingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.missing-banner-actions {
    display: flex;
    gap: 6px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #adb5bd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-danger:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b7a;
    border-color: rgba(220, 53, 69, 0.4);
}

.missing-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.missing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(255, 160, 0, 0.06);
    border: 1px solid rgba(255, 160, 0, 0.12);
    border-radius: 4px;
    transition: background 0.2s;
}

.missing-row:hover {
    background: rgba(255, 160, 0, 0.12);
}

.missing-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.missing-username {
    font-weight: 600;
    font-size: 0.82rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.missing-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffa000;
    background: rgba(255, 160, 0, 0.15);
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.missing-time {
    font-size: 0.72rem;
    color: #888;
    white-space: nowrap;
}

.missing-row-center {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 0 16px;
}

.missing-ip,
.missing-profit,
.missing-balance {
    font-size: 0.75rem;
    color: #bbb;
    white-space: nowrap;
}

.missing-row-right {
    flex-shrink: 0;
}

.btn-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    line-height: 1;
    transition: all 0.2s;
    padding: 0;
}

.btn-dismiss:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff6b7a;
}

@media (max-width: 768px) {
    .missing-row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 10px;
    }

    .missing-row-left {
        flex: 1 1 100%;
    }

    .missing-row-center {
        flex: 1 1 100%;
        padding: 0;
        gap: 8px;
    }

    .missing-row-right {
        position: absolute;
        right: 18px;
    }

    .missing-username {
        max-width: 150px;
    }
}
    
    /* Max LS 顯示樣式 */
    .max-ls-display {
        background-color: #213743;
        border: 1px solid #1d303b;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .max-ls-display .label {
        font-size: 0.8rem;
        color: #adb5bd;
        margin-bottom: 5px;
    }
    
    .max-ls-display .value {
        font-size: 1.2rem;
        font-weight: bold;
        color: #dc3545;
    }

    /* Mobile Profit Stats */
    .mobile-profit-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 10px 0 15px 0;
    }

    .profit-stat {
        background-color: #1a2936;
        border: 1px solid #1d303b;
        border-radius: 8px;
        padding: 12px;
        text-align: center;
    }

    .profit-stat .label {
        font-size: 0.75rem;
        color: #adb5bd;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .profit-stat .value {
        font-size: 0.9rem;
        font-weight: bold;
        color: #fff;
    }

    .profit-stat .usd-value {
        font-size: 0.75rem;
        color: #adb5bd;
        margin-top: 2px;
    }
}

/* Desktop max LS display */
@media (min-width: 769px) {
    .mobile-cards {
        display: none !important;
    }
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .mobile-btn-group {
        position: relative;
    }

    .mobile-btn-toggle {
        display: inline-block;
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
        background-color: #213743;
        border: 1px solid #1d303b;
        color: #fff;
        border-radius: 0.25rem;
        cursor: pointer;
    }

    .mobile-btn-dropdown {
        display: none;
        position: absolute;
        right: 0;
        top: 100%;
        background-color: #213743;
        border: 1px solid #1d303b;
        border-radius: 0.25rem;
        z-index: 1000;
        min-width: 180px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .mobile-btn-dropdown.show {
        display: block;
    }

    .mobile-btn-dropdown .btn {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        border: none;
        border-radius: 0;
        text-align: left;
        border-bottom: 1px solid #1d303b;
    }

    .mobile-btn-dropdown .btn:last-child {
        border-bottom: none;
    }

    .desktop-btn-group {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-btn-group {
        display: none;
    }

    .desktop-btn-group {
        display: block;
    }
}

/* Mobile Global Actions */
.mobile-global-actions {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-global-actions .mobile-btn-group {
    position: relative;
    z-index: 1500;
}

.mobile-global-actions .mobile-btn-toggle {
    display: inline-block;
    padding: 0.5rem;
    font-size: 1rem;
    background-color: #213743;
    border: 2px solid #1d303b;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.mobile-global-actions .mobile-btn-toggle:hover,
.mobile-global-actions .mobile-btn-toggle:focus {
    background-color: #2c4152;
    transform: scale(1.05);
    outline: none;
}

.mobile-global-actions .mobile-btn-dropdown {
    position: absolute;
    right: 0;
    bottom: 60px;
    background-color: #1a2936;
    border: 2px solid #0f212e;
    border-radius: 0.5rem;
    z-index: 3000;
    min-width: 200px;
    max-width: 240px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.9);
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: block;
    flex-direction: column;
}

/* Ensure dropdown stays within viewport */
@media (max-height: 600px) {
    .mobile-global-actions .mobile-btn-dropdown {
        bottom: auto;
        top: -200px;
    }
}

@media (max-height: 500px) {
    .mobile-global-actions .mobile-btn-dropdown {
        bottom: auto;
        top: -180px;
    }
}

.mobile-global-actions .mobile-btn-dropdown.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-global-actions .mobile-btn-dropdown .btn {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.8rem !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: left !important;
    border-bottom: 1px solid #1d303b !important;
    transition: background-color 0.2s ease !important;
    color: #fff !important;
    background-color: #213743 !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

.mobile-global-actions .mobile-btn-dropdown .btn:last-child {
    border-bottom: none !important;
}

.mobile-global-actions .mobile-btn-dropdown .btn:hover,
.mobile-global-actions .mobile-btn-dropdown .btn:focus {
    background-color: #2c4152 !important;
    outline: none !important;
    transform: translateX(2px) !important;
}

.mobile-global-actions .mobile-btn-dropdown .btn span {
    display: inline-block !important;
    width: 100% !important;
}

/* Scroll Navigation Buttons */
.scroll-buttons {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    background-color: #213743;
    border: 2px solid #1d303b;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    outline: none;
    opacity: 0.8;
}

.scroll-btn:hover,
.scroll-btn:focus {
    background-color: #2c4152;
    transform: scale(1.1);
    opacity: 1;
    outline: none;
}

.scroll-btn:active {
    transform: scale(0.95);
}

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

/* Mobile dropdown backdrop */
.mobile-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-dropdown-backdrop.show {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .mobile-global-actions,
    .scroll-buttons,
    .mobile-dropdown-backdrop {
        display: none;
    }
}

/* ===== Client Detail Modal ===== */
.detail-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 10px;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.detail-modal {
    background: #1a1d23;
    border: 1px solid #3d4149;
    border-radius: 14px;
    width: 100%;
    max-width: 960px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 1px rgba(255,255,255,0.1);
    animation: modalSlideIn 0.2s ease-out;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2d3139;
    gap: 8px;
    min-width: 0;
}
.detail-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.detail-title-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.detail-title-phase {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.detail-title-phase.phase-betting { background: #e53935; color: #fff; }
.detail-title-phase.phase-waiting { background: #37474f; color: #90a4ae; }
.detail-title-phase.phase-warmup { background: #f9a825; color: #1a1a1a; }
/* Phase badges in table */
.phase-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.phase-badge.phase-betting { background: #e53935; color: #fff; }
.phase-badge.phase-waiting { background: #37474f; color: #90a4ae; }
.phase-badge.phase-warmup { background: #f9a825; color: #1a1a1a; }
.detail-modal-close {
    background: #2d3139;
    border: 1px solid #3d4149;
    color: #aaa;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 2px 10px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.detail-modal-close:hover { color: #fff; background: #e53935; border-color: #e53935; }
.detail-modal-body {
    padding: 16px 20px 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.detail-section {
    margin-bottom: 20px;
}
.detail-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8ab4f8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid #262a32;
}
/* Signal Params */
.detail-params-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.param-card {
    background: #22262e;
    border: 1px solid #2d3139;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}
.param-card.param-hit {
    border-color: #43a047;
    background: rgba(67,160,71,0.1);
}
.param-card.param-summary {
    border-color: #8ab4f8;
    background: rgba(138,180,248,0.08);
}
.param-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.param-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e0e0e0;
}
.param-threshold {
    font-size: 0.6rem;
    color: #666;
    margin-top: 2px;
}
/* Stats Grid */
.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.detail-stats-narrow {
    grid-template-columns: repeat(3, 1fr);
}
.detail-stat {
    background: #22262e;
    border-radius: 6px;
    padding: 8px 10px;
}
.detail-stat-label {
    font-size: 0.62rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.detail-stat-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0e0e0;
    word-break: break-all;
}
/* Charts — unified VIP-style */

/* ===== HIGHLIGHT SUMMARY CARDS ===== */
.detail-highlight-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.highlight-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1e2e 0%, #161922 100%);
    border: 1px solid #2a2f40;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s;
}
.highlight-card:hover { border-color: #3b82f6; }
.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}
.highlight-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.highlight-label {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.highlight-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8eaed;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.highlight-sub {
    font-size: 0.58rem;
    color: #555;
    white-space: nowrap;
}

/* ===== LIMBO TICKER ===== */
.limbo-ticker {
    display: flex;
    flex-direction: row-reverse;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
    -webkit-overflow-scrolling: touch;
}
.limbo-ticker::-webkit-scrollbar { height: 4px; }
.limbo-ticker::-webkit-scrollbar-track { background: transparent; }
.limbo-ticker::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.limbo-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform 0.15s;
    cursor: default;
}
.limbo-result:hover { transform: scale(1.08); }
.limbo-odds {
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.limbo-gold {
    background: linear-gradient(135deg, rgba(255,193,7,0.2) 0%, rgba(255,152,0,0.15) 100%);
    border: 1px solid rgba(255,193,7,0.4);
}
.limbo-gold .limbo-odds { color: #ffd54f; }
.limbo-purple {
    background: linear-gradient(135deg, rgba(156,39,176,0.2) 0%, rgba(123,31,162,0.15) 100%);
    border: 1px solid rgba(156,39,176,0.35);
}
.limbo-purple .limbo-odds { color: #ce93d8; }
.limbo-green {
    background: linear-gradient(135deg, rgba(76,175,80,0.18) 0%, rgba(67,160,71,0.12) 100%);
    border: 1px solid rgba(76,175,80,0.3);
}
.limbo-green .limbo-odds { color: #81c784; }
.limbo-blue {
    background: linear-gradient(135deg, rgba(33,150,243,0.15) 0%, rgba(30,136,229,0.1) 100%);
    border: 1px solid rgba(33,150,243,0.25);
}
.limbo-blue .limbo-odds { color: #64b5f6; }
.limbo-low {
    background: rgba(50,55,65,0.4);
    border: 1px solid rgba(80,85,95,0.3);
}
.limbo-low .limbo-odds { color: #666; }

/* ===== BADGE MISS VARIANT ===== */
.badge-miss {
    background: rgba(239,68,68,0.1) !important;
    color: #ef5350 !important;
    border-color: rgba(239,68,68,0.25) !important;
}
.badge-label {
    font-size: 0.6rem;
    font-weight: 700;
}

/* Charts — unified VIP-style (main) */
.detail-chart-unified {
    background: #161922;
    border: 1px solid #252836;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    height: 320px;
}
.detail-chart-unified canvas {
    width: 100% !important;
    height: 100% !important;
}
.chart-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chart-mode-toggle {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}
.chart-mode-btn {
    padding: 3px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #22262e;
    color: #64748b;
    transition: all 0.15s;
}
.chart-mode-btn:hover { color: #e2e8f0; }
.chart-mode-btn.active { background: #3b82f6; color: #fff; }
.chart-current-value {
    margin-left: auto;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.text-profit { color: #22c55e; }
.text-loss { color: #ef4444; }
.text-balance { color: #3b82f6; }
/* Recent list */
.detail-recent-list { margin-top: 10px; }
.detail-list-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.badge-1000x { background: rgba(255,183,77,0.15); color: #ffb74d; border: 1px solid rgba(255,183,77,0.3); }
/* Recent Games */
.detail-recent-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 4px;
    max-height: 180px;
    overflow-y: auto;
}
.detail-game-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    background: #22262e;
}
.detail-game-row.game-win { background: rgba(67,160,71,0.12); }
.detail-game-row.game-miss { background: transparent; }
.game-num { color: #666; }
.game-result { font-weight: 600; color: #e0e0e0; }
.game-win .game-result { color: #66bb6a; }
/* Config grid */
.detail-config-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.config-item {
    background: #22262e;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
}
.config-label {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
}
.config-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cfd8dc;
}
/* Seed info display */
.config-item-wide {
    grid-column: span 4;
}
.seed-mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    word-break: break-all;
    letter-spacing: 0.3px;
    color: #80cbc4;
}
/* Mobile responsive for modal */
@media (max-width: 768px) {
    .detail-modal-overlay { padding: 10px 6px; }
    .detail-modal { border-radius: 10px; }
    .detail-modal-header { padding: 12px 14px; }
    .detail-title-name { font-size: 0.9rem; }
    .detail-modal-body { padding: 12px 14px 20px; }
    .detail-params-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-stats-narrow { grid-template-columns: repeat(2, 1fr); }
    .detail-chart-unified { height: 220px; }
    .detail-config-grid { grid-template-columns: repeat(2, 1fr); }
    .config-item-wide { grid-column: span 2; }
    .detail-recent-games { grid-template-columns: repeat(2, 1fr); }
    .detail-highlight-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .highlight-card { padding: 10px 10px; gap: 8px; }
    .highlight-icon { font-size: 1.2rem; width: 28px; height: 28px; }
    .highlight-value { font-size: 0.82rem; }
    .limbo-ticker { gap: 4px; }
    .limbo-result { min-width: 44px; height: 30px; }
    .limbo-odds { font-size: 0.65rem; }
}

/* ===== CONFIG EDITOR MODAL ===== */
.config-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.config-editor-modal {
    background: #1a1d29;
    border: 1px solid #252836;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.config-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #252836;
    color: #e2e8f0;
    font-size: 0.9rem;
}
.btn-close-config {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.btn-close-config:hover { color: #ef4444; background: rgba(239,68,68,0.1); }
.config-editor-body {
    padding: 16px 18px;
}
.config-editor-mode-toggle {
    display: flex;
    gap: 6px;
}
.config-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.config-editor-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.config-editor-field label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.config-editor-field-wide {
    grid-column: span 2;
}
.config-input {
    background: #252836;
    border: 1px solid #353849;
    border-radius: 6px;
    color: #e2e8f0;
    padding: 6px 10px;
    font-size: 0.82rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}
.config-input:focus {
    border-color: #3b82f6;
}
.config-input::-webkit-inner-spin-button { opacity: 0.5; }
.seed-mode-btns {
    display: flex;
    gap: 4px;
}
.seed-mode-btn {
    padding: 4px 10px;
    border: 1px solid #353849;
    border-radius: 6px;
    background: #252836;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.15s;
}
.seed-mode-btn:hover { border-color: #3b82f6; color: #e2e8f0; }
.seed-mode-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
.config-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid #252836;
}
.config-exclude-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.config-exclude-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #252836;
    border: 1px solid #353849;
    color: #94a3b8;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.15s;
}
.config-exclude-chip:has(input:checked) {
    background: #7f1d1d;
    border-color: #ef4444;
    color: #fca5a5;
}
.config-exclude-chip input { display: none; }
.config-editor-section { border-top: 1px solid #252836; padding-top: 10px; }

/* === Starting Balance Highlighted Row === */
.config-starting-balance-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #1a2744 0%, #162033 100%);
    border: 2px solid #3b82f6;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(59,130,246,0.15);
}
.config-sb-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.config-sb-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.config-sb-label {
    font-size: 0.72rem;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.config-sb-input {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    border-color: #3b82f6 !important;
    background: rgba(59,130,246,0.08) !important;
}
.config-sb-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 8px rgba(59,130,246,0.3);
}
.config-sb-scale {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
}
.config-sb-scale-label {
    font-size: 0.58rem;
    color: #666;
    text-transform: uppercase;
}
.config-sb-scale-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #60a5fa;
    font-variant-numeric: tabular-nums;
}

/* === Config Ratio Inline (under inputs) === */
.config-ratio {
    font-size: 0.6rem;
    color: #60a5fa;
    font-weight: 500;
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
}
.config-ratio-fixed {
    font-size: 0.6rem;
    color: #555;
    font-style: italic;
    margin-top: 1px;
}

/* === Config Ratio Preview Panel === */
.config-ratio-preview {
    margin-top: 10px;
    padding: 10px 14px;
    background: #0d1b27;
    border: 1px solid #1a3040;
    border-radius: 8px;
}
.config-ratio-title {
    font-size: 0.7rem;
    color: #8899a6;
    font-weight: 600;
    margin-bottom: 8px;
}
.config-ratio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.config-ratio-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.config-ratio-name {
    font-size: 0.58rem;
    color: #555;
    text-transform: uppercase;
}
.config-ratio-val {
    font-size: 0.68rem;
    color: #60a5fa;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .config-editor-modal { max-width: 100%; border-radius: 10px; }
    .config-editor-grid { grid-template-columns: 1fr; }
    .config-editor-field-wide { grid-column: span 1; }
    .seed-mode-btns { flex-wrap: wrap; }
    .config-ratio-grid { grid-template-columns: repeat(2, 1fr); }
    .config-starting-balance-row { flex-wrap: wrap; gap: 8px; }
}

/* Withdraw modal info rows */
.withdraw-info { display: flex; flex-direction: column; gap: 6px; }
.withdraw-info-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid #1e2030; }
.withdraw-info-row:last-child { border-bottom: none; }
.withdraw-label { font-size: 0.78rem; color: #94a3b8; }
.withdraw-value { font-size: 0.82rem; color: #e2e8f0; font-family: 'JetBrains Mono', monospace; }
.withdraw-max-row { background: rgba(34,197,94,0.08); border-radius: 6px; padding: 6px 8px; margin-top: 2px; }
.withdraw-max-row .withdraw-label { font-weight: 600; }

/* Session History Table */
.session-history-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #1a3040;
    border-radius: 6px;
}
.session-history-header {
    display: grid;
    grid-template-columns: 40px 60px 80px 65px 65px 70px 50px;
    gap: 4px;
    padding: 6px 8px;
    background: #0d1b27;
    border-bottom: 1px solid #1a3040;
    color: #8899a6;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1;
}
.session-history-row {
    display: grid;
    grid-template-columns: 40px 60px 80px 65px 65px 70px 50px;
    gap: 4px;
    padding: 5px 8px;
    border-bottom: 1px solid #111a24;
    transition: background 0.15s;
}
.session-history-row:hover { background: rgba(255,255,255,0.03); }
.session-history-row:last-child { border-bottom: none; }
.session-history-row.session-tp { background: rgba(34,197,94,0.04); }
.session-history-row.session-sl { background: rgba(239,68,68,0.04); }
.session-history-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .session-history-header,
    .session-history-row {
        grid-template-columns: 30px 50px 70px 55px 50px;
        font-size: 0.62rem;
    }
    .sh-col-wager, .sh-col-wr { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNCONFIGURED CLIENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.unconfigured-clients-alert {
    background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(245,158,11,0.03) 100%);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    padding: 14px 18px;
}
.unconfigured-clients-alert .alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.unconfigured-clients-alert .alert-title {
    font-weight: 700;
    color: #f59e0b;
    font-size: 0.9rem;
}
.unconfigured-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.unconfigured-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.unconfigured-client-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.15);
    cursor: pointer;
    transition: all 0.15s;
}
.unconfigured-client-card:hover {
    border-color: rgba(245,158,11,0.4);
    background: rgba(245,158,11,0.1);
}
.unconfigured-client-card.selected {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.15);
    box-shadow: 0 0 8px rgba(245,158,11,0.2);
}
.unconfigured-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f59e0b;
}
.unconfigured-info {
    flex: 1;
    min-width: 0;
}
.unconfigured-name {
    font-weight: 600;
    color: #f59e0b;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.unconfigured-ip {
    font-size: 0.7rem;
    color: #888;
}
.unconfigured-btn .btn-xs {
    font-size: 0.7rem;
    padding: 2px 8px;
}

/* Unconfigured row highlight in main table */
tr.unconfigured-row {
    background: rgba(245,158,11,0.06) !important;
    border-left: 3px solid #f59e0b;
}
tr.unconfigured-row:hover {
    background: rgba(245,158,11,0.12) !important;
}
tr.unconfigured-row td:first-child {
    position: relative;
}
tr.unconfigured-row td:first-child::before {
    content: '🔧';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
}

/* Credential modal extras */
.credential-modal {
    max-width: 640px;
}
.credential-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    padding: 6px 0 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 8px;
}
