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

    body {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      background: #0a0a0f;
      color: #e0e0e0;
      height: 100vh;
      overflow: hidden;
    }

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

    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 4px 8px;
      background: linear-gradient(135deg, #0a0a0a 0%, #1a1410 50%, #0a0a0a 100%);
      border-bottom: 1px solid rgba(212,164,76,0.25);
      color: #e0e0e0;
    }

    .header-left {
      text-align: left;
    }

    .header h1 {
      font-size: 15px;
      margin-bottom: 0;
    }

    .header p {
      font-size: 11px;
      opacity: 0.9;
    }

    /* Header wallet button */
    .header-wallet {
      position: relative;
    }

    .wallet-connect-btn {
      background: rgba(125,211,252,0.1);
      border: 1px solid rgba(125,211,252,0.3);
      color: #ffd700;
      padding: 3px 8px;
      border-radius: 3px;
      cursor: pointer;
      font-size: 13px;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .wallet-connect-btn:hover {
      background: rgba(125,211,252,0.2);
    }

    .wallet-connect-btn.connected {
      background: rgba(20, 241, 149, 0.3);
      border-color: #3fb950;
    }

    .wallet-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      margin-top: 3px;
      background: #1a1a2e;
      border: 1px solid rgba(212,164,76,0.25);
      border-radius: 3px;
      box-shadow: 2px 2px 10px rgba(0,0,0,0.6);
      min-width: 180px;
      z-index: 1000;
      display: none;
    }

    .wallet-dropdown.active {
      display: block;
    }

    .wallet-dropdown-header {
      padding: 5px 8px;
      background: #12121f;
      border-bottom: 1px solid rgba(212,164,76,0.25);
      font-weight: bold;
      color: #ffd700;
      font-size: 13px;
    }

    .wallet-dropdown-item {
      padding: 6px 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      color: #e0e0e0;
      font-size: 13px;
      border-bottom: 1px solid #1a1a2e;
    }

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

    .wallet-dropdown-item:hover {
      background: rgba(212,164,76,0.25);
    }

    .wallet-dropdown-item .icon {
      font-size: 15px;
    }

    .wallet-dropdown-item .label {
      flex: 1;
    }

    .wallet-dropdown-item .sublabel {
      font-size: 10px;
      color: #b0b0b0;
    }

    .wallet-dropdown-divider {
      height: 1px;
      background: rgba(212,164,76,0.25);
      margin: 4px 0;
    }

    .wallet-info {
      padding: 8px 12px;
      background: #12121f;
      border-bottom: 1px solid #1a1a2e;
    }

    .wallet-info-row {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      margin-bottom: 4px;
    }

    .wallet-info-row:last-child {
      margin-bottom: 0;
    }

    .wallet-info-label {
      color: #b0b0b0;
    }

    .wallet-info-value {
      color: #e0e0e0;
      font-weight: bold;
    }

    /* Toast notifications */
    .toast-container {
      position: fixed;
      top: 5px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      pointer-events: none;
    }

    .toast {
      background: #1a1a2e;
      border: 1px solid rgba(212,164,76,0.25);
      border-radius: 3px;
      padding: 5px 10px;
      box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      max-width: 250px;
      animation: slideDown 0.3s ease;
      pointer-events: auto;
    }

    .toast.success {
      border-color: #3fb950;
      background: #e8fff4;
    }

    .toast.error {
      border-color: #ff4444;
      background: #fff0f0;
    }

    .toast.info {
      border-color: #d4a44c;
      background: #f8f0ff;
    }

    .toast-icon {
      font-size: 16px;
    }

    .toast-content {
      flex: 1;
    }

    .toast-title {
      font-weight: bold;
      margin-bottom: 1px;
    }

    .toast-message {
      font-size: 11px;
      color: #b0b0b0;
    }

    .toast-close {
      cursor: pointer;
      opacity: 0.5;
      font-size: 15px;
    }

    .toast-close:hover {
      opacity: 1;
    }

    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }

    @keyframes slideDown {
      from { transform: translateY(-100%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    @keyframes slideOut {
      from { transform: translateY(0); opacity: 1; }
      to { transform: translateY(-100%); opacity: 0; }
    }

    /* Tabs */
    .tabs {
      display: flex;
      background: #0a0a0a;
      border-bottom: 1px solid rgba(212,164,76,0.25);
    }

    .tab {
      flex: 1;
      padding: 4px 6px;
      text-align: center;
      cursor: pointer;
      background: #0a0a0a;
      border: 1px solid #1a1a2e;
      border-bottom: none;
      margin-right: -1px;
      font-size: 13px;
      color: #b0b0c0;
      transition: all 0.2s;
    }

    .tab:hover {
      background: #1a1a2e;
      color: #ffd700;
    }

    .tab.active {
      background: #1a1a2e;
      border-bottom: 1px solid #ffd700;
      margin-bottom: -1px;
      font-weight: bold;
      color: #ffd700;
    }

    .tab-badge {
      background: #d4a44c;
      color: white;
      padding: 0px 4px;
      border-radius: 6px;
      font-size: 11px;
      margin-left: 2px;
    }

    /* Token list - Dark mode for better visibility */
    .token-feed {
      flex: 1;
      overflow-y: auto;
      background: #0d1117;
    }

    .token-card {
      padding: 6px 8px;
      border-bottom: 1px solid #21262d;
      cursor: pointer;
      transition: background 0.1s;
      background: #161b22;
      color: #e6edf3;
    }

    .token-card:hover {
      background: #1f2937;
    }

    .token-card.watched {
      background: #1a2332;
      border-left: 2px solid #ffd700;
    }

    /* 3-column grid for holdings/Mine tab - applied when display is grid (via JS) */
    #feed-holdings {
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      padding: 4px;
      align-content: start;
    }

    #feed-holdings .token-card {
      border-bottom: none;
      border-radius: 4px;
      border: 1px solid #21262d;
      height: fit-content;
    }

    #feed-holdings .empty-state {
      grid-column: 1 / -1;
    }

    /* Bonk token cards */
    .token-card.bonk-token {
      border-left: 3px solid #F7931A;
      background: linear-gradient(90deg, rgba(247, 147, 26, 0.05), transparent);
    }

    .token-card.bonk-token:hover {
      background: linear-gradient(90deg, rgba(247, 147, 26, 0.1), #1f2937);
    }

    .token-card.bonk-token .token-icon {
      box-shadow: 0 0 8px rgba(247, 147, 26, 0.3);
    }

    /* Security badges (GoPlus) */
    .security-badge {
      font-size: 11px;
      padding: 1px 4px;
      border-radius: 3px;
      font-weight: bold;
      margin-left: 4px;
      display: inline-block;
    }

    .security-badge.honeypot {
      background: #ff0000;
      color: white;
      animation: pulse-danger 1s infinite;
    }

    .security-badge.high-risk {
      background: #dc3545;
      color: white;
    }

    .security-badge.medium-risk {
      background: #ffc107;
      color: #000;
    }

    .security-badge.low-risk {
      background: #28a745;
      color: white;
    }

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

    .token-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 4px;
    }

    .token-name {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .token-icon {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
      font-size: 11px;
    }

    .token-symbol {
      font-weight: bold;
      font-size: 14px;
      color: #e6edf3;
    }

    .token-creator {
      font-size: 11px;
      color: #b0b0b0;
    }

    .token-time {
      font-size: 11px;
      color: #b0b0b0;
    }

    .token-stats {
      display: flex;
      gap: 10px;
      font-size: 11px;
      color: #c9d1d9;
    }

    .stat {
      display: flex;
      flex-direction: column;
    }

    .stat-label {
      color: #b0b0b0;
      font-size: 10px;
    }

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

    .stat-value.positive { color: #3fb950; }
    .stat-value.negative { color: #f85149; }

    .token-actions {
      display: flex;
      gap: 4px;
      margin-top: 4px;
    }

    .btn-small {
      padding: 2px 6px;
      font-size: 11px;
      border: 1px solid #30363d;
      background: #21262d;
      color: #c9d1d9;
      cursor: pointer;
      font-family: Tahoma;
    }

    .btn-small:hover {
      background: #30363d;
    }

    .btn-small.primary {
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
      color: white;
      border-color: rgba(212,164,76,0.25);
    }

    .btn-small.buy {
      background: linear-gradient(135deg, #14F195, #0ea874);
      color: white;
      border-color: #0ea874;
    }

    .btn-small.watched {
      background: #ffe066;
      border-color: #cc9900;
    }

    /* Sort buttons for Bonk tab */
    .sort-btn {
      padding: 3px 6px;
      font-size: 11px;
      border: 1px solid rgba(255,107,53,0.4);
      background: rgba(255,107,53,0.1);
      color: #c9d1d9;
      cursor: pointer;
      font-family: Tahoma;
      border-radius: 3px;
      transition: all 0.15s;
    }

    .sort-btn:hover {
      background: rgba(255,107,53,0.25);
      border-color: rgba(255,107,53,0.6);
    }

    .sort-btn.active {
      background: linear-gradient(90deg, #FF6B35, #F7931A);
      color: white;
      border-color: #FF6B35;
      font-weight: bold;
    }

    /* Quick buy buttons */
    .quick-buy-row {
      display: flex;
      gap: 3px;
      margin-top: 4px;
    }

    .quick-buy {
      flex: 1;
      padding: 5px 4px;
      font-size: 12px;
      font-weight: bold;
      border: 1px solid rgba(20, 241, 149, 0.4);
      background: rgba(20, 241, 149, 0.15);
      color: #14F195;
      cursor: pointer;
      font-family: 'JetBrains Mono', monospace;
      transition: transform 0.1s;
    }

    .quick-buy:hover {
      transform: scale(1.05);
      filter: brightness(1.1);
    }

    .quick-buy:active {
      transform: scale(0.95);
    }

    .quick-buy.buying {
      opacity: 0.6;
      pointer-events: none;
    }

    .quick-buy.bonk-buy {
      background: linear-gradient(135deg, #FF6B35, #F7931A);
      border-color: #F7931A;
    }

    /* Bonding curve progress */
    .curve-progress {
      margin-top: 4px;
    }

    .curve-bar {
      height: 3px;
      background: #12121f;
      border-radius: 2px;
      overflow: hidden;
    }

    .curve-fill {
      height: 100%;
      background: linear-gradient(90deg, #d4a44c, #ffd700);
      transition: width 0.3s;
    }

    .curve-text {
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: #b0b0b0;
      margin-top: 1px;
    }

    .curve-text .graduating {
      color: #d4a44c;
      font-weight: bold;
    }

    .graduation-badge {
      font-size: 16px;
      margin-left: 2px;
      animation: glow 1.5s ease-in-out infinite alternate;
    }

    @keyframes glow {
      from { filter: brightness(1); }
      to { filter: brightness(1.3) drop-shadow(0 0 3px gold); }
    }

    .curve-fill.graduated {
      background: linear-gradient(90deg, #FFD700, #FFA500);
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }

    .graduated-text {
      color: #FFD700;
      font-weight: bold;
      text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
    }

    /* PnL display */
    .pnl-display {
      font-size: 11px;
      margin-top: 2px;
    }

    .pnl-positive {
      color: #3fb950;
      font-weight: bold;
    }

    .pnl-negative {
      color: #ff4444;
      font-weight: bold;
    }

    /* Sound toggle */
    .sound-toggle {
      cursor: pointer;
      padding: 2px 6px;
      background: #12121f;
      border: 1px solid rgba(212,164,76,0.25);
      font-size: 14px;
    }

    .sound-toggle.active {
      background: #14F195;
      color: white;
    }

    /* Rug warning badges */
    .rug-warnings {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 4px;
    }

    .rug-badge {
      font-size: 10px;
      padding: 1px 4px;
      border-radius: 2px;
      font-weight: bold;
    }

    .rug-badge.danger {
      background: #ff4444;
      color: white;
    }

    .rug-badge.warning {
      background: #ffaa00;
      color: black;
    }

    .rug-badge.safe {
      background: #14F195;
      color: black;
    }

    /* Fast riser indicators */
    .pump-indicator {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      font-size: 10px;
      padding: 1px 4px;
      border-radius: 2px;
      font-weight: bold;
    }

    .pump-indicator.hot {
      background: linear-gradient(90deg, #ff6b35, #f7931a);
      color: white;
      animation: pulse-hot 1s infinite;
    }

    .pump-indicator.rising {
      background: #14F195;
      color: black;
    }

    .pump-indicator.falling {
      background: #ff4444;
      color: white;
    }

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

    /* Hot tokens section */
    .hot-section {
      background: linear-gradient(135deg, #1a1a2e, #16213e);
      border-bottom: 1px solid #ff6b35;
      padding: 5px;
    }

    .hot-title {
      color: #ff6b35;
      font-weight: bold;
      font-size: 11px;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 3px;
    }

    .hot-tokens {
      display: flex;
      gap: 5px;
      overflow-x: auto;
      padding-bottom: 3px;
    }

    .hot-token-card {
      flex-shrink: 0;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid #ff6b35;
      border-radius: 4px;
      padding: 5px;
      min-width: 90px;
      cursor: pointer;
    }

    .hot-token-card:hover {
      background: rgba(255, 107, 53, 0.2);
    }

    .hot-token-name {
      color: white;
      font-weight: bold;
      font-size: 13px;
    }

    .hot-token-gain {
      color: #3fb950;
      font-size: 13px;
      font-weight: bold;
    }

    .hot-token-mc {
      color: #b0b0b0;
      font-size: 10px;
    }

    /* Empty state */
    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: #b0b0b0;
      padding: 12px;
      text-align: center;
      background: #0d1117;
    }

    .empty-state .icon {
      font-size: 42px;
      margin-bottom: 8px;
    }

    /* Status bar */
    .status-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 10px;
      background: #0a0a0a;
      border-top: 2px solid;
      border-color: #808080 #ffffff #ffffff #808080;
      font-size: 14px;
    }

    .status-indicator {
      display: flex;
      align-items: center;
      gap: 6px;
    }

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

    .status-dot.connected {
      background: #14F195;
    }

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

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

    /* Trade feed for watched tokens */
    .trade-item {
      padding: 6px 12px;
      border-bottom: 1px solid #f0f0f0;
      font-size: 14px;
    }

    .trade-item.buy {
      background: #f0fff0;
    }

    .trade-item.sell {
      background: #fff0f0;
    }

    .trade-header {
      display: flex;
      justify-content: space-between;
    }

    .trade-type {
      font-weight: bold;
    }

    .trade-type.buy { color: #3fb950; }
    .trade-type.sell { color: #ff4444; }

    /* Loading spinner */
    .loading {
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 2px solid #f3f3f3;
      border-top: 2px solid #d4a44c;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

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

    /* Trade Modal */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      align-items: center;
      justify-content: center;
      z-index: 100;
    }

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

    .modal {
      background: #0a0a0a;
      border: 2px solid;
      border-color: #ffffff #404040 #404040 #ffffff;
      width: 260px;
      max-height: 90%;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 3px 6px;
      background: #1a1a1a; color: #e8e8e8; border: 1px solid rgba(212,164,76,0.4);
      color: white;
      font-size: 14px;
    }

    .modal-close {
      background: #0a0a0a;
      border: 2px solid;
      border-color: #ffffff #404040 #404040 #ffffff;
      width: 16px;
      height: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .modal-body {
      padding: 10px;
    }

    .trade-tabs {
      display: flex;
      margin-bottom: 8px;
    }

    .trade-tab {
      flex: 1;
      padding: 5px;
      text-align: center;
      cursor: pointer;
      background: #12121f;
      border: 1px solid rgba(212,164,76,0.25);
      font-size: 13px;
    }

    .trade-tab.active.buy-tab {
      background: #14F195;
      color: white;
    }

    .trade-tab.active.sell-tab {
      background: #ff4444;
      color: white;
    }

    .trade-input-group {
      margin-bottom: 8px;
    }

    .trade-input-group label {
      display: block;
      margin-bottom: 3px;
      color: #444;
      font-size: 13px;
    }

    .trade-input-group input {
      width: 100%;
      padding: 5px;
      border: 2px solid;
      border-color: #404040 #ffffff #ffffff #404040;
      font-family: monospace;
      font-size: 15px;
    }

    .trade-input-group .balance {
      font-size: 11px;
      color: #b0b0b0;
      margin-top: 3px;
    }

    .trade-quote {
      background: #f8f8ff;
      border: 1px solid #d0d0ff;
      padding: 6px;
      margin-bottom: 8px;
      font-size: 11px;
    }

    .quote-row {
      display: flex;
      justify-content: space-between;
      padding: 2px 0;
    }

    .quote-row.total {
      font-weight: bold;
      border-top: 1px solid #d0d0ff;
      margin-top: 4px;
      padding-top: 4px;
    }

    .btn {
      width: 100%;
      padding: 6px;
      border: 2px solid;
      border-color: #ffffff #404040 #404040 #ffffff;
      font-family: Tahoma;
      font-size: 14px;
      cursor: pointer;
      font-weight: bold;
    }

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

    .btn.buy-btn {
      background: linear-gradient(135deg, #14F195, #0ea874);
      color: white;
    }

    .btn.sell-btn {
      background: linear-gradient(135deg, #ff4444, #cc0000);
      color: white;
    }

    .wallet-warning {
      background: #fff3cd;
      border: 1px solid #ffc107;
      padding: 10px;
      text-align: center;
      margin-bottom: 12px;
      font-size: 14px;
    }

    .wallet-warning button {
      margin-top: 8px;
      padding: 6px 16px;
      background: #d4a44c;
      color: white;
      border: none;
      cursor: pointer;
      font-family: Tahoma;
    }

    .tx-status {
      text-align: center;
      padding: 20px;
    }

    .tx-status.success {
      color: #3fb950;
    }

    .tx-status.error {
      color: #ff4444;
    }

    .tx-link {
      display: block;
      margin-top: 8px;
      font-size: 14px;
      color: #d4a44c;
    }

    /* Expandable chart section */
    .token-expand {
      display: none;
      margin-top: 6px;
      padding-top: 6px;
      border-top: 1px dashed #ccc;
    }

    .token-expand.active {
      display: block;
    }

    .expand-panels {
      display: flex;
      gap: 5px;
      height: 320px;
    }

    .expand-panel {
      flex: 1;
      border: 1px solid rgba(212,164,76,0.25);
      border-radius: 3px;
      overflow: hidden;
      background: #fafafa;
      position: relative;
    }

    .expand-panel-header {
      background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
      padding: 2px 5px;
      font-size: 10px;
      font-weight: bold;
      color: #b0b0b0;
      border-bottom: 1px solid rgba(212,164,76,0.25);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .expand-panel iframe {
      width: 100%;
      height: calc(100% - 18px);
      border: none;
    }

    .expand-panel-loading {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #b0b0b0;
      font-size: 11px;
    }

    .expand-toggle {
      cursor: pointer;
      color: #d4a44c;
      font-size: 11px;
      padding: 1px 4px;
      margin-left: 4px;
    }

    .expand-toggle:hover {
      text-decoration: underline;
    }

    .token-header-clickable {
      cursor: pointer;
    }

    .token-header-clickable:hover .token-symbol {
      color: #d4a44c;
    }

    /* Sniper Mode */
    .sniper-toggle {
      cursor: pointer;
      padding: 2px 8px;
      background: #12121f;
      border: 1px solid rgba(212,164,76,0.25);
      font-size: 14px;
      font-weight: bold;
    }

    .sniper-toggle.active {
      background: linear-gradient(135deg, #ff4444, #ff6b35);
      color: white;
      border-color: #ff4444;
      animation: sniper-pulse 1s infinite;
    }

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

    .sniper-panel {
      display: none;
      background: linear-gradient(135deg, #1a1a2e, #16213e);
      border: 2px solid #ff4444;
      border-radius: 4px;
      padding: 12px;
      margin: 8px;
      color: white;
    }

    .sniper-panel.active {
      display: block;
    }

    .sniper-panel h3 {
      margin: 0 0 10px 0;
      font-size: 16px;
      color: #ff6b35;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .sniper-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .sniper-row label {
      color: #aaa;
    }

    .sniper-row input, .sniper-row select {
      background: #0a0a0a;
      border: 1px solid #444;
      color: white;
      padding: 4px 8px;
      font-size: 14px;
      width: 100px;
    }

    .sniper-row input:focus, .sniper-row select:focus {
      border-color: #ff6b35;
      outline: none;
    }

    .sniper-amounts {
      display: flex;
      gap: 4px;
      margin-top: 8px;
    }

    .sniper-amount {
      flex: 1;
      padding: 6px;
      background: #0a0a0a;
      border: 1px solid #444;
      color: white;
      cursor: pointer;
      font-size: 14px;
      text-align: center;
    }

    .sniper-amount.selected {
      background: linear-gradient(135deg, #ff4444, #ff6b35);
      border-color: #ff6b35;
    }

    .sniper-log {
      max-height: 100px;
      overflow-y: auto;
      background: #0a0a0a;
      border: 1px solid #333;
      padding: 6px;
      margin-top: 8px;
      font-size: 13px;
      font-family: monospace;
    }

    .sniper-log-entry {
      padding: 2px 0;
      border-bottom: 1px solid #222;
    }

    .sniper-log-entry.success {
      color: #3fb950;
    }

    .sniper-log-entry.skip {
      color: #b0b0b0;
    }

    .sniper-log-entry.error {
      color: #ff4444;
    }

    .sniper-stats {
      display: flex;
      gap: 12px;
      margin-top: 8px;
      font-size: 13px;
      color: #b0b0b0;
    }

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

    .sniper-stat-value {
      font-size: 18px;
      font-weight: bold;
      color: #ff6b35;
    }

    /* Trading Wallet Section */
    .wallet-mode-section {
      background: linear-gradient(135deg, #0d1117, #161b22);
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 16px;
    }

    .wallet-mode-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #30363d;
    }

    .wallet-mode-header h3 {
      margin: 0;
      font-size: 18px;
      color: #f0f6fc;
      flex: 1;
    }

    .wallet-mode-badge {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: bold;
      text-transform: uppercase;
    }

    .wallet-mode-badge.auto {
      background: linear-gradient(135deg, #238636, #2ea043);
      color: white;
    }

    .wallet-mode-badge.manual {
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
      color: white;
    }

    .wallet-comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 16px;
    }

    .wallet-option {
      background: #21262d;
      border: 2px solid #30363d;
      border-radius: 8px;
      padding: 12px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .wallet-option:hover {
      border-color: #58a6ff;
    }

    .wallet-option.selected {
      border-color: #3fb950;
      background: rgba(20, 241, 149, 0.08);
    }

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

    .wallet-option-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .wallet-option-icon {
      font-size: 26px;
    }

    .wallet-option-title {
      font-size: 15px;
      font-weight: bold;
      color: #f0f6fc;
    }

    .wallet-option-desc {
      font-size: 13px;
      color: #b0b0b0;
      line-height: 1.4;
    }

    .wallet-option-status {
      margin-top: 8px;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 13px;
      font-weight: bold;
      text-align: center;
    }

    .wallet-option-status.connected {
      background: rgba(20, 241, 149, 0.2);
      color: #3fb950;
    }

    .wallet-option-status.not-connected {
      background: rgba(139, 148, 158, 0.2);
      color: #b0b0b0;
    }

    .trading-wallet-setup {
      background: #21262d;
      border-radius: 8px;
      padding: 16px;
    }

    .trading-wallet-balance {
      text-align: center;
      padding: 16px;
      background: linear-gradient(135deg, rgba(20, 241, 149, 0.1), rgba(153, 69, 255, 0.1));
      border-radius: 8px;
      margin-bottom: 12px;
    }

    .trading-wallet-balance-amount {
      font-size: 32px;
      font-weight: bold;
      color: #3fb950;
      margin-bottom: 4px;
    }

    .trading-wallet-balance-label {
      font-size: 14px;
      color: #b0b0b0;
    }

    .trading-wallet-address {
      font-family: monospace;
      font-size: 15px;
      color: #58a6ff;
      background: #0d1117;
      padding: 10px;
      border-radius: 6px;
      text-align: center;
      word-break: break-all;
      margin-bottom: 12px;
      cursor: pointer;
      border: 1px solid #30363d;
      transition: all 0.2s;
    }

    .trading-wallet-address:hover {
      border-color: #58a6ff;
      background: #161b22;
    }

    .wallet-btn-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-bottom: 12px;
    }

    .wallet-btn {
      padding: 10px 8px;
      font-size: 13px;
      font-weight: bold;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .wallet-btn-icon {
      font-size: 21px;
    }

    .wallet-btn.primary {
      background: linear-gradient(135deg, #238636, #2ea043);
      color: white;
    }

    .wallet-btn.secondary {
      background: #21262d;
      color: #c9d1d9;
      border: 1px solid #30363d;
    }

    .wallet-btn.danger {
      background: #21262d;
      color: #f85149;
      border: 1px solid #f8514922;
    }

    .wallet-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

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

    .wallet-empty-state {
      text-align: center;
      padding: 24px;
    }

    .wallet-empty-icon {
      font-size: 53px;
      margin-bottom: 12px;
    }

    .wallet-empty-title {
      font-size: 17px;
      font-weight: bold;
      color: #f0f6fc;
      margin-bottom: 6px;
    }

    .wallet-empty-desc {
      font-size: 14px;
      color: #b0b0b0;
      margin-bottom: 16px;
      line-height: 1.5;
    }

    .wallet-create-btns {
      display: flex;
      gap: 10px;
      justify-content: center;
    }

    .wallet-create-btn {
      padding: 12px 20px;
      font-size: 15px;
      font-weight: bold;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .wallet-create-btn.primary {
      background: linear-gradient(135deg, #238636, #2ea043);
      color: white;
    }

    .wallet-create-btn.secondary {
      background: #21262d;
      color: #c9d1d9;
      border: 1px solid #30363d;
    }

    .wallet-create-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }

    .wallet-info-banner {
      background: rgba(56, 139, 253, 0.1);
      border: 1px solid rgba(56, 139, 253, 0.4);
      border-radius: 6px;
      padding: 10px 12px;
      margin-top: 12px;
      font-size: 13px;
      color: #58a6ff;
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }

    .wallet-info-banner.warning {
      background: rgba(210, 153, 34, 0.1);
      border-color: rgba(210, 153, 34, 0.4);
      color: #d29922;
    }

    .burner-warning {
      font-size: 11px;
      color: #ff9900;
      text-align: center;
      margin-top: 8px;
      padding: 6px;
      background: rgba(255, 153, 0, 0.1);
      border-radius: 3px;
    }

    /* Whale Alerts */
    .whale-toggle {
      cursor: pointer;
      padding: 2px 8px;
      background: #12121f;
      border: 1px solid rgba(212,164,76,0.25);
      font-size: 14px;
      font-weight: bold;
    }

    .whale-toggle.active {
      background: linear-gradient(135deg, #0066cc, #00ccff);
      color: white;
      border-color: #0066cc;
    }

    .whale-panel {
      display: none;
      background: linear-gradient(135deg, #0a1628, #0d2137);
      border: 2px solid #00ccff;
      border-radius: 4px;
      padding: 12px;
      margin: 8px;
      color: white;
    }

    .whale-panel.active {
      display: block;
    }

    .whale-panel h3 {
      margin: 0 0 10px 0;
      font-size: 16px;
      color: #00ccff;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .whale-input-row {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
    }

    .whale-input-row input {
      flex: 1;
      background: #0a0a0a;
      border: 1px solid #444;
      color: white;
      padding: 6px 8px;
      font-size: 14px;
      font-family: monospace;
    }

    .whale-input-row input::placeholder {
      color: #b0b0b0;
    }

    .whale-input-row button {
      padding: 6px 12px;
      background: linear-gradient(135deg, #00ccff, #0066cc);
      border: none;
      color: white;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
    }

    .whale-list {
      max-height: 120px;
      overflow-y: auto;
      background: #0a0a0a;
      border: 1px solid #333;
      padding: 6px;
      margin-top: 8px;
    }

    .whale-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 4px 0;
      border-bottom: 1px solid #222;
      font-size: 14px;
    }

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

    .whale-item-name {
      color: #00ccff;
      font-weight: bold;
    }

    .whale-item-address {
      color: #b0b0b0;
      font-family: monospace;
      font-size: 13px;
    }

    .whale-item-remove {
      background: none;
      border: none;
      color: #ff4444;
      cursor: pointer;
      font-size: 16px;
      padding: 0 4px;
    }

    .whale-alert {
      background: linear-gradient(135deg, #0a1628, #1a3a5c);
      border: 2px solid #00ccff;
      border-radius: 6px;
      padding: 10px 12px;
      margin-bottom: 8px;
      animation: whale-pulse 2s infinite;
    }

    @keyframes whale-pulse {
      0%, 100% { border-color: #00ccff; }
      50% { border-color: #00ffff; box-shadow: 0 0 10px rgba(0, 204, 255, 0.5); }
    }

    .whale-alert-header {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
    }

    .whale-alert-icon {
      font-size: 21px;
    }

    .whale-alert-name {
      color: #00ccff;
      font-weight: bold;
    }

    .whale-alert-action {
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 13px;
      font-weight: bold;
    }

    .whale-alert-action.buy {
      background: #14F195;
      color: black;
    }

    .whale-alert-action.sell {
      background: #ff4444;
      color: white;
    }

    .whale-alert-details {
      font-size: 14px;
      color: #aaa;
    }

    .whale-alert-token {
      color: white;
      font-weight: bold;
    }

    .whale-feed {
      max-height: 200px;
      overflow-y: auto;
    }

    /* Copy Trading */
    .copy-trade-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px;
      background: rgba(0, 204, 255, 0.1);
      border: 1px solid #00ccff;
      border-radius: 4px;
      margin-top: 10px;
    }

    .copy-toggle {
      padding: 4px 12px;
      background: #333;
      border: 1px solid #555;
      color: #b0b0b0;
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
    }

    .copy-toggle.active {
      background: linear-gradient(135deg, #00cc66, #00ff88);
      border-color: #00cc66;
      color: black;
    }

    .copy-amount-select {
      background: #0a0a0a;
      border: 1px solid #444;
      color: white;
      padding: 4px 8px;
      font-size: 14px;
    }

    .whale-item-copy {
      font-size: 13px;
      padding: 2px 6px;
      background: #333;
      border: 1px solid #555;
      color: #b0b0b0;
      cursor: pointer;
      margin-right: 4px;
    }

    .whale-item-copy.active {
      background: #00cc66;
      border-color: #00cc66;
      color: black;
    }

    /* Auto TP/SL Panel */
    .auto-trade-toggle {
      cursor: pointer;
      padding: 2px 8px;
      background: #12121f;
      border: 1px solid rgba(212,164,76,0.25);
      font-size: 14px;
      font-weight: bold;
    }

    .auto-trade-toggle.active {
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
      color: black;
      border-color: #f0b429;
    }

    .auto-trade-panel {
      display: none;
      background: linear-gradient(135deg, #1a1a0a, #2a2a1a);
      border: 2px solid #ffd700;
      border-radius: 4px;
      padding: 12px;
      margin: 8px;
      color: white;
    }

    .auto-trade-panel.active {
      display: block;
    }

    .auto-trade-panel h3 {
      margin: 0 0 10px 0;
      font-size: 16px;
      color: #f0b429;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .auto-trade-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .auto-trade-row label {
      color: #aaa;
    }

    .auto-trade-row input {
      background: #0a0a0a;
      border: 1px solid #444;
      color: white;
      padding: 4px 8px;
      font-size: 14px;
      width: 80px;
      text-align: right;
    }

    .auto-trade-indicator {
      display: inline-block;
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 11px;
      font-weight: bold;
      margin-left: 4px;
    }

    .auto-trade-indicator.tp {
      background: #14F195;
      color: black;
    }

    .auto-trade-indicator.sl {
      background: #ff4444;
      color: white;
    }

    /* Token Search */
    .search-bar {
      display: flex;
      padding: 6px 10px;
      background: #12121f;
      border-bottom: 1px solid rgba(212,164,76,0.25);
      gap: 6px;
    }

    .search-input {
      flex: 1;
      padding: 6px 10px;
      border: 2px solid;
      border-color: #404040 #ffffff #ffffff #404040;
      font-size: 15px;
      font-family: Tahoma;
    }

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

    .search-btn {
      padding: 6px 12px;
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
      color: white;
      border: 1px solid rgba(212,164,76,0.25);
      cursor: pointer;
      font-size: 14px;
      font-weight: bold;
    }

    .search-results {
      background: #1a1a2e;
      border: 1px solid rgba(212,164,76,0.25);
      max-height: 200px;
      overflow-y: auto;
      position: absolute;
      left: 10px;
      right: 10px;
      z-index: 50;
      display: none;
    }

    .search-results.active {
      display: block;
    }

    .search-result-item {
      padding: 8px 10px;
      border-bottom: 1px solid #e0e0e0;
      cursor: pointer;
      font-size: 15px;
    }

    .search-result-item:hover {
      background: #f0f0ff;
    }

    .search-result-item .symbol {
      font-weight: bold;
      color: #d4a44c;
    }

    .search-result-item .name {
      color: #b0b0b0;
      font-size: 14px;
    }

    /* Volume & Momentum Indicators */
    .volume-indicator {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 13px;
      padding: 2px 5px;
      border-radius: 3px;
      background: #12121f;
    }

    .volume-indicator.high {
      background: linear-gradient(90deg, #14F195, #0ea874);
      color: white;
    }

    .volume-indicator.medium {
      background: #ffe066;
      color: black;
    }

    .volume-indicator.low {
      background: #12121f;
      color: #b0b0b0;
    }

    .momentum-bar {
      display: flex;
      height: 4px;
      background: #12121f;
      border-radius: 2px;
      overflow: hidden;
      margin-top: 4px;
    }

    .momentum-buy {
      background: #14F195;
      transition: width 0.3s;
    }

    .momentum-sell {
      background: #ff4444;
      transition: width 0.3s;
    }

    /* Trade History Panel */
    .history-toggle {
      cursor: pointer;
      padding: 2px 8px;
      background: #12121f;
      border: 1px solid rgba(212,164,76,0.25);
      font-size: 14px;
      font-weight: bold;
    }

    .history-toggle.active {
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
      color: white;
      border-color: #d4a44c;
    }

    .history-panel {
      display: none;
      background: linear-gradient(135deg, #1a0a2e, #2a1a3e);
      border: 2px solid #d4a44c;
      border-radius: 4px;
      padding: 12px;
      margin: 8px;
      color: white;
    }

    .history-panel.active {
      display: block;
    }

    .history-panel h3 {
      margin: 0 0 10px 0;
      font-size: 16px;
      color: #d4a44c;
    }

    .history-summary {
      display: flex;
      gap: 16px;
      padding: 8px;
      background: rgba(153, 69, 255, 0.1);
      border-radius: 4px;
      margin-bottom: 10px;
    }

    .history-stat {
      text-align: center;
    }

    .history-stat-value {
      font-size: 21px;
      font-weight: bold;
    }

    .history-stat-value.positive { color: #3fb950; }
    .history-stat-value.negative { color: #ff4444; }

    .history-stat-label {
      font-size: 13px;
      color: #b0b0b0;
    }

    .history-list {
      max-height: 150px;
      overflow-y: auto;
    }

    .history-item {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      border-bottom: 1px solid #333;
      font-size: 14px;
    }

    .history-item.buy { border-left: 3px solid #14F195; padding-left: 8px; }
    .history-item.sell { border-left: 3px solid #ff4444; padding-left: 8px; }

    /* Detective Panel */
    .detective-indicator {
      background: rgba(0,0,0,0.3);
      border-radius: 6px;
      padding: 10px;
      text-align: center;
      border: 1px solid #333;
      transition: all 0.3s;
    }

    .detective-indicator.warning {
      border-color: #f0b429;
      background: rgba(240,180,41,0.1);
    }

    .detective-indicator.danger {
      border-color: #ff4444;
      background: rgba(255,68,68,0.1);
    }

    .detective-indicator.safe {
      border-color: #3fb950;
      background: rgba(63,185,80,0.1);
    }

    .indicator-icon {
      font-size: 24px;
      margin-bottom: 4px;
    }

    .indicator-label {
      font-size: 13px;
      color: #b0b0b0;
      margin-bottom: 2px;
    }

    .indicator-value {
      font-size: 18px;
      font-weight: bold;
      color: #fff;
    }

    .holder-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px;
      border-bottom: 1px solid #333;
      font-size: 14px;
    }

    .holder-row:hover {
      background: rgba(255,107,157,0.1);
    }

    .holder-address {
      font-family: monospace;
      color: #c9d1d9;
    }

    .holder-badges {
      display: flex;
      gap: 4px;
    }

    .holder-badge {
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 11px;
      font-weight: bold;
    }

    .holder-badge.fresh { background: #ff4444; color: white; }
    .holder-badge.whale { background: #00ccff; color: black; }
    .holder-badge.linked { background: #d4a44c; color: white; }
    .holder-badge.creator { background: #f0b429; color: black; }

    .cluster-box {
      background: rgba(153,69,255,0.1);
      border: 1px solid #d4a44c;
      border-radius: 6px;
      padding: 10px;
      margin-bottom: 8px;
    }

    .cluster-title {
      font-size: 15px;
      font-weight: bold;
      color: #d4a44c;
      margin-bottom: 6px;
    }

    .cluster-wallets {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }

    .cluster-wallet {
      font-family: monospace;
      font-size: 13px;
      background: rgba(0,0,0,0.3);
      padding: 2px 6px;
      border-radius: 3px;
      color: #c9d1d9;
    }

    .funding-chain {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
      padding: 8px;
      background: rgba(0,0,0,0.2);
      border-radius: 4px;
      margin-bottom: 4px;
    }

    .funding-hop {
      font-family: monospace;
      font-size: 13px;
      background: #333;
      padding: 2px 6px;
      border-radius: 3px;
      color: #c9d1d9;
    }

    .funding-arrow {
      color: #ff6b9d;
      font-size: 14px;
    }

    /* Token Notes */
    .note-btn {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 16px;
      padding: 2px 4px;
      opacity: 0.5;
    }

    .note-btn:hover { opacity: 1; }
    .note-btn.has-note { opacity: 1; color: #f0b429; }

    .note-modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #0a0a0a;
      border: 2px solid;
      border-color: #ffffff #404040 #404040 #ffffff;
      padding: 12px;
      z-index: 200;
      width: 280px;
      display: none;
    }

    .note-modal.active { display: block; }

    .note-modal h4 {
      margin: 0 0 8px 0;
      font-size: 16px;
      background: #1a1a1a; color: #e8e8e8; border: 1px solid rgba(212,164,76,0.4);
      color: white;
      padding: 4px 8px;
      margin: -12px -12px 12px -12px;
    }

    .note-textarea {
      width: 100%;
      height: 60px;
      border: 2px solid;
      border-color: #404040 #ffffff #ffffff #404040;
      padding: 6px;
      font-size: 14px;
      font-family: Tahoma;
      resize: none;
    }

    .note-tags {
      margin-top: 8px;
    }

    .note-tag {
      display: inline-block;
      padding: 2px 6px;
      background: #d4a44c;
      color: white;
      font-size: 13px;
      border-radius: 3px;
      margin: 2px;
      cursor: pointer;
    }

    .note-tag.selected {
      background: #14F195;
      color: black;
    }

    .token-tags {
      display: flex;
      gap: 3px;
      margin-top: 4px;
    }

    .token-tag {
      font-size: 11px;
      padding: 1px 4px;
      border-radius: 2px;
      background: #d4a44c;
      color: white;
    }

    .token-tag.bullish { background: #14F195; color: black; }
    .token-tag.bearish { background: #ff4444; }
    .token-tag.watching { background: #ffd700; color: black; }
    .token-tag.risky { background: #ff6b35; }

    /* Advanced Filters Panel */
    .filters-panel {
      display: none;
      background: #12121f;
      border: 1px solid rgba(212,164,76,0.25);
      padding: 10px;
      margin: 0 8px 8px 8px;
      border-radius: 4px;
    }

    .filters-panel.active {
      display: block;
    }

    .filter-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
      font-size: 14px;
    }

    .filter-row label {
      width: 100px;
      color: #b0b0b0;
    }

    .filter-row input, .filter-row select {
      padding: 4px 6px;
      border: 1px solid rgba(212,164,76,0.25);
      font-size: 14px;
    }

    .filter-toggle {
      font-size: 13px;
      padding: 2px 8px;
      background: #12121f;
      border: 1px solid #999;
      cursor: pointer;
      margin-left: 8px;
    }

    .filter-toggle.active {
      background: #d4a44c;
      color: white;
    }

    /* Tools Panel (Tabbed) */
    .tools-panel {
      display: none;
      background: linear-gradient(135deg, #1a1a2e, #16213e);
      border: 2px solid #d4a44c;
      margin: 8px;
      border-radius: 4px;
      overflow: hidden;
    }

    .tools-panel.active {
      display: block;
    }

    .tools-tabs {
      display: flex;
      background: #0a0a0a;
      border-bottom: 2px solid #333;
    }

    .tools-tab {
      flex: 1;
      padding: 8px 4px;
      text-align: center;
      cursor: pointer;
      color: #b0b0b0;
      font-size: 14px;
      border-right: 1px solid #333;
      transition: all 0.2s;
    }

    .tools-tab:last-child {
      border-right: none;
    }

    .tools-tab:hover {
      background: rgba(153, 69, 255, 0.2);
      color: white;
    }

    .tools-tab.active {
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
      color: white;
      font-weight: bold;
    }

    .tools-tab.sniper.active {
      background: linear-gradient(135deg, #ff4444, #ff6b35);
    }

    .tools-tab.whale.active {
      background: linear-gradient(135deg, #0066cc, #00ccff);
    }

    .tools-tab.tpsl.active {
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
    }

    .tools-tab.history.active {
      background: #1a1410; color: #ffd700; border: 1px solid rgba(212,164,76,0.4);
    }

    .tools-content {
      padding: 12px;
      color: white;
      max-height: 250px;
      overflow-y: auto;
    }

    .tools-content-panel {
      display: none;
    }

    .tools-content-panel.active {
      display: block;
    }

    .tools-section-title {
      font-size: 15px;
      font-weight: bold;
      margin-bottom: 10px;
      padding-bottom: 6px;
      border-bottom: 1px solid #333;
    }

    /* === VALHALLA NORSE THEME OVERRIDES === */
    
    /* Ensure all inputs/selects are dark */
    input, select, textarea {
      background: #12121f !important;
      color: #e0e0e0 !important;
      border-color: rgba(212,164,76,0.25) !important;
    }
    
    input:focus, select:focus, textarea:focus {
      border-color: #ffd700 !important;
      outline: none;
    }
    
    /* Scrollbar */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: #0a0a0f; }
    ::-webkit-scrollbar-thumb { background: rgba(212,164,76,0.25); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #3a3a5a; }
    
    /* Modal overrides */
    .modal-content, .modal, [class*="modal"] {
      background: #1a1a2e !important;
      border-color: rgba(212,164,76,0.25) !important;
      color: #e0e0e0 !important;
    }
    
    /* Button overrides for remaining grey buttons */
    button:not(.wallet-connect-btn):not(#gate-connect-btn) {
      background: #1a1a2e;
      color: #e0e0e0;
      border-color: rgba(212,164,76,0.25);
    }
    
    button:not(.wallet-connect-btn):not(#gate-connect-btn):hover {
      background: rgba(212,164,76,0.25);
    }
    
    /* Panel backgrounds */
    .detail-panel, .side-panel, .trade-panel, [class*="panel"] {
      background: #0a0a0a !important;
      border-color: rgba(212,164,76,0.25) !important;
    }
    
    /* Search bar */
    .search-bar {
      background: #0a0a0a !important;
      border-color: rgba(212,164,76,0.25) !important;
    }
    
    /* Accent colors for links */
    a { color: #ffd700; }
    a:hover { color: #d4a44c; }
    
    /* Tab badge */
    .tab-badge {
      background: #d4a44c !important;
    }

