/* ============================================
   VOXIK COMPONENTS
   ============================================ */

/* ============== BUTTONS ============== */

.vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  flex-shrink: 0;
  box-sizing: border-box;
  text-decoration: none;
}
.vk-btn.size-sm { min-height: 32px; }
.vk-btn.size-md { min-height: 44px; }
.vk-btn.size-lg { min-height: 56px; }
.vk-btn:not(.size-sm):not(.size-md):not(.size-lg) {
  padding: 10px 16px;
  font-size: 13.5px;
  min-height: 44px;
}

.vk-btn .ic { display: inline-flex; }
.vk-btn .ic svg { width: 16px; height: 16px; }

.vk-btn.size-sm { padding: 6px 12px; font-size: 12.5px; height: 32px; }
.vk-btn.size-md { padding: 10px 16px; font-size: 13.5px; height: 44px; }
.vk-btn.size-lg { padding: 14px 22px; font-size: 14.5px; height: 56px; border-radius: 12px; }
.vk-btn.size-lg .ic svg { width: 18px; height: 18px; }

/* primary */
.vk-btn.primary {
  background: var(--accent-grad);
  color: var(--bg-deep);
  font-weight: 600;
  box-shadow: 0 0 0 0 transparent, 0 4px 12px rgba(245, 158, 11, 0.18);
}
.vk-btn.primary:hover, .vk-btn.primary.is-hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35), 0 6px 16px rgba(245, 158, 11, 0.25);
}
.vk-btn.primary:focus-visible, .vk-btn.primary.is-focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 5px var(--accent), 0 4px 12px rgba(245, 158, 11, 0.18);
}
.vk-btn.primary:active, .vk-btn.primary.is-active {
  transform: translateY(0);
  filter: brightness(0.92);
  box-shadow: 0 1px 2px rgba(0,0,0,0.4) inset;
}
.vk-btn.primary:disabled, .vk-btn.primary.is-disabled {
  background: var(--bg-elevated);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.vk-btn.primary.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.vk-btn.primary.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid rgba(12, 10, 9, 0.3);
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: vk-spin 0.7s linear infinite;
}

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

/* secondary */
.vk-btn.secondary {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--border-accent);
}
.vk-btn.secondary:hover, .vk-btn.secondary.is-hover {
  background: var(--accent-glow-strong);
  border-color: rgba(245, 158, 11, 0.4);
}
.vk-btn.secondary:active { transform: translateY(0.5px); }

/* ghost */
.vk-btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.vk-btn.ghost:hover, .vk-btn.ghost.is-hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.18);
}
.vk-btn.ghost:focus-visible, .vk-btn.ghost.is-focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.vk-btn.ghost:active, .vk-btn.ghost.is-active {
  background: rgba(255,255,255,0.06);
}
.vk-btn.ghost.is-disabled, .vk-btn.ghost:disabled {
  color: var(--text-dim);
  border-color: var(--border);
  cursor: not-allowed;
}
.vk-btn.ghost.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.vk-btn.ghost.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  margin: auto;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: vk-spin 0.7s linear infinite;
}

/* danger */
.vk-btn.danger {
  background: var(--danger);
  color: white;
  font-weight: 600;
}
.vk-btn.danger:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35); }

/* icon-only round button */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.icon-btn .ic svg { width: 18px; height: 18px; }
.icon-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.icon-btn.is-active {
  background: var(--accent-grad);
  color: var(--bg-deep);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}
.icon-btn.danger {
  background: var(--danger);
  color: white;
  border-color: transparent;
}
.icon-btn.danger:hover { filter: brightness(1.1); box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35); }
.icon-btn[disabled] { cursor: not-allowed; }

/* ============== TOGGLES / CHECKS ============== */

.vk-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  user-select: none;
}
.vk-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.vk-toggle .track {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.vk-toggle .track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.18s ease;
}
.vk-toggle input:checked ~ .track {
  background: var(--accent-grad);
  border-color: transparent;
}
.vk-toggle input:checked ~ .track::after {
  left: 18px;
  background: var(--bg-deep);
}
.vk-toggle input:disabled ~ .track { opacity: 0.4; cursor: not-allowed; }

