/* ═══════════════════════════════════════════════════════════
   SMB ViewBot – Web Interface Styles
   Dark hacker aesthetic with glassmorphism
═══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #080b12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(120, 80, 255, 0.6);

  --primary: #7c4dff;
  --primary-glow: rgba(124, 77, 255, 0.35);
  --primary-dark: #5e35d0;

  --tiktok: #ff2d55;
  --tiktok-glow: rgba(255, 45, 85, 0.3);
  --twitch: #9147ff;
  --twitch-glow: rgba(145, 71, 255, 0.3);
  --green: #00e5a0;
  --green-glow: rgba(0, 229, 160, 0.25);
  --red: #ff4757;
  --yellow: #ffd200;

  --text: #e8eaf0;
  --text-muted: rgba(232, 234, 240, 0.45);
  --text-dim: rgba(232, 234, 240, 0.25);

  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Background ──────────────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.amb1 {
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.amb2 {
  width: 300px;
  height: 300px;
  background: rgba(124, 77, 255, 0.12);
  top: 40%;
  right: -150px;
  animation-delay: 3s;
}

.amb3 {
  width: 350px;
  height: 350px;
  background: var(--twitch-glow);
  bottom: -100px;
  left: 30%;
  animation-delay: 5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ─── Header ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-hex {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px var(--primary-glow);
}

.logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background var(--transition), box-shadow var(--transition);
}

.status-dot.connected {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.error {
  background: var(--red);
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── Main ────────────────────────────────────────────────── */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}

