/* ═══════════════════════════════════════════════════════════
   HXDECI PREMIUM DESIGN SYSTEM v1.0
   Unified visual language across all HXDECI surfaces
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  --hx-blue: #2d5bff;
  --hx-blue-soft: rgba(45,91,255,0.12);
  --hx-blue-glow: rgba(45,91,255,0.35);
  --hx-pink: #ff0055;
  --hx-pink-soft: rgba(255,0,85,0.12);
  --hx-cyan: #00e5ff;
  --hx-purple: #bc13fe;
  --hx-gold: #ffd700;
  --hx-gold-soft: rgba(255,215,0,0.15);
  --hx-green: #00d68f;
  --hx-green-soft: rgba(0,214,143,0.15);
  --hx-surface-0: #000000;
  --hx-surface-1: #060609;
  --hx-surface-2: rgba(255,255,255,0.03);
  --hx-surface-3: rgba(255,255,255,0.06);
  --hx-surface-4: rgba(255,255,255,0.09);
  --hx-border-subtle: rgba(255,255,255,0.06);
  --hx-border-medium: rgba(255,255,255,0.10);
  --hx-border-strong: rgba(255,255,255,0.18);
  --hx-text-primary: #ffffff;
  --hx-text-secondary: rgba(255,255,255,0.65);
  --hx-text-tertiary: rgba(255,255,255,0.35);
  --hx-text-ghost: rgba(255,255,255,0.18);
  --hx-blur-sm: 12px;
  --hx-blur-md: 24px;
  --hx-blur-lg: 40px;
  --hx-radius-sm: 10px;
  --hx-radius-md: 16px;
  --hx-radius-lg: 24px;
  --hx-radius-xl: 32px;
  --hx-radius-full: 9999px;
  --hx-shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --hx-shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --hx-shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --hx-shadow-glow-blue: 0 0 20px rgba(45,91,255,0.2), 0 0 60px rgba(45,91,255,0.08);
  --hx-shadow-glow-pink: 0 0 20px rgba(255,0,85,0.2), 0 0 60px rgba(255,0,85,0.08);
  --hx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hx-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hx-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --hx-duration-fast: 150ms;
  --hx-duration-normal: 250ms;
  --hx-duration-slow: 400ms;
}

/* ─── 2. TYPOGRAPHY ─── */
.hx-display { font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.hx-heading { font-family: 'Orbitron', sans-serif; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.hx-body { font-family: 'Rajdhani', sans-serif; font-weight: 500; }
.hx-body-bold { font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.hx-mono { font-family: 'Share Tech Mono', monospace; }
.hx-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hx-text-tertiary);
}

/* ─── 3. PREMIUM GLASS SURFACES ─── */
.hx-glass {
  background: var(--hx-surface-2);
  backdrop-filter: blur(var(--hx-blur-md)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--hx-blur-md)) saturate(1.4);
  border: 1px solid var(--hx-border-subtle);
}
.hx-glass-elevated {
  background: rgba(8,8,16,0.88);
  backdrop-filter: blur(var(--hx-blur-lg)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--hx-blur-lg)) saturate(1.6);
  border: 1px solid var(--hx-border-medium);
  box-shadow: var(--hx-shadow-md);
}
.hx-glass-prominent {
  background: rgba(6,6,12,0.95);
  backdrop-filter: blur(48px) saturate(1.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  border: 1px solid var(--hx-border-strong);
  box-shadow: var(--hx-shadow-lg);
}

/* ─── 4. POST CARD SYSTEM ─── */
.hx-post {
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--hx-border-subtle);
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.hx-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}
.hx-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--hx-radius-full);
  object-fit: cover;
  border: 2px solid transparent;
  background: var(--hx-surface-3);
  flex-shrink: 0;
  transition: transform var(--hx-duration-fast) var(--hx-ease-spring);
}
.hx-post-avatar:active { transform: scale(0.92); }
.hx-post-avatar.vip { border-color: var(--hx-gold); }
.hx-post-avatar.tier3 { border-color: var(--hx-blue); }
.hx-post-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--hx-text-primary);
  line-height: 1.1;
}
.hx-post-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--hx-text-tertiary);
}
.hx-post-media {
  position: relative;
  width: 100%;
  background: var(--hx-surface-1);
  overflow: hidden;
}
.hx-post-media img,
.hx-post-media video {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.hx-post-media-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hx-surface-1);
}
.hx-post-actions {
  display: flex;
  align-items: center;
  padding: 10px 14px 4px;
  gap: 16px;
}
.hx-post-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--hx-text-primary);
  cursor: pointer;
  padding: 0;
  transition: transform var(--hx-duration-fast) var(--hx-ease-spring), color var(--hx-duration-fast);
  -webkit-tap-highlight-color: transparent;
}
.hx-post-action:active { transform: scale(0.78); }
.hx-post-action svg { width: 24px; height: 24px; }
.hx-post-action.liked { color: var(--hx-pink); }
.hx-post-action.liked svg { fill: var(--hx-pink); }
.hx-post-action.saved { color: var(--hx-text-primary); }
.hx-post-action.saved svg { fill: var(--hx-text-primary); }
.hx-post-action-spacer { flex: 1; }
.hx-post-likes {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 0 16px;
  color: var(--hx-text-primary);
}
.hx-post-caption {
  padding: 2px 16px 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--hx-text-secondary);
}
.hx-post-caption strong {
  font-weight: 700;
  color: var(--hx-text-primary);
  margin-right: 6px;
}
.hx-post-comments-link {
  display: block;
  padding: 0 16px 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: var(--hx-text-tertiary);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
}
.hx-post-timestamp {
  display: block;
  padding: 0 16px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--hx-text-ghost);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hx-post-freq {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  margin: 0 2px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--hx-blue);
  background: var(--hx-blue-soft);
  border: 1px solid rgba(45,91,255,0.15);
  border-radius: var(--hx-radius-full);
  letter-spacing: 0.04em;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.hx-post-freq.cursor-pointer:hover {
  background: rgba(45,91,255,0.18);
  border-color: rgba(45,91,255,0.4);
  color: #fff;
  transform: scale(1.04);
}

