/*
 * ╔══════════════════════════════════════════════════════════════╗
 * ║          LobbyX UI Component Library  —  ui.css             ║
 * ║  Dark gaming theme · Mor accent · Premium minimal           ║
 * ╚══════════════════════════════════════════════════════════════╝
 *
 * Token referansı (app.html :root'tan okunur):
 *   --bg1  #0e0f13   --bg2  #16181f   --bg3  #1e2028   --bg4  #2a2d3a
 *   --accent #7c6aff  --accent2 #5b4fcf
 *   --text1 #e8eaf0   --text2 #9ba3b8   --text3 #5c6480
 *   --danger #ff4d4d  --success #4dff91  --border #2a2d3a
 *   --warning #ffaa00  (kullanıcı tanımlamalı)
 */

/* ═══════════════════════════════════════════════════════════════
   1. GLOBAL RESET & SCROLL
   ═══════════════════════════════════════════════════════════════ */
.lx-scroll          { scrollbar-width: thin; scrollbar-color: var(--bg4) transparent; }
.lx-scroll::-webkit-scrollbar       { width: 4px; height: 4px; }
.lx-scroll::-webkit-scrollbar-track { background: transparent; }
.lx-scroll::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════
   2. BUTTON SYSTEM
   Base: .lx-btn
   Variants: lx-btn-primary · secondary · danger · ghost · success
   Sizes: (default) · lx-btn-sm · lx-btn-lg
   Mods: lx-btn-full · lx-btn-icon
   ═══════════════════════════════════════════════════════════════ */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.lx-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.lx-btn:active:not(:disabled) { transform: translateY(1px) !important; }

/* Ripple */
.lx-btn .lx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  animation: lxRipple 0.5s linear;
  pointer-events: none;
}
@keyframes lxRipple { to { transform: scale(4); opacity: 0; } }

/* Primary */
.lx-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,106,255,0.35);
}
.lx-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124,106,255,0.52);
}

/* Secondary */
.lx-btn-secondary {
  background: var(--bg3);
  color: var(--text1);
  border: 1px solid var(--border);
}
.lx-btn-secondary:hover:not(:disabled) {
  background: var(--bg4);
  border-color: var(--accent);
  color: var(--text1);
}

/* Danger */
.lx-btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,77,77,0.3);
}
.lx-btn-danger:hover:not(:disabled) {
  background: #cc0000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,77,77,0.45);
}

/* Ghost */
.lx-btn-ghost {
  background: none;
  color: var(--text2);
  border: 1px solid transparent;
}
.lx-btn-ghost:hover:not(:disabled) {
  background: var(--bg3);
  color: var(--text1);
  border-color: var(--border);
}

/* Success */
.lx-btn-success {
  background: var(--success);
  color: var(--bg1);
  box-shadow: 0 4px 14px rgba(77,255,145,0.28);
}
.lx-btn-success:hover:not(:disabled) {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* Sizes */
.lx-btn-sm  { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.lx-btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: 12px; }

/* Mods */
.lx-btn-full { width: 100%; }
.lx-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
}
.lx-btn-icon.lx-btn-sm { width: 28px; height: 28px; font-size: 14px; border-radius: 6px; }
.lx-btn-icon.lx-btn-lg { width: 44px; height: 44px; font-size: 20px; border-radius: 10px; }