/* check / radio */
.vk-check, .vk-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.vk-check input[type="checkbox"], .vk-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  border-radius: 5px;
  position: relative;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}
.vk-radio input[type="radio"] { border-radius: 50%; }
.vk-check input[type="checkbox"]:checked, .vk-radio input[type="radio"]:checked {
  background: var(--accent-grad);
  border-color: transparent;
}
.vk-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.vk-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--bg-deep);
  border-radius: 50%;
}

/* segmented */
.vk-segmented {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.vk-segmented button {
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 7px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s ease;
}
.vk-segmented button:hover { color: var(--text); }
.vk-segmented button.active {
  background: var(--accent-grad);
  color: var(--bg-deep);
  font-weight: 600;
}

/* slider */
.vk-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 999px;
  outline: none;
}
.vk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(245, 158, 11, 0.5);
}
.vk-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ============== FORMS ============== */

.vk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 360px;
}

.vk-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.vk-input, .vk-select, .vk-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  width: 100%;
  transition: all 0.15s ease;
  font-family: inherit;
}
.vk-input:hover, .vk-select:hover { border-color: var(--border-strong); }
.vk-input:focus, .vk-select:focus, .vk-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-surface);
}
.vk-input:disabled, .vk-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.vk-input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-glow);
}

.vk-input::placeholder { color: var(--text-dim); }

.vk-help {
  font-size: 11.5px;
  color: var(--text-dim);
}
.vk-help.error { color: var(--danger); }

.vk-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.vk-input-icon {
  position: relative;
  width: 100%;
}
.vk-input-icon .ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.vk-input-icon .ic svg { width: 16px; height: 16px; }
.vk-input-icon .vk-input { padding-left: 38px; }

.vk-textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

/* chat input */
.chat-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 4px 4px 12px;
}
.chat-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  padding: 8px 0;
}
.chat-input-row input::placeholder { color: var(--text-dim); }
.chat-input-row .icon-action {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-input-row .icon-action:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.chat-input-row .icon-action svg { width: 15px; height: 15px; }
.chat-input-row .send {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-grad);
  color: var(--bg-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.chat-input-row .send svg { width: 15px; height: 15px; }

/* ============== AVATARS / CHIPS ============== */

.av-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--bg-deep);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.av-circle.size-sm { width: 28px; height: 28px; font-size: 11px; }
.av-circle.size-lg { width: 56px; height: 56px; font-size: 18px; }
.av-circle.c1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.av-circle.c2 { background: linear-gradient(135deg, #818cf8, #6366f1); color: white; }
.av-circle.c3 { background: linear-gradient(135deg, #34d399, #10b981); color: white; }
.av-circle.c4 { background: linear-gradient(135deg, #f472b6, #db2777); color: white; }
.av-circle.c5 { background: linear-gradient(135deg, #38bdf8, #0284c7); color: white; }

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

.av-with-status { position: relative; display: inline-flex; }
.av-with-status .badge-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-surface);
}
.av-with-status.muted .badge-status {
  background: var(--danger);
}

.vk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border);
}
.vk-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.vk-chip .ic svg { width: 12px; height: 12px; }
.vk-chip.accent { background: var(--accent-glow); color: var(--accent); border-color: var(--border-accent); }
.vk-chip.success { background: var(--success-glow); color: var(--success); border-color: rgba(52,211,153,0.22); }
.vk-chip.danger { background: var(--danger-glow); color: var(--danger); border-color: rgba(244,63,94,0.22); }

/* ============== MODALS ============== */

.modal-frame {
  position: relative;
  width: 100%;
  background: 
    radial-gradient(ellipse 400px 300px at 50% 30%, rgba(245, 158, 11, 0.06), transparent 60%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.4) 0 12px, rgba(0,0,0,0.5) 12px 24px),
    var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.vk-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--sh-lg);
  position: relative;
}

.vk-modal h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.vk-modal p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; }

.vk-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ============== MENUS / TOOLTIPS ============== */

.vk-menu {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 6px;
  box-shadow: var(--sh-md);
  min-width: 220px;
}
.vk-menu-label {
  padding: 8px 12px 4px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.vk-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.1s ease;
}
.vk-menu-item:hover { background: rgba(255,255,255,0.05); }
.vk-menu-item .ic svg { width: 15px; height: 15px; color: var(--text-muted); }
.vk-menu-item .shortcut {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.3);
}
.vk-menu-item.is-danger { color: var(--danger); }
.vk-menu-item.is-danger .ic svg { color: var(--danger); }
.vk-menu-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.vk-tooltip {
  position: relative;
  background: rgba(15, 13, 12, 0.96);
  backdrop-filter: blur(8px);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--sh-sm);
}
.vk-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(15, 13, 12, 0.96);
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.vk-tooltip .kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.4);
}

