﻿/* ===============================================================
   CROWSIGHT â€” AUTH / PROFILE / NOTIFICATIONS / SEARCH
   Liquid Obsidian â€” 1:1 with Stitch design
   =============================================================== */

/* ============ NAV AUTH BUTTON ============ */
.auth-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #ff2147 0%, #FF0033 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background var(--t-base) var(--ease);
  box-shadow:
    0 2px 16px rgba(255, 0, 51, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 24px rgba(255, 0, 51, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.auth-btn--logged-in {
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.45);
  color: var(--crimson-light);
  box-shadow:
    0 0 16px rgba(255, 0, 51, 0.18),
    inset 0 0 12px rgba(255, 0, 51, 0.08);
}
.auth-btn--logged-in:hover {
  background: rgba(255, 0, 51, 0.16);
  color: #fff;
}

/* ============ MODAL BACKDROP ============ */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
}
.auth-modal.open { display: flex; }

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

/* ============ DIALOG (Liquid Glass) ============ */
.auth-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 36px 32px 32px;
  background: rgba(15, 15, 17, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: var(--r-xl);
  box-shadow:
    0 0 80px rgba(255, 0, 51, 0.2),
    0 32px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: visible;
  animation: modalIn 0.35s var(--ease-out);
}
.auth-dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 0, 51, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.auth-dialog > * { position: relative; z-index: 1; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.auth-close:hover {
  background: rgba(255, 0, 51, 0.1);
  color: #fff;
}

.auth-back-btn {
  position: absolute;
  /* Compensate for parent panel offset:
     dialog padding-top is 36px, panel padding-top is 44px on these panels.
     We want the Back button at ~14px from dialog top (same as close button).
     14 - 36 = -22px (top relative to panel padding edge)
     Same idea for left: dialog has padding-left 32px, so left: -18px = 14px from dialog left. */
  top: -22px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-pill);
  color: var(--text-mute);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  z-index: 5;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
/* Panels containing a back button need top padding so content clears it */
#panelAccount,
#panelChangePassword,
#panelDeleteAccount { padding-top: 44px; }

.auth-back-btn:hover {
  background: rgba(255, 0, 51, 0.1);
  color: #fff;
}

/* ============ TABS ============ */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: 4px;
}
.auth-tab {
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  background: none;
  border: none;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.auth-tab:hover { color: #fff; }
.auth-tab.active {
  background: rgba(255, 0, 51, 0.14);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 0, 51, 0.35),
    0 0 14px rgba(255, 0, 51, 0.15);
}

/* ============ PANELS ============ */
.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 4px;
}
.auth-panel.hidden { display: none; }
.hidden { display: none !important; }
.auth-panel-sub {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-top: -4px;
  margin-bottom: 4px;
}

/* ============ FORM FIELDS ============ */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.auth-field input,
.auth-field textarea,
.auth-field select {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #fff;
  background: #050505;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.auth-field textarea {
  resize: vertical;
  min-height: 70px;
  font-family: var(--font);
}
.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: var(--text-fade);
  font-family: var(--font);
}
.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus {
  border-color: var(--crimson);
  box-shadow:
    0 0 0 3px rgba(255, 0, 51, 0.1),
    0 0 16px rgba(255, 0, 51, 0.18);
}

.auth-error {
  font-family: var(--font);
  font-size: 12px;
  color: #ff6b80;
  background: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.3);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.auth-success {
  font-family: var(--font);
  font-size: 12px;
  color: #6dff9e;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.auth-info {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-mute);
}

.auth-submit { margin-top: 6px; }

/* ============ CAPTCHA ============ */
.captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}
.captcha-blocked {
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #ff6b80;
  background: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.3);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}