/* ── Backward-compat aliases ──────────────────────────────── */
/* .btn    → full-width primary */
.btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(124,106,255,0.35);
  margin-top: 4px;
  font-family: inherit;
}
.btn:hover    { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(124,106,255,0.5); }
.btn:active   { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* .btn-danger */
.btn-danger { background: var(--danger); border: none; border-radius: 8px; color: white; padding: 10px 20px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.btn-danger:hover { background: #cc0000; }

/* ═══════════════════════════════════════════════════════════════
   3. FORM / INPUT SYSTEM
   .lx-field > .lx-label + .lx-input / .lx-select / .lx-textarea
   ═══════════════════════════════════════════════════════════════ */
.lx-field { margin-bottom: 18px; }

.lx-label {
  display: block;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.lx-input,
.lx-select,
.lx-textarea {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lx-input::placeholder,
.lx-textarea::placeholder { color: var(--text3); }
.lx-input:focus,
.lx-select:focus,
.lx-textarea:focus {
  border-color: var(--accent);
  background: rgba(124,106,255,0.07);
  box-shadow: 0 0 0 3px rgba(124,106,255,0.15);
}
.lx-input.error,
.lx-input[aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(255,77,77,0.05);
}
.lx-select option  { background: var(--bg3); }
.lx-textarea       { resize: vertical; min-height: 80px; }

.lx-field-hint {
  font-size: 12px;
  color: var(--text3);
  margin-top: 5px;
}
.lx-field-hint.error { color: var(--danger); }

/* ── Backward-compat: form-group & settings-form-group ────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text1);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(124,106,255,0.07);
  box-shadow: 0 0 0 3px rgba(124,106,255,0.15);
}
.form-group select option { background: var(--bg3); }

.settings-form-group { margin-bottom: 20px; }
.settings-form-group label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.settings-form-group input,
.settings-form-group textarea { width: 100%; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; color: var(--text1); font-size: 14px; outline: none; transition: border-color 0.2s; font-family: inherit; }
.settings-form-group input:focus,
.settings-form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,106,255,0.12); }
.settings-form-group textarea { resize: vertical; min-height: 80px; }

/* Error message block */
.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  padding: 10px 14px;
  background: rgba(255,77,77,0.1);
  border-radius: 8px;
  border: 1px solid rgba(255,77,77,0.2);
}
.error-msg:empty { display: none; }

/* ═══════════════════════════════════════════════════════════════
   4. TAB SYSTEM
   .lx-tabs > .lx-tab [.active]
   ═══════════════════════════════════════════════════════════════ */
.lx-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border);
}
.lx-tab {
  flex: 1;
  padding: 9px 14px;
  border: none;
  background: none;
  color: var(--text2);
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}
.lx-tab:hover:not(.active) { background: var(--bg3); color: var(--text1); }
.lx-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 14px rgba(124,106,255,0.4);
}

/* ── Backward-compat alias ────────────────────────────────── */
.auth-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--border); }
.auth-tab  { flex: 1; padding: 9px; border: none; background: none; color: var(--text2); border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; font-family: inherit; }
.auth-tab:not(.active):hover { background: var(--bg3); color: var(--text1); }
.auth-tab.active { background: var(--accent); color: white; box-shadow: 0 2px 14px rgba(124,106,255,0.4); }

/* ═══════════════════════════════════════════════════════════════
   5. MODAL SYSTEM
   .lx-overlay > .lx-modal
     .lx-modal-header > .lx-modal-title + .lx-modal-close
     .lx-modal-body
     .lx-modal-footer
   Sizes: (default 440px) · .lx-modal-sm · .lx-modal-lg · .lx-modal-xl
   ═══════════════════════════════════════════════════════════════ */
.lx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: lxOverlayIn 0.15s ease;
}
@keyframes lxOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.lx-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  animation: lxModalIn 0.18s cubic-bezier(0.34,1.4,0.64,1);
  display: flex;
  flex-direction: column;
}
@keyframes lxModalIn { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: none; } }

.lx-modal-sm  { width: 360px; }
.lx-modal-lg  { width: 560px; }
.lx-modal-xl  { width: 720px; }