/* ============== TOASTS / BANNERS ============== */

.vk-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: var(--sh-md);
}
.vk-toast .toast-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.vk-toast .toast-icon svg { width: 16px; height: 16px; }
.vk-toast .toast-title { font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.vk-toast .toast-sub { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.vk-toast .toast-close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--text-dim);
  margin-left: auto;
  flex-shrink: 0;
}
.vk-toast .toast-close:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.vk-toast .toast-close svg { width: 14px; height: 14px; }

.vk-toast.success { border-left-color: var(--success); }
.vk-toast.success .toast-icon { color: var(--success); }
.vk-toast.warn { border-left-color: var(--warn); }
.vk-toast.warn .toast-icon { color: var(--warn); }
.vk-toast.error { border-left-color: var(--danger); }
.vk-toast.error .toast-icon { color: var(--danger); }

.vk-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13px;
}
.vk-banner .ic svg { width: 16px; height: 16px; flex-shrink: 0; }
.vk-banner.update { background: var(--accent-glow); color: var(--accent); border-color: var(--border-accent); }
.vk-banner.offline { background: var(--danger-glow); color: var(--danger); border-color: rgba(244,63,94,0.22); }
.vk-banner.muted { background: var(--info-glow); color: #a5b4fc; border-color: rgba(99,102,241,0.22); }
.vk-banner .banner-action {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(0,0,0,0.25);
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid currentColor;
  border-color: rgba(255,255,255,0.1);
}
.vk-banner .banner-action:hover { background: rgba(0,0,0,0.4); }

/* ============== FRAMES ============== */

.frame-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .frame-row { grid-template-columns: 1fr; }
}

.browser-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.browser-dots span:nth-child(1) { background: #ed6a5e; }
.browser-dots span:nth-child(2) { background: #f4be4f; }
.browser-dots span:nth-child(3) { background: #62c554; }
.browser-url {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}
.browser-url .lock svg { width: 11px; height: 11px; color: var(--success); }

.phone-frame {
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 38px;
  border: 1px solid #1c1917;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 6px #18181b;
  position: relative;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 32px;
  background: var(--bg-deep);
  overflow: hidden;
}
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 400px 300px at 80% 20%, rgba(245, 158, 11, 0.12), transparent 60%),
    radial-gradient(ellipse 300px 200px at 20% 80%, rgba(245, 158, 11, 0.05), transparent 60%);
  pointer-events: none;
}

/* ============== HOME MINI ============== */

.home-mini {
  position: relative;
  padding: 32px 40px 40px;
  min-height: 560px;
  background: var(--bg-deep);
  overflow: hidden;
}
.home-mini .glow1, .home-mini .glow2 {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}
.home-mini .glow1 {
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.18), transparent 60%);
  top: -100px; right: -50px;
}
.home-mini .glow2 {
  width: 400px; height: 350px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08), transparent 60%);
  bottom: -80px; left: -50px;
}
.home-mini .nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.home-mini .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.home-mini .logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
}
.home-mini .logo-mark svg { width: 14px; height: 14px; }
.home-mini .v-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 999px;
}
.home-mini .center {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 0 40px;
  max-width: 640px;
  margin: 0 auto;
}
.home-mini .center .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}
.home-mini .center .badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.home-mini .center .h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 18px;
}
.home-mini .center .h1 .accent {
  background: linear-gradient(100deg, #fde68a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-mini .center .sub {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.home-mini .actions {
  display: inline-flex;
  gap: 12px;
}
.home-mini .feat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.home-mini .feat-card {
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}
.home-mini .feat-card .icon-pill {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.home-mini .feat-card .icon-pill svg { width: 14px; height: 14px; }
.home-mini .feat-card .ftitle {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.home-mini .feat-card .ftext {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============== GATE ============== */

.gate-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background:
    radial-gradient(ellipse 300px 260px at 50% 40%, rgba(245, 158, 11, 0.1), transparent 60%),
    var(--bg-deep);
  min-height: 360px;
}
.gate-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sh-lg);
}
.gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.gate-icon svg { width: 22px; height: 22px; }
.gate-card h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.gate-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.gate-form .vk-btn { width: 100%; }
.gate-host {
  font-size: 11.5px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--bg-elevated);
  border-top-color: var(--accent);
  margin: 0 auto 16px;
  animation: vk-spin 1s linear infinite;
}