/* ============ USER PANEL (Profile.png) ============ */
#panelUser { align-items: center; text-align: center; padding-top: 4px; }
.user-avatar-wrap { margin-bottom: 14px; margin-top: 8px; }
.user-avatar-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ff3a5a 0%, #c8002b 60%, #800018 100%);
  border: 2px solid rgba(255, 90, 110, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 32px rgba(255, 0, 51, 0.55),
    inset 0 2px 10px rgba(255, 255, 255, 0.2),
    inset 0 -2px 14px rgba(0, 0, 0, 0.45);
}
.user-avatar-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.user-avatar-circle span {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.user-display-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.user-email {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 4px;
}

.license-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-top: 4px;
}
.license-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.license-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.license-checking {
  color: var(--text-fade);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
}
.license-active {
  color: #6dff9e;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.4);
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.25);
}
.license-inactive {
  color: var(--crimson);
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.4);
}
.license-free {
  color: #aaa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
}
.admin-badge {
  color: #fff;
  background: var(--crimson);
  border: 1px solid var(--crimson);
  box-shadow: 0 0 14px rgba(255, 0, 51, 0.55);
}
.mod-badge {
  color: #fff;
  background: rgba(99, 102, 241, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

#viewAccountBtn { margin-top: 10px; }
#signOutBtn { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); color: var(--text-mute); }
#signOutBtn:hover { background: rgba(255, 0, 51, 0.08); border-color: rgba(255, 0, 51, 0.35); color: #fff; }

/* ============ ACCOUNT PANEL (ViewAccount.png) ============ */
#panelAccount { padding-top: 28px; }
.account-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.account-avatar-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ff3a5a 0%, #c8002b 60%, #800018 100%);
  border: 2px solid rgba(255, 90, 110, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 36px rgba(255, 0, 51, 0.5),
    inset 0 2px 12px rgba(255, 255, 255, 0.18),
    inset 0 -2px 16px rgba(0, 0, 0, 0.45);
}
.account-avatar-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.account-avatar-circle span {
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.account-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.account-avatar-btn:hover {
  background: rgba(255, 0, 51, 0.08);
  border-color: rgba(255, 0, 51, 0.3);
  color: #fff;
}
.account-avatar-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-fade);
}

.bio-char-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-fade);
  text-align: right;
  margin-top: -2px;
}

/* Toggle row */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-soft);
  user-select: none;
}
.toggle-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 40px; height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  border: 1px solid var(--border-glass);
  position: relative;
  cursor: pointer;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  flex-shrink: 0;
}
.toggle-row input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--t-base) var(--ease);
}
.toggle-row input[type="checkbox"]:checked {
  background: var(--crimson);
  border-color: var(--crimson);
}
.toggle-row input[type="checkbox"]:checked::before { transform: translateX(18px); }

/* License activate */
.license-activate-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.license-activate-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.license-key-row {
  display: flex;
  gap: 8px;
}
.license-key-row input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  background: #050505;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-sm);
  color: #fff;
  padding: 8px 12px;
  outline: none;
}
.license-key-row input:focus { border-color: var(--crimson); }
.license-activate-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.license-success-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6dff9e;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: var(--r-md);
  padding: 10px 14px;
}

/* Account nav buttons (Change Password / Delete) */
.account-section-divider {
  border-top: 1px solid var(--border-glass);
  margin: 14px 0 6px;
}
.account-section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.account-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.account-nav-btn svg:first-child { flex-shrink: 0; stroke: var(--text-mute); }
.account-nav-chevron { margin-left: auto; stroke: var(--text-fade); }
.account-nav-btn:hover {
  background: rgba(255, 0, 51, 0.06);
  border-color: rgba(255, 0, 51, 0.3);
  color: #fff;
}
.account-nav-btn:hover svg { stroke: var(--crimson); }
.account-nav-btn--danger:hover {
  background: rgba(255, 0, 51, 0.08);
  border-color: rgba(255, 0, 51, 0.4);
}

/* Danger zone */
.danger-zone {
  background: rgba(255, 0, 51, 0.05);
  border: 1px solid rgba(255, 0, 51, 0.25);
  border-radius: var(--r-md);
  padding: 18px;
  margin-top: 4px;
}
.danger-zone-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}
.danger-zone-hint {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 14px;
}
.danger-zone-hint strong { color: #fff; font-weight: 600; }
.danger-confirm-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  background: #050505;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-sm);
  color: #fff;
  padding: 10px 12px;
  outline: none;
  margin-bottom: 12px;
}
.danger-confirm-input:focus { border-color: var(--crimson); }
.danger-confirm-input--shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.btn-danger-zone {
  width: 100%;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 0, 51, 0.5);
  border: 1px solid rgba(255, 0, 51, 0.7);
  border-radius: var(--r-pill);
  padding: 11px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.btn-danger-zone:hover {
  background: var(--crimson);
  box-shadow: 0 0 24px rgba(255, 0, 51, 0.55);
}
.btn-danger {
  background: var(--crimson);
  color: #fff;
  border: 1px solid var(--crimson);
  box-shadow: 0 2px 16px rgba(255, 0, 51, 0.45);
}
.btn-danger:hover {
  background: #ff1a47;
  box-shadow: 0 4px 24px rgba(255, 0, 51, 0.6);
}