.lx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  flex-shrink: 0;
}
.lx-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
}
.lx-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg3);
  color: var(--text2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.lx-modal-close:hover { background: var(--bg4); color: var(--text1); }

.lx-modal-body {
  padding: 20px 28px 28px;
  flex: 1;
}
.lx-modal-footer {
  padding: 0 28px 24px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.lx-modal-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.lx-modal-section-title {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Backward-compat: keep existing .modal-overlay / .modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 440px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-bottom: 20px; font-size: 20px; font-weight: 700; }
.modal-close { float: right; background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; margin-top: -4px; transition: color 0.15s; }
.modal-close:hover { color: var(--text1); }
.modal-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-section h3 { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════════
   6. CARD SYSTEM
   .lx-card [.lx-card-hover] [.lx-card-accent]
   ═══════════════════════════════════════════════════════════════ */
.lx-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.lx-card-hover {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lx-card-hover:hover {
  border-color: var(--accent);
  background: rgba(124,106,255,0.06);
}
.lx-card-accent  { border-left: 3px solid var(--accent); }
.lx-card-danger  { border-left: 3px solid var(--danger); }
.lx-card-success { border-left: 3px solid var(--success); }

.lx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lx-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
}

/* ═══════════════════════════════════════════════════════════════
   7. BADGE SYSTEM
   .lx-badge [variant]
   ═══════════════════════════════════════════════════════════════ */
.lx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.6;
}
.lx-badge-accent  { background: rgba(124,106,255,0.18); color: var(--accent); border: 1px solid rgba(124,106,255,0.3); }
.lx-badge-danger  { background: rgba(255,77,77,0.15); color: var(--danger); border: 1px solid rgba(255,77,77,0.3); }
.lx-badge-success { background: rgba(77,255,145,0.12); color: var(--success); border: 1px solid rgba(77,255,145,0.25); }
.lx-badge-warning { background: rgba(255,170,0,0.14); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3); }
.lx-badge-owner   { background: rgba(255,170,0,0.12); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3); }
.lx-badge-admin   { background: rgba(255,77,77,0.12); color: var(--danger); border: 1px solid rgba(255,77,77,0.3); }
.lx-badge-ghost   { background: var(--bg4); color: var(--text3); border: 1px solid var(--border); }

/* Notification dot */
.lx-notif-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   8. AVATAR SYSTEM
   .lx-avatar [.lx-avatar-xs|sm|md|lg|xl]
   Always square → add .lx-avatar-round for circle
   ═══════════════════════════════════════════════════════════════ */
.lx-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}
.lx-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-avatar-round { border-radius: 50%; }