/* ─── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 28px;
  overflow-x: auto;
}

.tab {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.tab.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 20px var(--primary-glow);
}

/* ─── Panel ───────────────────────────────────────────────── */
.panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.panel-grid-wide {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

@media (max-width: 900px) {

  .panel-grid,
  .panel-grid-wide {
    grid-template-columns: 1fr;
  }
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner {
    padding: 12px 16px;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .main {
    padding: 16px 12px;
  }

  .tabs {
    gap: 3px;
    padding: 4px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 calc(50% - 6px);
    min-width: unset;
    font-size: 0.78rem;
    padding: 9px 10px;
    gap: 5px;
  }

  .tab svg {
    width: 13px;
    height: 13px;
  }

  .card-header {
    padding: 18px 16px 0;
  }

  .form {
    padding: 16px;
    gap: 14px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  input[type="text"],
  input[type="number"],
  textarea {
    font-size: 0.9rem;
    padding: 12px 12px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  .stat-num {
    font-size: 2.5rem;
  }

  .stats-idle {
    padding: 24px 16px;
  }

  .idle-icon svg {
    width: 36px;
    height: 36px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amb1 {
    width: 250px;
    height: 250px;
    top: -80px;
    left: -60px;
  }

  .amb2 {
    display: none;
  }

  .amb3 {
    width: 180px;
    height: 180px;
  }

  .panel-grid,
  .panel-grid-wide {
    gap: 14px;
  }

  .devgen-table-wrap {
    max-height: 320px;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  #licenseInputArea .btn {
    width: 100%;
    align-self: stretch;
  }
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.card-header {
  padding: 24px 24px 0;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Form ────────────────────────────────────────────────── */
.form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

input[type="text"],
input[type="number"],
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

select,
input[type="text"],
input[type="number"],
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(120, 80, 255, 0.12);
}

/* ─── Disabled State ──────────────────────────────────────── */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled,
.disabled-element {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

input[type="checkbox"]:disabled + label,
.checkbox-label.disabled-element {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  font-size: 0.75rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(124, 77, 255, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red) 0%, #c0392b 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.active-license-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(0, 229, 160, 0.05);
  border: 1px solid rgba(0, 229, 160, 0.15);
  border-radius: var(--radius-sm);
}

.active-license-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.active-license-key {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.active-license-exp {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-active {
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid rgba(0, 229, 160, 0.25);
  color: var(--green);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hidden {
  display: none !important;
}

/* ─── Stats Card ──────────────────────────────────────────── */
.stats-card {
  display: flex;
  flex-direction: column;
}

.stats-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.idle-icon {
  font-size: 3rem;
  opacity: 0.4;
  color: var(--text-muted);
}

.stats-live {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--green), #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(0, 229, 160, 0.4));
  animation: count-pulse 0.15s ease;
}

@keyframes count-pulse {
  0% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 4px;
}

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

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #00bfff);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 229, 160, 0.5);
}

.progress-pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 38px;
  text-align: right;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.sm-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── Log Feed ─────────────────────────────────────────────── */
.log-feed {
  flex: 1;
  overflow-y: auto;
  max-height: 140px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
}

.log-feed::-webkit-scrollbar {
  width: 3px;
}

.log-feed::-webkit-scrollbar-track {
  background: transparent;
}

.log-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.log-line {
  color: var(--text-muted);
}

.log-line.success {
  color: var(--green);
}

.log-line.error {
  color: var(--red);
}

.log-line.info {
  color: #4fc3f7;
}

/* ─── Device Gen ──────────────────────────────────────────── */
.devgen-preview-card {
  display: flex;
  flex-direction: column;
}

.devgen-preview-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
}

.preview-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
}

.devgen-table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0 16px 16px;
  max-height: 500px;
}

.devgen-table-wrap::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.devgen-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.devgen-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.devgen-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.devgen-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
  font-family: var(--font-mono);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.98), rgba(8, 11, 18, 0.8));
  border-bottom: 1px solid var(--border);
}

.devgen-table td {
  padding: 7px 12px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.devgen-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.devgen-table td:first-child {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.devgen-table td:nth-child(2) {
  font-weight: 600;
  color: var(--text);
}

.devgen-table td:nth-child(3) {
  font-family: var(--font-mono);
}

.empty-row td {
  text-align: center;
  padding: 40px;
  color: var(--text-dim);
}

/* ─── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.toast {
  min-width: 280px;
  max-width: 380px;
  background: rgba(15, 18, 30, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(20px);
  padding: 14px 18px;
  font-size: 0.87rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.toast.toast-success {
  border-color: rgba(0, 229, 160, 0.3);
}

.toast.toast-error {
  border-color: rgba(255, 71, 87, 0.3);
}

.toast.toast-info {
  border-color: rgba(79, 195, 247, 0.3);
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.toast-msg {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
    max-height: 200px;
  }

  to {
    opacity: 0;
    transform: translateX(40px);
    max-height: 0;
    margin: 0;
    padding: 0;
  }
}

.toast.removing {
  animation: slideOut 0.3s ease forwards;
}

/* License Panel */
.license-panel {
  display: block;
}

.license-locked .panel {
  animation: none !important;
  opacity: 0.5 !important;
  pointer-events: none;
  filter: grayscale(1);
}

.license-locked .tabs {
  opacity: 0.6;
}

.license-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.license-info-box .status-active {
  color: var(--green);
  font-weight: bold;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

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

.checkbox-label:hover {
  color: var(--text);
}

select[multiple] {
  min-height: 80px;
}

select option {
  background: var(--bg);
  color: var(--text);
  padding: 6px 10px;
}

select option:checked {
  background: var(--primary-dark);
  color: var(--text);
}

/* ─── Proxy Toggle ────────────────────────────────────────── */
.proxy-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proxy-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.proxy-mode-text {
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all var(--transition);
}

.proxy-mode-text.mode-builtin {
  color: var(--green);
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.proxy-mode-text.mode-custom {
  color: var(--primary);
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid rgba(124, 77, 255, 0.2);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(124, 77, 255, 0.25);
  border-color: rgba(124, 77, 255, 0.5);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.toggle-switch:hover .toggle-slider {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Custom proxy textarea area */
.proxy-custom-area {
  margin-top: 10px;
  animation: fadeSlideDown 0.25s ease;
}

.proxy-custom-area textarea {
  resize: vertical;
  min-height: 60px;
}

.proxy-count-hint {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: 4px;
  text-align: right;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
}