/* Double-tap heart */
.hx-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 50;
  animation: hx-heart-pop 0.9s var(--hx-ease-spring) forwards;
}
.hx-heart-burst svg { width: 80px; height: 80px; fill: var(--hx-pink); filter: drop-shadow(0 0 20px rgba(255,0,85,0.6)); }
@keyframes hx-heart-pop {
  0% { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  15% { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
  30% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  80% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.1); opacity: 0; }
}

/* Media dots */
.hx-media-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 0 2px;
}
.hx-media-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hx-text-ghost);
  transition: all var(--hx-duration-normal) var(--hx-ease-out);
}
.hx-media-dot.active {
  background: var(--hx-blue);
  transform: scale(1.25);
}

/* ─── 5. CHAT / MESSAGE SYSTEM ─── */
.hx-msg-group { padding: 0 12px; margin-bottom: 6px; }
.hx-msg-group-header {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 3px;
}
.hx-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--hx-radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--hx-border-medium);
}
.hx-msg-avatar.vip { border-color: var(--hx-gold); }
.hx-msg-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--hx-text-tertiary);
  padding-bottom: 2px;
}
.hx-msg-name.vip { color: var(--hx-gold); }
.hx-msg-bubble {
  max-width: 78%;
  padding: 10px 16px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--hx-text-primary);
  position: relative;
  transition: transform var(--hx-duration-fast) var(--hx-ease-spring);
  word-break: break-word;
}
.hx-msg-bubble:active { transform: scale(0.98); }
.hx-msg-bubble.incoming {
  background: var(--hx-surface-3);
  border: 1px solid var(--hx-border-subtle);
  border-bottom-left-radius: 6px;
  margin-left: 40px;
}
.hx-msg-bubble.incoming.first { border-top-left-radius: 20px; }
.hx-msg-bubble.incoming.last { border-bottom-left-radius: 20px; }
.hx-msg-bubble.outgoing {
  background: linear-gradient(135deg, rgba(45,91,255,0.18) 0%, rgba(45,91,255,0.08) 100%);
  border: 1px solid rgba(45,91,255,0.15);
  border-bottom-right-radius: 6px;
  margin-left: auto;
}
.hx-msg-bubble.outgoing.first { border-top-right-radius: 20px; }
.hx-msg-bubble.outgoing.last { border-bottom-right-radius: 20px; }
.hx-msg-time {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--hx-text-ghost);
  padding: 3px 0 0 44px;
  text-transform: uppercase;
}
.hx-msg-time.outgoing { text-align: right; padding-right: 4px; padding-left: 0; }

/* Typing indicator */
.hx-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 20px;
  background: var(--hx-surface-3);
  border: 1px solid var(--hx-border-subtle);
  margin-left: 40px;
}
.hx-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hx-text-tertiary);
  animation: hx-typing-bounce 1.4s ease-in-out infinite;
}
.hx-typing-dot:nth-child(2) { animation-delay: 0.16s; }
.hx-typing-dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes hx-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Read receipts */
.hx-read-receipt {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  text-align: right;
  padding: 2px 4px 0 0;
  color: var(--hx-text-ghost);
  text-transform: uppercase;
}
.hx-read-receipt.seen { color: var(--hx-blue); }
.hx-read-receipt svg { width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 2px; }