/* ============== CALL STAGE ============== */

.call-stage {
  position: relative;
  background: #050402;
  border-radius: var(--r-md);
  padding: 16px 16px 88px;
  min-height: 380px;
  width: 100%;
  overflow: hidden;
}
.call-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 50% 60%, rgba(245, 158, 11, 0.04), transparent 60%);
  pointer-events: none;
}

.call-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 320px;
  position: relative;
}
.call-grid.g1 { grid-template-columns: 1fr; aspect-ratio: 16/9; }
.call-grid.g2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.call-grid.g3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }

.tile {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid transparent;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-grid.g1 .tile, .call-grid.g2 .tile, .call-grid.g3 .tile { aspect-ratio: auto; }

/* video backgrounds simulated as gradients */
.tile.video.b1 { background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%); }
.tile.video.b2 { background: linear-gradient(135deg, #422006 0%, #78350f 50%, #92400e 100%); }
.tile.video.b3 { background: linear-gradient(135deg, #4a044e 0%, #701a75 50%, #86198f 100%); }
.tile.video.b4 { background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%); }
.tile.video::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 65%, rgba(0,0,0,0.5), transparent 60%),
    radial-gradient(ellipse 30% 35% at 50% 38%, rgba(255, 235, 200, 0.15), transparent 60%);
}
.tile.video::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.01) 3px 4px);
  pointer-events: none;
}
.tile.video.local::after {
  background-image: 
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.01) 3px 4px),
    linear-gradient(90deg, transparent 60%, rgba(0,0,0,0.4));
}

.tile.cam-off {
  background: var(--bg-elevated);
}
.tile.cam-off .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}

.tile.speaking {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(245, 158, 11, 0.4);
  animation: speaking 1.4s ease-in-out infinite;
}
@keyframes speaking {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 0 2px var(--accent), 0 0 32px rgba(245, 158, 11, 0.55); }
}

.tile .label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  padding: 4px 8px 4px 6px;
  border-radius: 6px;
  font-size: 11.5px;
  color: white;
  font-weight: 500;
  z-index: 2;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile .label .mic-mini { display: inline-flex; }
.tile .label .mic-mini svg { width: 11px; height: 11px; }
.tile .label .net {
  display: inline-flex;
  gap: 1px;
  margin-left: 4px;
  align-items: flex-end;
}
.tile .label .net span {
  width: 2px;
  background: var(--success);
  border-radius: 1px;
}
.tile .label .net span:nth-child(1) { height: 4px; }
.tile .label .net span:nth-child(2) { height: 7px; }
.tile .label .net span:nth-child(3) { height: 10px; }
.tile .label .net.weak span:nth-child(2) { background: var(--text-dim); }
.tile .label .net.weak span:nth-child(3) { background: var(--text-dim); }

.tile .raise {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-grad);
  color: var(--bg-deep);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  z-index: 2;
}
.tile .raise svg { width: 11px; height: 11px; }

.tile .pin {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.55);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  z-index: 2;
}
.tile .pin svg { width: 13px; height: 13px; }

.tile .reaction-fly {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  z-index: 3;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: fly 2s ease-out infinite;
}
@keyframes fly {
  0% { transform: translate(-50%, 12px) scale(0.4); opacity: 0; }
  20% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  80% { transform: translate(-50%, -16px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -32px) scale(0.8); opacity: 0; }
}

