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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.collection-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collection-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.collection-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.collection-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #888;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 600;
    color: #ffffff;
}

.main-container {
    display: flex;
    height: calc(100vh - 60px - 50px); /* Учитываем высоту header и bottom panel */
    padding: 20px 20px 20px 20px; /* Убираем лишний нижний padding */
    gap: 20px;
}

.auto-snipe-sidebar {
    width: 320px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
}

.auto-snipe-sidebar::-webkit-scrollbar {
    width: 6px;
}

.auto-snipe-sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.auto-snipe-sidebar::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 3px;
}

.auto-snipe-sidebar::-webkit-scrollbar-thumb:hover {
    background: #45b7af;
}

.content-area {
    display: flex;
    flex: 1;
    gap: 20px;
    position: relative;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex;
}

/* Settings modal */
.settings-modal {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.settings-modal::-webkit-scrollbar {
    width: 6px;
}

.settings-modal::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.settings-modal::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 3px;
}

.modal-header {
    background: #2a2a2a;
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.modal-content {
    padding: 20px;
}

/* RPC Mode Toggle */
.rpc-mode-toggle {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.rpc-mode-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpc-mode-switch {
    display: flex;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 15px;
}

.rpc-mode-option {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.rpc-mode-option.active {
    background: #4ecdc4;
    color: #000;
}

.rpc-mode-option:not(.active) {
    color: #888;
}

.rpc-mode-option:not(.active):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Settings sections */
.settings-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setting-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.setting-input {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.setting-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.setting-textarea {
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    resize: vertical;
    min-height: 80px;
}

.setting-textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.modal-actions {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background: #4ecdc4;
    color: #000;
}

.modal-btn-primary:hover {
    background: #45b7af;
}

.modal-btn-secondary {
    background: #333;
    color: #ffffff;
}

.modal-btn-secondary:hover {
    background: #444;
}

/* Hide sidebar sections when in settings modal */
.settings-modal-open .auto-snipe-sidebar {
    opacity: 0.3;
    pointer-events: none;
}

/* Bottom Control Panel */
.bottom-control-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.control-panel-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.control-panel-left {
    display: flex;
    align-items: center;
}

.control-panel-right {
    display: flex;
    align-items: center;
}

/* Modern RPC Mode Selector */
.rpc-mode-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-label {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
}

.rpc-mode-dropdown {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    min-width: 120px;
    outline: none;
}

.rpc-mode-dropdown:hover {
    border-color: rgba(78, 205, 196, 0.6);
    box-shadow: 0 0 0 1px rgba(78, 205, 196, 0.2);
}

.rpc-mode-dropdown:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

.rpc-mode-dropdown option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px;
}

.rpc-mode-dropdown option:hover {
    background: #4ecdc4;
}

/* Modern Settings Button */
.modern-settings-button {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.modern-settings-button:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(78, 205, 196, 0.08) 100%);
    border-color: #4ecdc4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.25);
}

.modern-settings-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(78, 205, 196, 0.2);
}

.modern-settings-button svg {
    transition: transform 0.3s ease;
}

.modern-settings-button:hover svg {
    transform: rotate(90deg);
}

.listings-section {
    flex: 2;
    background: #0f0f0f;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.paused-indicator {
    display: none;
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.paused-indicator.show {
    display: inline;
}

.activity-section {
    flex: 1;
    background: #0f0f0f;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    background: #1a1a1a;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.panel-subtitle {
    font-size: 12px;
    color: #888;
}

.search-bar {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

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

.listings-container {
    flex: 1;
    overflow-y: auto;
}

.listing-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #222;
    transition: background-color 0.2s;
    position: relative;
    min-height: 52px;
}

.listing-item:hover {
    background: #1a1a1a;
}

.listing-item.buying {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    animation: buying-pulse 1.5s infinite;
}

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

.nft-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.nft-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.nft-details {
    flex: 1;
    min-width: 0;
}

.nft-id {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.nft-owner {
    font-size: 11px;
    color: #ffffff;
    font-weight: 500;
    margin-top: 1px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.last-sale {
    font-size: 10px;
    color: #4ecdc4;
    font-weight: 600;
    background: rgba(78, 205, 196, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.listing-price {
    font-size: 14px;
    font-weight: 600;
    color: #4ecdc4;
    margin-right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 120px;
}

.listing-price .source-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.listing-price .price-arrow {
    flex-shrink: 0;
    width: 12px;
    text-align: center;
    font-weight: bold;
    color: #4ecdc4;
}

.listing-price .price-value {
    flex: 1;
    text-align: left;
    min-width: 80px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.listing-time {
    font-size: 12px;
    color: #666;
    margin-right: 16px;
}

.buy-button {
    padding: 6px 12px;
    background: #4ecdc4;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-button:hover {
    background: #45b7af;
}

.buy-button:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.activity-container {
    flex: 1;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 500px;
}

.activity-table th {
    background: #1a1a1a;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    padding: 8px 4px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-table th:nth-child(1) { width: 80px; }  /* NFT */
.activity-table th:nth-child(2) { width: 60px; }  /* ACTION */
.activity-table th:nth-child(3) { width: 140px; } /* PRICE */
.activity-table th:nth-child(4) { width: 80px; }  /* TIME */
.activity-table th:nth-child(5) { width: 70px; }  /* SELR */
.activity-table th:nth-child(6) { width: 70px; }  /* BUYR */

.activity-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #222;
    vertical-align: middle;
    white-space: nowrap;
}

.activity-table td:nth-child(1) { width: 80px; }  /* NFT */
.activity-table td:nth-child(2) { width: 60px; }  /* ACTION */
.activity-table td:nth-child(3) { width: 140px; } /* PRICE */
.activity-table td:nth-child(4) { width: 80px; }  /* TIME */
.activity-table td:nth-child(5) { width: 70px; }  /* SELR */
.activity-table td:nth-child(6) { width: 70px; }  /* BUYR */

.activity-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.activity-nft-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.activity-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.activity-action-btn {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    cursor: default;
    min-width: 40px;
    text-align: center;
}

.activity-action-btn.buy {
    background: #4caf50;
    color: #fff;
}

.activity-action-btn.sell {
    background: #9c27b0;
    color: #fff;
}

.activity-action-btn.list {
    background: #dc2626;
    color: #fff;
}

.activity-action-btn.delist {
    background: #9e9e9e;
    color: #fff;
}

/* Activity Filters */
.activity-filters {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    background: rgba(0, 0, 0, 0.2);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #ccc;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.filter-checkbox .checkmark {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    border-color: transparent;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.filter-checkbox .checkmark.list {
    background: #dc2626;
}

.filter-checkbox .checkmark.delist {
    background: #9e9e9e;
}

.filter-checkbox .checkmark.buy {
    background: #4caf50;
}

.filter-checkbox .checkmark.sale {
    background: #9c27b0;
}

.filter-checkbox:hover .checkmark {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.activity-price {
    font-size: 11px;
    color: #ffffff;
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 120px;
    justify-content: flex-start;
}

.price-container .source-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.price-container .price-symbol {
    flex-shrink: 0;
    width: 8px;
    text-align: center;
    font-weight: bold;
    color: #4ecdc4;
}

.price-container .price-value {
    flex: 1;
    text-align: left;
    min-width: 50px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    margin-left: 2px;
}

.last-sale-activity {
    font-size: 9px;
    color: #4ecdc4;
    font-weight: 600;
    background: rgba(78, 205, 196, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    margin-left: 6px;
    white-space: nowrap;
}

/* Tiny rounded source markers */
.source-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset;
}
.source-dot.me {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #ff6b6b 30%, #c33 100%);
}
.source-dot.tensor {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #4ecdc4 30%, #2aa6a0 100%);
}

.source-dot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Wallet modal */
.wallet-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:2000}
.wallet-overlay.show{display:flex}
.wallet-modal{width:min(720px,95vw);max-height:min(80vh,720px);overflow:auto;background:#0f1430;border:1px solid #232c60;border-radius:18px;box-shadow:0 20px 70px rgba(0,0,0,.5)}
.wallet-modal-header{position:sticky;top:0;background:#0f1430;padding:16px 18px;border-bottom:1px solid #232c60;display:flex;align-items:center;justify-content:space-between}
.wallet-modal-title{font-size:16px;font-weight:600}
.wallet-modal-close{background:#1b2352;border:1px solid #2b3a8a;border-radius:10px;padding:8px 10px;cursor:pointer;color:#dbe5ff}
.wallet-modal-content{padding:12px 14px 18px}
.wallet-section{margin-top:12px}
.wallet-section h3{margin:8px 2px 10px;font-size:13px;font-weight:700;opacity:.8}
.wallet-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.wallet-tile{display:flex;align-items:center;gap:12px;border:1px solid #24306a;background:#121a3c;border-radius:14px;padding:10px;cursor:pointer;transition:transform .05s ease,border .15s ease,opacity .2s}
.wallet-tile:hover{transform:translateY(-1px);border-color:#3a4aa2}
.wallet-tile[aria-busy="true"]{opacity:.6;pointer-events:none}
.wallet-icon{width:40px;height:40px;border-radius:10px;background:#1a2250;display:grid;place-items:center;overflow:hidden;flex:0 0 auto}
.wallet-icon img{width:100%;height:100%;object-fit:contain}
.wallet-meta{display:flex;flex-direction:column;line-height:1.2}
.wallet-name{font-weight:700;font-size:14px}
.wallet-tag{font-size:11px;opacity:.7}
.wallet-empty{padding:10px;opacity:.8}

/* Whitelist gate overlay */
.whitelist-overlay{position:fixed;inset:0;background:rgba(0,0,0,.8);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;z-index:3000}
.whitelist-overlay.show{display:flex}
.whitelist-modal{width:min(500px,90vw);background:#0f1430;border:1px solid #232c60;border-radius:18px;box-shadow:0 20px 70px rgba(0,0,0,.5);text-align:center}
.whitelist-content{padding:40px 30px}
.whitelist-content h2{margin:0 0 16px;font-size:24px;color:#ff6b6b}
.whitelist-content p{margin:0 0 24px;opacity:.8;line-height:1.5}
.whitelist-connect-btn{appearance:none;border:0;border-radius:12px;padding:12px 24px;font-weight:700;cursor:pointer;background:#5b8cff;color:#fff;font-size:15px;transition:background .2s}
.whitelist-connect-btn:hover{background:#4a7bff}

.activity-time {
    font-size: 10px;
    color: #4ecdc4;
    font-weight: 500;
}

.activity-address {
    font-size: 11px;
    color: #ffffff;
    font-weight: 900;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    text-transform: uppercase;
}

.auto-snipe-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 2px solid #4ecdc4;
    padding: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.auto-snipe-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-snipe-title::before {
    content: "🎯";
    font-size: 18px;
}

.auto-snipe-levels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.jito-proxy-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 2px solid #9c27b0;
    padding: 20px;
    margin-top: 20px;
}

.jito-proxy-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jito-proxy-title::before {
    content: "🚀";
    font-size: 18px;
}

.jito-proxy-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proxy-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.proxy-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.proxy-stat-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.proxy-stat-value {
    font-size: 12px;
    color: #9c27b0;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.reload-proxies-btn {
    padding: 8px 12px;
    background: #9c27b0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reload-proxies-btn:hover {
    background: #7b1fa2;
}

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

.jito-settings-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 2px solid #ff9800;
    padding: 20px;
    margin-top: 20px;
}

.jito-settings-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jito-settings-title::before {
    content: "⚙️";
    font-size: 18px;
}

.jito-settings-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jito-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jito-control-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.jito-control-input {
    padding: 6px 8px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.jito-control-input:focus {
    outline: none;
    border-color: #ff9800;
}

.update-jito-settings-btn {
    padding: 8px 12px;
    background: #ff9800;
    color: #000000;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-jito-settings-btn:hover {
    background: #f57c00;
}

.update-jito-settings-btn:active {
    transform: scale(0.95);
}

.floor-sniper-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 2px solid #ff6b6b;
    padding: 20px;
    margin-top: 20px;
}

.floor-sniper-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floor-sniper-title::before {
    content: "🎯";
    font-size: 18px;
}

.floor-sniper-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floor-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.floor-control-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.floor-control-input {
    padding: 6px 8px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.floor-control-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.floor-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-top: 8px;
}

.floor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floor-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.floor-snipe-price {
    font-size: 12px;
    color: #4ecdc4;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.floor-toggle {
    position: relative;
    width: 40px;
    height: 20px;
}

.floor-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.floor-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    transition: 0.4s;
    border-radius: 20px;
    border: 2px solid #555;
}

.floor-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #666;
    transition: 0.4s;
    border-radius: 50%;
}

.floor-toggle input:checked + .floor-toggle-slider {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-color: #ff6b6b;
}

.floor-toggle input:checked + .floor-toggle-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.level-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.level-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4ecdc4;
}

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

.level-name {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.level-toggle {
    position: relative;
    width: 40px;
    height: 20px;
}

.level-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.level-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    transition: 0.4s;
    border-radius: 20px;
    border: 2px solid #555;
}

.level-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #666 0%, #888 100%);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.level-toggle input:checked + .level-toggle-slider {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7af 100%);
    border-color: #4ecdc4;
}

.level-toggle input:checked + .level-toggle-slider:before {
    transform: translateX(20px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.level-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.level-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.level-control-label {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.level-control-input {
    padding: 4px 6px;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    transition: all 0.3s ease;
}

.level-control-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.level-status {
    font-size: 10px;
    color: #888;
    text-align: center;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 6px;
}

.level-status.enabled {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.level-status.disabled {
    color: #888;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Красивый переключатель */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid #555;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #666 0%, #888 100%);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7af 100%);
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.1);
}

input:checked + .toggle-slider:hover {
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

.status-indicator {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.status-enabled {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7af 100%);
    color: #000;
    border-color: #4ecdc4;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.status-disabled {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #888;
    border-color: #555;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    max-width: 300px;
}

.notification.success {
    background: #4ecdc4;
    color: #000;
}

.notification.error {
    background: #ff6b6b;
    color: #ffffff;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.connected {
    background: #4ecdc4;
}

.status-dot.disconnected {
    background: #ff6b6b;
}

.status-dot.connecting {
    background: #ffa726;
    animation: pulse 1s infinite;
}

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

.wallet-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.wallet-balance {
    color: #4ecdc4;
    font-weight: 600;
}

.collection-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.refresh-btn:hover {
    background: #2a2a2a;
    color: #4ecdc4;
    border-color: #4ecdc4;
}

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

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #666;
}

.refresh-btn:disabled:hover {
    background: #1a1a1a;
    border-color: #333;
    color: #666;
}

.refresh-btn.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4ecdc4;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45b7af;
}

@media (max-width: 1200px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 16px 20px;
    }
    
    .header-left, .header-center, .header-right {
        width: 100%;
    }
    
    .global-stats {
        justify-content: center;
    }
    
    .left-panel {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        max-height: 300px;
    }
    
    .main-panel {
        flex: 1;
    }
    
    .level-container, .floor-sniper {
        padding: 12px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
    }
}