/* ─── 6. COMPOSE BAR ─── */
.hx-compose {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 8px);
  background: linear-gradient(to top, rgba(0,0,0,0.98) 60%, rgba(0,0,0,0.85) 85%, transparent 100%);
  transition: bottom var(--hx-duration-normal) var(--hx-ease-out);
}
body.hx-mobile-nav-active .hx-compose {
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}
.hx-compose-inner {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--hx-surface-3);
  border: 1px solid var(--hx-border-medium);
  border-radius: 28px;
  padding: 6px 6px 6px 18px;
  transition: border-color var(--hx-duration-fast);
}
.hx-compose-inner:focus-within { border-color: rgba(45,91,255,0.3); }
.hx-compose-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--hx-text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  min-height: 20px;
  max-height: 100px;
  resize: none;
  line-height: 1.4;
}
.hx-compose-input::placeholder { color: var(--hx-text-ghost); }
.hx-compose-send {
  width: 36px;
  height: 36px;
  border-radius: var(--hx-radius-full);
  border: none;
  background: var(--hx-blue);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--hx-duration-fast) var(--hx-ease-spring), opacity var(--hx-duration-fast);
  box-shadow: 0 0 16px rgba(45,91,255,0.3);
  -webkit-tap-highlight-color: transparent;
}
.hx-compose-send:active { transform: scale(0.85); }
.hx-compose-send:disabled { opacity: 0.3; transform: scale(1); }
.hx-compose-send svg { width: 18px; height: 18px; }

/* ─── 7. THREAD LIST (DMs) ─── */
.hx-thread-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--hx-radius-lg);
  cursor: pointer;
  transition: background var(--hx-duration-fast);
  -webkit-tap-highlight-color: transparent;
}
.hx-thread-item:active { background: var(--hx-surface-3); }
.hx-thread-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.hx-thread-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--hx-radius-full);
  object-fit: cover;
  border: 2px solid var(--hx-border-subtle);
}
.hx-thread-avatar .online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hx-green);
  border: 3px solid var(--hx-surface-0);
  box-shadow: 0 0 8px rgba(0,214,143,0.5);
}
.hx-thread-body { flex: 1; min-width: 0; }
.hx-thread-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--hx-text-primary);
  line-height: 1.2;
}
.hx-thread-name.unread { color: #fff; }
.hx-thread-preview {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: var(--hx-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.hx-thread-preview.unread { color: var(--hx-text-secondary); font-weight: 600; }
.hx-thread-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.hx-thread-time {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--hx-text-ghost);
}
.hx-thread-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hx-blue);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── 8. PREMIUM BUTTONS ─── */
.hx-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--hx-radius-full);
  background: var(--hx-blue);
  color: #000;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform var(--hx-duration-fast) var(--hx-ease-spring), box-shadow var(--hx-duration-normal);
  box-shadow: 0 0 20px rgba(45,91,255,0.25);
  -webkit-tap-highlight-color: transparent;
}
.hx-btn-primary:active { transform: scale(0.95); }
.hx-btn-primary:disabled { opacity: 0.4; transform: none; }
.hx-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--hx-border-medium);
  border-radius: var(--hx-radius-full);
  background: transparent;
  color: var(--hx-text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--hx-duration-fast) var(--hx-ease-out);
  -webkit-tap-highlight-color: transparent;
}
.hx-btn-ghost:active { transform: scale(0.95); background: var(--hx-surface-3); }

/* ─── 9. AVATAR SYSTEM ─── */
.hx-avatar-ring {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hx-blue), var(--hx-cyan));
}
.hx-avatar-ring.story-unseen { background: linear-gradient(135deg, #ff6b8d, #ff9a5d, #ffd782); }
.hx-avatar-ring.story-seen { background: var(--hx-surface-4); }
.hx-avatar-ring.vip { background: linear-gradient(135deg, var(--hx-gold), #ffaa00); }
.hx-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--hx-surface-0);
}

/* ─── 10. BADGES & PILLS ─── */
.hx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--hx-radius-full);
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.hx-badge-pink { background: var(--hx-pink); color: #fff; }
.hx-badge-blue { background: var(--hx-blue); color: #fff; }
.hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--hx-radius-full);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.hx-pill-blue { background: var(--hx-blue-soft); color: var(--hx-blue); border: 1px solid rgba(45,91,255,0.15); }
.hx-pill-gold { background: var(--hx-gold-soft); color: var(--hx-gold); border: 1px solid rgba(255,215,0,0.2); }
.hx-pill-green { background: var(--hx-green-soft); color: var(--hx-green); border: 1px solid rgba(0,214,143,0.2); }

/* ─── 11. SECTION HEADERS ─── */
.hx-section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hx-text-tertiary);
  padding: 20px 16px 8px;
}

