:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --yellow: #eab308;
  --yellow-bg: rgba(234, 179, 8, 0.12);
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== Login Page ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.login-card {
  width: 100%;
  max-width: 420px;
  margin: 20px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.login-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  width: 100%;
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-success {
  background: var(--green);
  color: white;
}

.btn-danger {
  background: var(--red);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--accent-primary);
}

.btn-icon {
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.login-error {
  padding: 10px 16px;
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.login-links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-links a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.login-links a:hover {
  text-decoration: underline;
}

/* ===== Dashboard Layout ===== */
.dashboard {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.running {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.stopped {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

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

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

.balance-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 4px 14px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-variant-numeric: tabular-nums;
}

.balance-gas {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 3px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Coin Cards Grid */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.coin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.coin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.coin-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.coin-card:hover::before { opacity: 1; }
.coin-card.active::before { opacity: 1; background: linear-gradient(135deg, var(--green), #4ade80); }

/* Header: name + UP/DOWN tags + switch */
.coin-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.coin-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.coin-updown {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  margin-right: 6px;
}

.tag-up, .tag-down {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.tag-up { color: var(--green); background: var(--green-bg); }
.tag-down { color: var(--red); background: var(--red-bg); }

.coin-switch {
  position: relative;
  width: 38px; height: 20px;
  flex-shrink: 0;
}
.coin-switch input { display: none; }
.coin-switch .slider {
  position: absolute; inset: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 10px; cursor: pointer;
  transition: var(--transition);
}
.coin-switch .slider::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%; background: var(--text-muted);
  transition: var(--transition);
}
.coin-switch input:checked + .slider { background: var(--green-bg); border-color: rgba(34,197,94,0.3); }
.coin-switch input:checked + .slider::after { transform: translateX(18px); background: var(--green); }

/* Structured rows inside coin card */
.coin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.row-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 40px;
  flex-shrink: 0;
}

.row-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.row-value.mono, .meta-value {
  font-family: 'JetBrains Mono', monospace;
}

/* Target price row */
.coin-row-target {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
}
.coin-row-target .row-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Live price row */
.coin-row-live {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.coin-row-live .row-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color 0.3s;
}
.coin-row-live .row-value.price-up { color: var(--green); }
.coin-row-live .row-value.price-down { color: var(--red); }

.live-diff {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.live-diff.price-up { color: var(--green); background: var(--green-bg); }
.live-diff.price-down { color: var(--red); background: var(--red-bg); }

.live-age {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Meta row: threshold + diff */
.coin-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 0;
  margin-bottom: 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-value {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.meta-value.positive { color: var(--green); }
.meta-value.negative { color: var(--red); }

.meta-input-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}
.meta-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.meta-input {
  width: 80px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  outline: none;
  text-align: center;
  transition: border-color 0.2s;
}
.meta-input:focus { border-color: var(--accent-primary); }
.meta-input:disabled { opacity: 0.35; cursor: not-allowed; }

.target-status {
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  cursor: help;
  margin-left: auto;
}
.target-status.target-polling { animation: spin 1.5s linear infinite; }
.target-status.target-ready { opacity: 0.7; }
.target-status.target-failed { opacity: 0.8; }

/* Control Panel */
.control-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.control-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.control-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.save-indicator {
  font-size: 0.75rem;
  color: var(--yellow);
  font-weight: 500;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn-save {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.control-group.editable {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 14px;
}

.control-group label {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.control-group .value {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.control-group input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Inline Input (number) */
.inline-input {
  width: 100%;
  max-width: 120px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inline-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.inline-input.sm {
  max-width: 70px;
  padding: 5px 8px;
  font-size: 0.8rem;
}

.inline-input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.inline-row .unit {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Coin card threshold edit */
.coin-threshold-edit {
  display: flex;
  align-items: center;
  gap: 4px;
}

.coin-threshold-edit label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.threshold-input {
  width: 68px !important;
  max-width: 68px !important;
  padding: 3px 6px !important;
  font-size: 0.8rem !important;
  text-align: center;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  background: var(--green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[data-type="error"] {
  background: var(--red);
}

.toast[data-type="success"] {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Log Panel */
.log-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.log-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-body {
  height: 300px;
  overflow-y: auto;
  padding: 12px 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
}

.log-entry {
  padding: 2px 20px;
  display: flex;
  gap: 10px;
  transition: background 0.15s;
}

.log-entry:hover {
  background: var(--bg-glass);
}

.log-time {
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.log-coin {
  font-weight: 600;
  flex-shrink: 0;
  min-width: 60px;
}

.log-msg {
  color: var(--text-secondary);
  word-break: break-all;
}

.log-entry.success .log-msg { color: var(--green); }
.log-entry.error .log-msg { color: var(--red); }
.log-entry.warn .log-msg { color: var(--yellow); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Config Section Divider */
.config-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.config-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .coin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .topbar-logo { font-size: 0.95rem; }
  .topbar-center { order: 3; width: 100%; justify-content: center; }
  .status-badge { font-size: 0.68rem; padding: 3px 8px; }

  .round-timer-bar { padding: 8px 14px 10px; }
  .round-timer-countdown { font-size: 1.1rem; }

  .main-content { padding: 12px; }

  .coin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .coin-card { padding: 12px; }
  .coin-name { font-size: 0.95rem; }
  .tag-up, .tag-down { font-size: 0.65rem; padding: 1px 5px; }
  .coin-row { padding: 5px 8px; }
  .row-label { font-size: 0.68rem; min-width: 34px; }
  .coin-row-target .row-value,
  .coin-row-live .row-value { font-size: 0.85rem; }

  .config-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .control-row { flex-direction: column; align-items: stretch; }

  .log-body { height: 200px; font-size: 0.72rem; }
}

/* Responsive - Phone */
@media (max-width: 480px) {
  .coin-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .coin-card { padding: 10px; }
  .coin-header { gap: 4px; margin-bottom: 8px; }
  .coin-name { font-size: 0.88rem; }
  .coin-updown { gap: 3px; }
  .tag-up, .tag-down { font-size: 0.6rem; padding: 1px 4px; }
  .coin-switch { width: 32px; height: 18px; }
  .coin-switch .slider::after { width: 12px; height: 12px; }
  .coin-switch input:checked + .slider::after { transform: translateX(14px); }
  .coin-row { padding: 4px 6px; gap: 4px; }
  .row-label { font-size: 0.62rem; min-width: 28px; }
  .coin-row-target .row-value,
  .coin-row-live .row-value { font-size: 0.78rem; }
  .live-diff { font-size: 0.62rem; padding: 1px 4px; }
  .meta-input { width: 64px; font-size: 0.75rem; padding: 3px 6px; }
  .meta-label { font-size: 0.62rem; }
  .meta-value { font-size: 0.7rem; }

  .login-card { padding: 28px 24px; }
  .control-panel { padding: 16px; }
  .config-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ===== Wallet Settings ===== */
.wallet-list {
  margin-top: 16px;
}

.wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.wallet-item .wallet-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.wallet-item .wallet-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.wallet-item .wallet-type {
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Timer display */
.timer-display {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-primary);
  text-align: center;
  padding: 8px;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== Round Timer Progress Bar ===== */
.round-timer-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px 14px;
  backdrop-filter: blur(10px);
}

.round-timer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.round-timer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-timer-icon {
  font-size: 1rem;
}

.round-timer-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.round-timer-countdown {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.round-timer-countdown.urgent {
  color: var(--red);
  animation: urgentPulse 1s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.round-timer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
}

.round-timer-interval {
  color: var(--text-muted);
  font-weight: 500;
}

.round-timer-percent {
  color: var(--text-secondary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
}

.round-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.round-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
  transition: width 1s linear;
  position: relative;
  min-width: 0%;
}

.round-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  border-radius: 3px;
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.round-progress-fill.urgent {
  background: linear-gradient(90deg, #ef4444, #f87171, #fca5a5);
}

.round-progress-fill.urgent::after {
  animation: progressShimmer 0.8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .round-timer-bar {
    padding: 10px 16px 12px;
  }

  .round-timer-countdown {
    font-size: 1.1rem;
  }

  .round-timer-right {
    gap: 10px;
    font-size: 0.75rem;
  }
}

/* (Legacy styles removed - now unified in coin-row system above) */