/* ============ NOTIFICATIONS PANEL (Notifications.png) ============ */
.notif-wrap, .user-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.notif-btn:hover {
  background: rgba(255, 0, 51, 0.08);
  color: #fff;
  border-color: rgba(255, 0, 51, 0.35);
}
.notif-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  min-width: 16px; height: 16px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.6);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 320px;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 0, 51, 0.4);
  border-radius: var(--r-lg);
  padding: 18px;
  z-index: 300;
  box-shadow:
    0 0 48px rgba(255, 0, 51, 0.22),
    0 24px 64px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.notif-header {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--crimson);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}
.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.notif-item:last-child { border-bottom: none; }
.notif-item-info {
  flex: 1;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
}
.notif-item-info strong { color: #fff; font-weight: 600; }
.notif-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.notif-accept-btn, .notif-decline-btn {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.notif-accept-btn {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.35);
}
.notif-accept-btn:hover { background: #ff1a47; }
.notif-decline-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass);
  color: var(--text-mute);
}
.notif-decline-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.notif-empty {
  font-size: 13px;
  color: var(--text-fade);
  text-align: center;
  padding: 16px 0;
  margin: 0;
}
.notif-item--system {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--r-md);
  padding: 10px;
  margin-bottom: 6px;
}
.notif-system-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ============ USER SEARCH PANEL (SearchUsers.png) ============ */
.user-search-input-row { margin-bottom: 12px; }
.user-search-input-row input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  background: #050505;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  color: #fff;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.user-search-input-row input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.1), 0 0 16px rgba(255, 0, 51, 0.18);
}
.user-search-input-row input::placeholder {
  color: var(--text-fade);
  font-family: var(--font);
}
.search-result-item {
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  border-radius: var(--r-sm);
  padding: 8px 6px;
  border-bottom: none !important;
}
.search-result-item:hover { background: rgba(255, 0, 51, 0.06); }
.search-result-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.15);
  border: 1px solid rgba(255, 0, 51, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.search-result-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.search-result-avatar-initials {
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson);
}
.notif-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ============ CONFIRM MODAL ============ */
.confirm-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.35);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.25);
}
.confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.confirm-sub {
  font-size: 13.5px;
  color: var(--text-mute);
  text-align: center;
  line-height: 1.6;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .auth-modal { padding: 24px 12px; }
  .auth-tabs { margin-bottom: 18px; }
  .auth-tab { font-size: 12.5px; padding: 8px 10px; }
  .license-key-row { flex-direction: column; }
  .license-key-row input { font-size: 11.5px; padding: 9px 11px; }
  .license-activate-btn { width: 100%; }
}

@media (max-width: 480px) {
  .auth-dialog {
    padding: 28px 18px 22px;
    max-width: 100%;
    border-radius: 18px;
  }
  /* Adjust back button compensation for smaller dialog padding */
  .auth-back-btn { top: -22px; left: -4px; font-size: 12px; padding: 5px 10px 5px 7px; }
  .auth-close { top: 12px; right: 12px; width: 28px; height: 28px; }
  #panelAccount, #panelChangePassword, #panelDeleteAccount { padding-top: 38px; }

  .user-avatar-circle { width: 68px; height: 68px; }
  .user-avatar-circle span { font-size: 1.2rem; }
  .user-display-name { font-size: 1rem; }
  .user-email { font-size: 0.8rem; }
  .account-avatar-circle { width: 78px; height: 78px; }
  .account-avatar-circle span { font-size: 1.45rem; }

  .auth-field input,
  .auth-field textarea,
  .auth-field select { font-size: 13px; padding: 10px 12px; }
  .auth-field label { font-size: 10px; }

  .danger-zone { padding: 14px; }
  .danger-zone-hint { font-size: 12px; }

  .notif-panel {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .notif-item-info { font-size: 12px; }
  .notif-accept-btn, .notif-decline-btn { font-size: 10.5px; padding: 4px 9px; }
}