/* ─── 12. PREMIUM FEED TABS ─── */
.hx-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--hx-border-subtle);
  background: var(--hx-surface-0);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hx-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  background: none;
  border: none;
  color: var(--hx-text-tertiary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  position: relative;
  transition: color var(--hx-duration-fast);
  -webkit-tap-highlight-color: transparent;
}
.hx-tab.active { color: var(--hx-text-primary); }
.hx-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24%;
  right: 24%;
  height: 2px;
  border-radius: 1px;
  background: var(--hx-text-primary);
}

/* ─── 13. MICRO-ANIMATIONS ─── */
@keyframes hx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hx-slide-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hx-scale-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes hx-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,91,255,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(45,91,255,0); }
}
@keyframes hx-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.hx-animate-in { animation: hx-slide-up 0.4s var(--hx-ease-out) both; }
.hx-animate-fade { animation: hx-fade-in 0.3s ease both; }
.hx-animate-scale { animation: hx-scale-in 0.35s var(--hx-ease-spring) both; }
.hx-skeleton {
  background: linear-gradient(90deg, var(--hx-surface-2) 25%, var(--hx-surface-4) 50%, var(--hx-surface-2) 75%);
  background-size: 200% 100%;
  animation: hx-shimmer 1.5s ease infinite;
  border-radius: var(--hx-radius-sm);
}

/* ─── 14. PULL TO REFRESH ─── */
.hx-ptr-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
}
.hx-ptr-indicator.pulling { height: 60px; }
.hx-ptr-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--hx-surface-4);
  border-top-color: var(--hx-blue);
  border-radius: 50%;
  animation: hx-ptr-spin 0.8s linear infinite;
}
@keyframes hx-ptr-spin { to { transform: rotate(360deg); } }

/* ─── 15. NOTIFICATION DOT ─── */
.hx-dot-online {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hx-green);
  border: 2px solid var(--hx-surface-0);
  box-shadow: 0 0 6px rgba(0,214,143,0.5);
}
.hx-dot-away {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hx-gold);
  border: 2px solid var(--hx-surface-0);
}

/* ─── 16. MODAL SYSTEM ─── */
.hx-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  animation: hx-fade-in 0.2s ease both;
}
.hx-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 92vh;
  border-radius: var(--hx-radius-xl) var(--hx-radius-xl) 0 0;
  overflow: hidden;
  z-index: 501;
  animation: hx-modal-slide 0.35s var(--hx-ease-out) both;
}
@keyframes hx-modal-slide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.hx-modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--hx-text-ghost);
  margin: 10px auto 6px;
}

/* ─── 17. EMPTY STATES ─── */
.hx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.hx-empty-icon { color: var(--hx-text-ghost); margin-bottom: 16px; }
.hx-empty-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hx-blue);
  margin-bottom: 8px;
}
.hx-empty-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--hx-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── 18. UNIFIED SCROLLBAR ─── */
.hx-scroll::-webkit-scrollbar { width: 3px; }
.hx-scroll::-webkit-scrollbar-track { background: transparent; }
.hx-scroll::-webkit-scrollbar-thumb { background: var(--hx-surface-4); border-radius: 2px; }
.hx-scroll { scrollbar-width: thin; scrollbar-color: var(--hx-surface-4) transparent; }

/* ─── 19. SAFE AREA ADJUSTMENTS ─── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .hx-safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ─── 20. OVERSCROLL GLOW ─── */
.hx-overscroll-glow {
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

/* ─── 21. PASSWORD PEEK TOGGLE ─── */
.hx-pw-wrap {
  position: relative;
  display: inline-flex;
  width: 100%;
}
.hx-pw-wrap > input { flex: 1; padding-right: 36px !important; }
.hx-pw-peek {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--hx-text-tertiary, rgba(255,255,255,0.35));
  transition: color 0.15s ease;
  line-height: 0;
  z-index: 2;
  outline: none;
}
.hx-pw-peek:hover,
.hx-pw-peek:focus-visible {
  color: var(--hx-text-secondary, rgba(255,255,255,0.7));
}
.hx-pw-peek svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── 22. IMAGE BLUR-UP ─── */
.hx-img-loading {
  filter: blur(20px);
  transform: scale(1.05);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.hx-img-loaded {
  filter: blur(0);
  transform: scale(1);
}