/* call toolbar */
.call-toolbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--sh-md);
}
.call-toolbar .timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}
.call-toolbar .timer .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; box-shadow: 0 0 8px var(--danger); }
}
.call-toolbar .sep { width: 1px; height: 24px; background: var(--border-strong); margin: 0 2px; }

/* share */
.share-stage {
  position: relative;
  background: #050402;
  border-radius: var(--r-md);
  padding: 16px;
  aspect-ratio: 16/9;
  width: 100%;
}
.screen-mock {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f4 100%);
  border-radius: var(--r-sm);
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid #e7e5e4;
}
.screen-mock .topbar {
  display: flex; gap: 6px; padding: 10px;
  background: #f5f5f4; border-bottom: 1px solid #e7e5e4;
}
.screen-mock .topbar span { width: 10px; height: 10px; border-radius: 50%; background: #d6d3d1; }
.screen-mock .topbar span:nth-child(1) { background: #ed6a5e; }
.screen-mock .topbar span:nth-child(2) { background: #f4be4f; }
.screen-mock .topbar span:nth-child(3) { background: #62c554; }
.screen-mock .body {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: calc(100% - 32px);
}
.screen-mock .col1 {
  background: #f5f5f4;
  border-right: 1px solid #e7e5e4;
  background-image:
    linear-gradient(0deg, transparent 0, transparent calc(100% - 30px), #e7e5e4 calc(100% - 30px), #e7e5e4 100%),
    repeating-linear-gradient(0deg, transparent 0 14px, #e7e5e4 14px 16px, transparent 16px 30px);
  background-size: 100% 100%, calc(100% - 32px) 100%;
  background-position: 0 0, 16px 24px;
  background-repeat: no-repeat, repeat-y;
}
.screen-mock .col2 {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen-mock .ln {
  height: 12px;
  background: #e7e5e4;
  border-radius: 4px;
  width: 70%;
}
.screen-mock .ln:first-child { width: 40%; height: 22px; background: #1c1917; }
.share-pill {
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  background: var(--accent-grad);
  color: var(--bg-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.share-pill .ic svg { width: 13px; height: 13px; }
.pip-tile {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 160px;
  z-index: 5;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

/* whiteboard */
.wb-stage {
  position: relative;
  background: #fafaf9;
  border-radius: var(--r-md);
  aspect-ratio: 16/8;
  background-image:
    linear-gradient(0deg, rgba(28,25,23,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,25,23,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.wb-stage svg {
  width: 100%;
  height: 100%;
}
.wb-toolbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--sh-md);
  z-index: 5;
}
.wb-toolbar button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.wb-toolbar button:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.wb-toolbar button.active { background: var(--accent-grad); color: var(--bg-deep); }
.wb-toolbar button svg { width: 14px; height: 14px; }
.wb-toolbar .swatches { display: flex; gap: 4px; padding: 0 4px; align-items: center; height: 32px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); margin: 0 4px; }
.wb-toolbar .swatches span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}
.wb-toolbar .swatches span.active { border-color: var(--accent); transform: scale(1.1); }

/* chat panel */
.chat-panel {
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  height: 480px;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-head .title { font-size: 14px; font-weight: 600; }
.chat-head .actions { display: flex; gap: 4px; }
.chat-head button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-head button:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.chat-head button svg { width: 14px; height: 14px; }
.chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.chat-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}
.chat-msg .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.chat-msg .who {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-msg .who time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
.chat-msg .bubble {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: 10px 10px 10px 2px;
  border: 1px solid var(--border);
}
.chat-msg.history { opacity: 0.55; }
.chat-msg.history .bubble::before {
  content: 'Из истории · ';
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}
.chat-msg.me .bubble {
  background: var(--accent-glow);
  color: var(--text);
  border-color: var(--border-accent);
  border-radius: 10px 10px 2px 10px;
}
.chat-msg.private .bubble {
  border-color: var(--border-accent);
  background: rgba(245, 158, 11, 0.05);
}
.chat-msg.private .bubble::before {
  content: 'Лично вам · ';
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
}
.chat-foot {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.chat-foot .chat-recipient {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-foot .chat-recipient select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  font-family: inherit;
}

/* reactions bar */
.reaction-bar {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--sh-md);
}
.reaction-bar button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.reaction-bar button:hover {
  background: rgba(255,255,255,0.06);
  transform: scale(1.15);
}

/* participants panel */
.parts-panel {
  width: 360px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.parts-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 18px 8px;
}
.parts-head .title { font-weight: 600; font-size: 14px; }
.parts-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.parts-search { padding: 0 16px 12px; }
.parts-section-label {
  padding: 12px 18px 6px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  border-top: 1px solid var(--border);
}
.parts-list { padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.parts-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.parts-row:hover { background: rgba(255,255,255,0.03); }
.parts-row .av {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  color: var(--bg-deep);
  flex-shrink: 0;
}
.parts-row .av.c1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.parts-row .av.c2 { background: linear-gradient(135deg, #818cf8, #6366f1); color: white; }
.parts-row .av.c3 { background: linear-gradient(135deg, #34d399, #10b981); color: white; }
.parts-row .av.c4 { background: linear-gradient(135deg, #f472b6, #db2777); color: white; }
.parts-row .av.c5 { background: linear-gradient(135deg, #38bdf8, #0284c7); color: white; }
.parts-row .name {
  flex: 1;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--text);
}
.parts-row .role {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}
.parts-row .actions { display: flex; align-items: center; gap: 4px; }
.parts-row .mini {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.parts-row .mini:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.parts-row .mini svg { width: 13px; height: 13px; }
.parts-row .mini.muted { color: var(--danger); }

/* settings modal */
.settings-modal { max-width: 760px; padding: 0; overflow: hidden; }
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
}
.settings-tabs {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 12px;
}
.stab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stab:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.stab.active {
  background: var(--accent-glow);
  color: var(--accent);
}
.stab .ic svg { width: 14px; height: 14px; }
.settings-pane {
  padding: 28px 32px;
}
.settings-pane h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.settings-pane .pane-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.device-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.device-preview .av {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 18px;
}
.device-preview .level {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}
.device-preview .level span {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  animation: lvl 1.5s ease-in-out infinite;
}
.device-preview .level span:nth-child(1) { animation-delay: 0s; height: 60%; }
.device-preview .level span:nth-child(2) { animation-delay: 0.15s; height: 80%; }
.device-preview .level span:nth-child(3) { animation-delay: 0.3s; height: 50%; }
.device-preview .level span:nth-child(4) { animation-delay: 0.45s; height: 90%; }
.device-preview .level span:nth-child(5) { animation-delay: 0.6s; height: 40%; }
@keyframes lvl {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row .row-title { font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.settings-row .row-sub { font-size: 11.5px; color: var(--text-dim); }

/* PiP / Spotlight */
.pip-stage {
  position: relative;
  aspect-ratio: 16/10;
  background: 
    linear-gradient(180deg, #0c4a6e 0%, #082f49 60%, #020617 100%);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 12px;
}
.pip-stage .desktop {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
  background-image: 
    radial-gradient(circle at 20px 18px, rgba(255,255,255,0.18), rgba(255,255,255,0.18) 9px, transparent 10px),
    radial-gradient(circle at 50px 18px, rgba(255,255,255,0.12), rgba(255,255,255,0.12) 9px, transparent 10px),
    radial-gradient(circle at 80px 18px, rgba(245,158,11,0.6), rgba(245,158,11,0.6) 9px, transparent 10px),
    radial-gradient(circle at 110px 18px, rgba(255,255,255,0.12), rgba(255,255,255,0.12) 9px, transparent 10px);
}
.pip-stage .pip-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
}
.pip-stage .pip-window {
  position: absolute;
  bottom: 56px;
  right: 16px;
  width: 200px;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.spotlight-stage {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 8px;
  aspect-ratio: 16/10;
}
.spotlight-stage .main { aspect-ratio: auto; }
.spotlight-stage .strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spotlight-stage .strip .tile {
  aspect-ratio: 16/10;
  flex: 1;
}

@media (max-width: 768px) {
  .video-box.speaking::before,
  .vk-speaking-ring, .vk-fly, .vk-pulse-dot, .vk-level-bar {
    animation: none !important;
  }
  .vk-modal, .vk-popover, .vk-toast, .vk-menu, .vk-sheet,
  .vk-overlay, .vk-card-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(15, 15, 20, 0.94) !important;
  }
}