.lx-avatar-xs  { width: 20px; height: 20px; font-size: 9px; border-radius: 5px; }
.lx-avatar-sm  { width: 28px; height: 28px; font-size: 11px; }
.lx-avatar-md  { width: 36px; height: 36px; font-size: 14px; }
.lx-avatar-lg  { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
.lx-avatar-xl  { width: 72px; height: 72px; font-size: 26px; border-radius: 16px; }

/* Status dot (position: relative on parent required) */
.lx-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg2);
}
.lx-status-dot.online    { background: var(--success); }
.lx-status-dot.idle      { background: #ffaa00; }
.lx-status-dot.dnd       { background: var(--danger); }
.lx-status-dot.invisible { background: var(--text3); }
.lx-status-dot.offline   { background: var(--text3); }

/* ═══════════════════════════════════════════════════════════════
   9. CONTEXT MENU / DROPDOWN
   .lx-menu > .lx-menu-item | .lx-menu-sep
   ═══════════════════════════════════════════════════════════════ */
.lx-menu {
  background: #111318;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 4px;
  min-width: 180px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  animation: ctxFade 0.1s ease;
}
.lx-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text2);
  transition: all 0.1s;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
}
.lx-menu-item:hover { background: var(--accent); color: #fff; }
.lx-menu-item-icon  { font-size: 15px; color: var(--text3); flex-shrink: 0; }
.lx-menu-item:hover .lx-menu-item-icon { color: #fff; }
.lx-menu-item.danger      { color: var(--danger); }
.lx-menu-item.danger:hover { background: rgba(255,77,77,0.15); color: var(--danger); }
.lx-menu-sep {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 0;
}

/* ═══════════════════════════════════════════════════════════════
   10. TOAST NOTIFICATION SYSTEM
   Created/managed by LX.toast in ui.js
   ═══════════════════════════════════════════════════════════════ */
#lx-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}
.lx-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  font-size: 14px;
  color: var(--text1);
  max-width: 340px;
  pointer-events: all;
  animation: lxToastIn 0.22s cubic-bezier(0.34,1.4,0.64,1);
  cursor: pointer;
}
.lx-toast.out { animation: lxToastOut 0.18s ease forwards; }
@keyframes lxToastIn  { from { opacity: 0; transform: translateX(20px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes lxToastOut { to   { opacity: 0; transform: translateX(16px) scale(0.95); } }

.lx-toast-icon { font-size: 18px; flex-shrink: 0; }
.lx-toast-msg  { flex: 1; line-height: 1.4; }

.lx-toast.success { border-color: rgba(77,255,145,0.3);  background: rgba(77,255,145,0.08); }
.lx-toast.error   { border-color: rgba(255,77,77,0.3);   background: rgba(255,77,77,0.08); }
.lx-toast.warning { border-color: rgba(255,170,0,0.3);   background: rgba(255,170,0,0.07); }
.lx-toast.info    { border-color: rgba(124,106,255,0.3); background: rgba(124,106,255,0.06); }

/* ═══════════════════════════════════════════════════════════════
   11. TOOLTIP
   <el data-tip="text" class="lx-tip">
   Position variants: .lx-tip-top (default) · .lx-tip-bottom · .lx-tip-left · .lx-tip-right
   ═══════════════════════════════════════════════════════════════ */
.lx-tip { position: relative; }
.lx-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #111318;
  color: var(--text1);
  font-size: 12px;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1000;
}
.lx-tip:hover::after { opacity: 1; }
.lx-tip-bottom::after { bottom: auto; top: calc(100% + 6px); }
.lx-tip-left::after   { left: auto; right: calc(100% + 6px); bottom: 50%; transform: translateY(50%); }
.lx-tip-right::after  { left: calc(100% + 6px); right: auto; bottom: 50%; transform: translateY(50%); }

/* ═══════════════════════════════════════════════════════════════
   12. DIVIDER
   ═══════════════════════════════════════════════════════════════ */
.lx-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.lx-divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0;
}
.lx-divider-text::before,
.lx-divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   13. EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.lx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
}
.lx-empty-icon  { font-size: 40px; opacity: 0.35; }
.lx-empty-title { font-size: 15px; font-weight: 700; color: var(--text2); }
.lx-empty-desc  { font-size: 13px; color: var(--text3); max-width: 260px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   14. SECTION HEADER
   ═══════════════════════════════════════════════════════════════ */
.lx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.lx-section-title {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   15. CONFIRM DIALOG  (rendered by LX.modal.confirm in ui.js)
   ═══════════════════════════════════════════════════════════════ */
#lx-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  animation: lxOverlayIn 0.15s ease;
}
#lx-confirm-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  width: 360px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.55);
  animation: lxModalIn 0.18s cubic-bezier(0.34,1.4,0.64,1);
}
#lx-confirm-icon   { font-size: 32px; text-align: center; margin-bottom: 12px; }
#lx-confirm-title  { font-size: 17px; font-weight: 700; color: var(--text1); text-align: center; margin-bottom: 8px; }
#lx-confirm-msg    { font-size: 14px; color: var(--text2); text-align: center; line-height: 1.5; margin-bottom: 22px; }
#lx-confirm-btns   { display: flex; gap: 8px; }
#lx-confirm-btns button { flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   16. UTILITY HELPERS
   ═══════════════════════════════════════════════════════════════ */
.lx-ellipsis   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-flex-center { display: flex; align-items: center; justify-content: center; }
.lx-flex-between { display: flex; align-items: center; justify-content: space-between; }
.lx-gap-sm  { gap: 6px; }
.lx-gap-md  { gap: 12px; }
.lx-gap-lg  { gap: 20px; }
.lx-mt-sm   { margin-top: 8px; }
.lx-mt-md   { margin-top: 16px; }
.lx-mt-lg   { margin-top: 24px; }
.lx-text-accent  { color: var(--accent); }
.lx-text-danger  { color: var(--danger); }
.lx-text-success { color: var(--success); }
.lx-text-muted   { color: var(--text3); }
.lx-text-sm      { font-size: 12px; }
.lx-text-xs      { font-size: 11px; }
.lx-fw-bold      { font-weight: 700; }
.lx-uppercase    { text-transform: uppercase; letter-spacing: 0.5px; }
