*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font-family: inherit; }

:root {
  --bg: #03050a;
  --surface: #080d16;
  --surface2: #0d1525;
  --border: rgba(99,140,255,0.1);
  --border2: rgba(99,140,255,0.18);
  --text: #e4eaff;
  --muted: rgba(180,196,255,0.45);
  --accent: #4f7dff;
  --accent2: #7c9fff;
  --glow: rgba(79,125,255,0.15);
  --mono: 'DM Mono', monospace;
  --serif: 'Outfit', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30,60,180,0.35) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 80%, rgba(20,40,120,0.2) 0%, transparent 60%),
              var(--bg);
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  background: rgba(3,5,15,0.92);
  border-bottom: 1px solid rgba(79,125,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo:hover { opacity: 0.6; }

.logo-icon { display: none; }

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
}

.nav-center {
  display: flex;
  gap: 0;
}

.nav-link {
  padding: 6px 16px;
  height: 48px;
  line-height: 36px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(180,196,255,0.55);
  transition: color .15s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  margin: 0 2px;
  position: relative;
}

.nav-link:hover { color: var(--text); }

.nav-link.active {
  color: var(--text);
  background: rgba(79,125,255,0.12);
  border: 1px solid rgba(79,125,255,0.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-btn {
  padding: 0 14px;
  height: 48px;
  line-height: 48px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  transition: color .15s;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.nav-btn:hover { color: var(--text); }

.nav-btn-primary {
  color: var(--text);
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.nav-btn-primary:hover { opacity: 0.7; }
.nav-btn-cta {
  padding: 7px 16px;
  background: linear-gradient(135deg, #2a4fd4, #1a3bb8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(42,79,212,0.35);
}
.nav-btn-cta:hover {
  background: linear-gradient(135deg, #3560e8, #2448cc);
  box-shadow: 0 6px 20px rgba(42,79,212,0.5);
}


.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 48px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
}

.nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  background-size: cover;
  background-position: center;
}

.nav-username {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}

.main {
  padding-top: 56px;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.view {
  display: none;
  animation: fadeIn .15s ease;
}

.view.active {
  display: block;
}

.hidden {
  display: none !important;
}

.hero {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px 120px;
  position: relative;
}

.hero-online {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid rgba(79,125,255,0.2);
  background: rgba(79,125,255,0.05);
  padding: 5px 14px;
  margin-bottom: 48px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
}

.hero-online-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse2 2s infinite;
}

@keyframes pulse2 { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes floatUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes glowPulse { 0%,100%{opacity:0.5} 50%{opacity:1} }

.hero {
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px 160px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(30,70,220,0.4) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-glow2 {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(20,50,160,0.25) 0%, transparent 70%);
  bottom: 0;
  right: 10%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  animation: floatUp .6s cubic-bezier(0.16,1,0.3,1) forwards;
  border: 1px solid rgba(79,125,255,0.15);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
}

.hero-badge-left {
  background: rgba(79,125,255,0.15);
  color: rgba(180,196,255,0.6);
  padding: 7px 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  border-right: 1px solid rgba(79,125,255,0.15);
}

.hero-badge-right {
  background: rgba(5,10,30,0.8);
  color: var(--accent2);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
}

.hero-badge-count {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.hero-badge-cursor {
  width: 2px;
  height: 12px;
  background: var(--accent2);
  animation: cursorBlink .9s step-end infinite;
  border-radius: 1px;
}

@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-online-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse2 2s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  color: #fff;
  animation: floatUp .6s cubic-bezier(0.16,1,0.3,1) .1s both;
}

.hero-title-accent {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(180,196,255,0.6);
  margin-bottom: 8px;
  animation: floatUp .6s cubic-bezier(0.16,1,0.3,1) .2s both;
  max-width: 480px;
}

.hero-sub2 {
  font-size: 12px;
  color: rgba(180,196,255,0.35);
  margin-bottom: 40px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  animation: floatUp .6s cubic-bezier(0.16,1,0.3,1) .25s both;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  animation: floatUp .6s cubic-bezier(0.16,1,0.3,1) .3s both;
  margin-bottom: 64px;
}

.hero-cta-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, #2a4fd4, #1a3bb8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 8px 32px rgba(42,79,212,0.4), 0 0 0 1px rgba(79,125,255,0.2) inset;
  letter-spacing: 0.01em;
}
.hero-cta-primary:hover {
  background: linear-gradient(135deg, #3560e8, #2448cc);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(42,79,212,0.6);
}

.hero-cta-secondary {
  padding: 14px 32px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.hero-cta-secondary:hover {
  background: rgba(79,125,255,0.08);
  border-color: rgba(79,125,255,0.3);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: floatUp .6s cubic-bezier(0.16,1,0.3,1) .4s both;
}

.hero-stat-card {
  background: rgba(8,15,35,0.8);
  border: 1px solid rgba(79,125,255,0.12);
  border-radius: 14px;
  padding: 20px 28px;
  min-width: 160px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.hero-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.hero-stat-num span { font-size: 20px; color: var(--muted); }

.hero-stat-label {
  font-size: 12px;
  color: rgba(180,196,255,0.4);
  font-family: var(--mono);
}

.hero-stat-sub {
  font-size: 11px;
  color: rgba(180,196,255,0.3);
  margin-top: 2px;
}

.features-section {
  padding: 0 32px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-section-title {
  text-align: center;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: rgba(8,15,35,0.7);
  border: 1px solid rgba(79,125,255,0.1);
  border-radius: 16px;
  padding: 28px 24px 24px;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,125,255,0.3), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.feature-card:hover {
  background: rgba(15,28,60,0.9);
  border-color: rgba(79,125,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,30,0.4);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(79,125,255,0.1);
  border: 1px solid rgba(79,125,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
  transition: all .25s;
  color: var(--accent2);
}

.feature-card:hover .feature-icon {
  background: rgba(79,125,255,0.18);
  border-color: rgba(79,125,255,0.3);
}

.feature-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 13px;
  color: rgba(180,196,255,0.45);
  line-height: 1.6;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent2);
  opacity: 0;
  transition: opacity .2s;
}

.feature-card:hover .feature-link { opacity: 1; }


.btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.pricing {
  padding: 80px 32px;
}

.pricing-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: all .3s;
}

.pricing-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.pricing-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--muted);
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--text);
  font-weight: 700;
  margin-right: 8px;
}

.chat-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 40px 0;
}

.chat-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  height: 700px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 16px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  animation: slideUp .2s ease;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.chat-content {
  flex: 1;
}

.chat-username {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  cursor: pointer;
}

.chat-username:hover {
  text-decoration: underline;
}

.chat-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.chat-input-container {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.chat-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.2);
}

.chat-send {
  padding: 10px 24px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.chat-send:hover {
  background: rgba(255,255,255,0.9);
}

.sidebar {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: 700px;
  overflow-y: auto;
}

.sidebar-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}

.user-item:hover {
  background: rgba(255,255,255,0.05);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  background-size: cover;
  background-position: center;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.badge-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  transition: transform .2s, filter .2s;
  cursor: default;
}

.badge-img:hover {
  transform: scale(1.3) translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,15,35,0.95);
  border: 1px solid rgba(79,125,255,0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  z-index: 999;
}

.user-badge:hover .badge-tooltip { opacity: 1; }

.badge-member {
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.profile-container {
  max-width: 800px;
  margin: 40px auto;
}

.profile-header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 20px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: all .2s;
}

.profile-avatar-large:hover {
  opacity: 0.8;
}

.profile-username {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-url {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.profile-bio {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 24px;
}

.section {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
}

.link-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all .2s;
}

.link-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}

.link-title {
  font-weight: 600;
  font-size: 15px;
}

.delete-btn {
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.delete-btn:hover {
  background: #f87171;
  color: #000;
  border-color: #f87171;
}

@keyframes modalIn {
  from { opacity:0; transform:translateY(24px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.auth-modal {
  background: linear-gradient(170deg, #0c1530 0%, #070d1e 50%, #050a17 100%) !important;
  border: 1px solid rgba(79,125,255,0.18) !important;
  box-shadow: 0 40px 100px rgba(0,0,20,0.8),
              0 0 80px rgba(42,79,212,0.08),
              0 1px 0 rgba(79,125,255,0.12) inset !important;
  padding: 36px 32px 28px !important;
}

.auth-badge {
  display: inline-block;
  background: rgba(79,125,255,0.12);
  border: 1px solid rgba(79,125,255,0.25);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent2);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.auth-secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11px;
  color: rgba(180,196,255,0.3);
  font-family: var(--mono);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  font-family: 'Outfit', sans-serif;
}

.modal-subtitle {
  font-size: 13px;
  color: rgba(180,196,255,0.45);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(180,196,255,0.4);
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

.field-input-wrap {
  position: relative;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(5,12,35,0.7);
  border: 1px solid rgba(79,125,255,0.15);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}

.field input::placeholder { color: rgba(180,196,255,0.2); }

.field input:focus {
  border-color: rgba(79,125,255,0.5);
  background: rgba(10,22,55,0.8);
  box-shadow: 0 0 0 3px rgba(79,125,255,0.08), 0 0 20px rgba(79,125,255,0.05);
}

.field input.shake { animation: inputShake .3s ease; }
.field-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(180,196,255,0.3);
  cursor: pointer;
  padding: 4px;
  transition: color .15s;
  display: flex;
  align-items: center;
}
.field-eye:hover { color: var(--accent2); }
.field input[type=password], .field input.has-eye { padding-right: 44px; }

.modal-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2a4fd4 0%, #1a3bb8 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all .2s;
  letter-spacing: 0.01em;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 20px rgba(42,79,212,0.3), 0 1px 0 rgba(255,255,255,0.08) inset;
  position: relative;
  overflow: hidden;
}

.modal-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left .5s;
}

.modal-submit:hover {
  background: linear-gradient(135deg, #3560e8, #2448cc);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(42,79,212,0.5);
}
.modal-submit:hover::before { left: 100%; }
.modal-submit:active { transform: translateY(0); }
.modal-submit.loading { pointer-events: none; opacity: 0.65; }

.modal-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(180,196,255,0.35);
}
.modal-footer a {
  color: var(--accent2);
  font-weight: 700;
  cursor: pointer;
  transition: color .15s;
}
.modal-footer a:hover { color: #fff; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: rgba(79,125,255,0.06);
  border: 1px solid rgba(79,125,255,0.1);
  border-radius: 7px;
  color: rgba(180,196,255,0.4);
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: rgba(79,125,255,0.12);
  color: var(--text);
}
@keyframes inputShake {
  0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 60%{transform:translateX(6px)}
}
@keyframes inputGlow {
  from { box-shadow: 0 0 0 0 rgba(79,125,255,0.4); }
  to   { box-shadow: 0 0 0 6px rgba(79,125,255,0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background .25s, backdrop-filter .25s;
}

.modal-overlay.open {
  background: rgba(0,3,15,0.88);
  pointer-events: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal {
  width: 100%;
  max-width: 420px;
  margin: 20px;
  background: linear-gradient(160deg, #0b1428 0%, #070d1c 100%);
  border: 1px solid rgba(79,125,255,0.15);
  border-radius: 20px;
  padding: 40px 36px 36px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(79,125,255,0.06) inset,
              0 1px 0 rgba(79,125,255,0.1) inset;
}

.modal-overlay.open .modal {
  animation: modalIn .3s cubic-bezier(0.16,1,0.3,1) forwards;
  pointer-events: auto;
  opacity: 1;
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(180,196,255,0.6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.field-input-wrap {
  position: relative;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(10,20,50,0.6);
  border: 1px solid rgba(79,125,255,0.15);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}

.field input::placeholder { color: rgba(180,196,255,0.25); }

.field input:focus {
  border-color: rgba(79,125,255,0.5);
  background: rgba(15,30,70,0.6);
  box-shadow: 0 0 0 3px rgba(79,125,255,0.1);
  animation: inputGlow .4s ease forwards;
}

.field input.shake { animation: inputShake .3s ease; }

.field-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color .15s;
  display: flex;
  align-items: center;
}
.field-eye:hover { color: var(--text); }

.field input[type=password], .field input.has-eye { padding-right: 44px; }

.modal-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2a4fd4 0%, #1a3bb8 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all .2s;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.modal-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s;
}

.modal-submit:hover {
  background: linear-gradient(135deg, #3560e8 0%, #2448cc 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(42,79,212,0.4);
}
.modal-submit:hover::after { opacity: 1; }
.modal-submit:active { transform: translateY(0); }

.modal-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.modal-footer a {
  color: var(--accent2);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.modal-footer a:hover { color: #fff; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  background: rgba(79,125,255,0.08);
  border: 1px solid rgba(79,125,255,0.12);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(79,125,255,0.15);
  color: var(--text);
}

.notification {
  position: fixed;
  top: 80px;
  right: 32px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 300px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  transform: translateX(400px);
  transition: all .3s;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.admin-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.admin-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.stat-value {
  font-weight: 700;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  margin-right: 8px;
}

.btn-small:hover {
  background: rgba(255,255,255,0.1);
}

.btn-danger {
  background: #f87171;
  color: #000;
  border-color: #f87171;
}

.btn-danger:hover {
  background: #dc2626;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.invite-code-blur {
  filter: blur(6px);
  user-select: none;
  cursor: pointer;
  transition: filter .2s;
  display: inline-block;
}

.invite-code-blur.revealed {
  filter: none;
  user-select: text;
}

.invite-code-blur:hover:not(.revealed) {
  filter: blur(4px);
}

.biolink-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.biolink-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.biolink-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 24px;
  background-size: cover;
  background-position: center;
  font-size: 48px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biolink-username {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.biolink-bio {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.biolink-section {
  margin-bottom: 40px;
}

.biolink-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.biolink-link {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 12px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.biolink-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.biolink-music {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
}

.biolink-music-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
}

.biolink-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.biolink-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

@keyframes musicSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
@keyframes barBounce1 { 0%,100%{height:4px} 50%{height:16px} }
@keyframes barBounce2 { 0%,100%{height:10px} 50%{height:4px} }
@keyframes barBounce3 { 0%,100%{height:7px} 33%{height:16px} 66%{height:3px} }
@keyframes barBounce4 { 0%,100%{height:14px} 50%{height:5px} }

.music-player {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1000;
  animation: musicSlideUp .5s cubic-bezier(0.16,1,0.3,1) forwards;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.06) inset;
}

.music-player-art {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.music-player-art.spinning {
  animation: spin 8s linear infinite;
  border-radius: 50%;
}

.music-player-info {
  flex: 1;
  min-width: 0;
}

.music-player-title {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: 0.01em;
}

.music-player-progress-container {
  display: flex;
  align-items: center;
  gap: 7px;
}

.music-player-time {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  font-family: monospace;
  white-space: nowrap;
  min-width: 28px;
}

.music-player-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  cursor: pointer;
  position: relative;
}
.music-player-progress:hover { height: 5px; margin: -1px 0; }
.music-player-progress:hover .music-player-progress-fill::after { opacity: 1; }

.music-player-progress-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width .1s linear;
  border-radius: 99px;
  position: relative;
}
.music-player-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .15s;
}

.music-player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.music-control-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .15s;
  font-size: 13px;
}
.music-control-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: scale(1.1);
}

.music-control-btn.play-pause {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000;
  font-size: 14px;
  animation: pulse 2s infinite;
}
.music-control-btn.play-pause:hover {
  background: rgba(255,255,255,0.9);
  transform: scale(1.08);
}
.music-control-btn.play-pause.paused {
  animation: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.music-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-left: 4px;
}
.music-eq-bar {
  width: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  height: 4px;
}
.music-eq-bars.playing .music-eq-bar:nth-child(1) { animation: barBounce1 .7s ease-in-out infinite; }
.music-eq-bars.playing .music-eq-bar:nth-child(2) { animation: barBounce2 .6s ease-in-out infinite .1s; }
.music-eq-bars.playing .music-eq-bar:nth-child(3) { animation: barBounce3 .8s ease-in-out infinite .05s; }
.music-eq-bars.playing .music-eq-bar:nth-child(4) { animation: barBounce4 .65s ease-in-out infinite .15s; }

.music-player-autoplay-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: fadeIn .3s ease;
}
.music-player-autoplay-btn {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform .2s;
}
.music-player-autoplay-btn:hover { transform: scale(1.08); }
.music-player-autoplay-label {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  letter-spacing: 0.05em;
}


.biolink-views {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

.invite-code-blur {
  filter: blur(6px);
  user-select: none;
  cursor: pointer;
  transition: filter .2s;
}

.invite-code-blur.revealed {
  filter: none;
  user-select: text;
}

.invite-code-blur:hover:not(.revealed) {
  filter: blur(4px);
}

.biolink-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.biolink-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.biolink-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 24px;
  background-size: cover;
  background-position: center;
  font-size: 48px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biolink-username {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.biolink-bio {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.biolink-section {
  margin-bottom: 40px;
}

.biolink-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.biolink-link {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 12px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}

.biolink-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.biolink-music {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
}

.biolink-music-title {
  font-weight: 600;
  margin-bottom: 12px;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

input, textarea, select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  -webkit-appearance: none;
}

@media screen and (max-width: 768px) {
  input:not([type="range"]), 
  textarea, 
  select {
    font-size: 16px !important;
  }
}

@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .nav {
    top: env(safe-area-inset-top);
  }
  
  .music-player {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

.chat-messages,
.sidebar,
.modal {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

a, button, .nav-link, .chat-username, .user-item {
  touch-action: manipulation;
}


.biolink-social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.biolink-qr {
  margin-top: 32px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  text-align: center;
}

.biolink-qr-title {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.biolink-qr-code {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #000;
  font-weight: 600;
}


.dm-conv-item{display:flex;align-items:center;gap:12px;padding:14px 20px;cursor:pointer;transition:background .15s;border-bottom:1px solid var(--border)}
.dm-conv-item:hover{background:rgba(255,255,255,0.04)}
.dm-conv-item.active{background:rgba(255,255,255,0.08)}
.dm-conv-avatar{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.1);flex-shrink:0;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.dm-conv-info{flex:1;min-width:0}
.dm-conv-name{font-weight:600;font-size:14px;margin-bottom:2px}
.dm-conv-preview{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-conv-unread{width:8px;height:8px;background:#ef4444;border-radius:50%;flex-shrink:0}
.dm-msg-row{display:flex;margin-bottom:16px;gap:10px;align-items:flex-end}
.dm-msg-row.mine{flex-direction:row-reverse}
.dm-msg-avatar{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,0.1);flex-shrink:0;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.dm-bubble{width:100%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5;word-break:break-word;white-space:pre-wrap;text-align:left;box-sizing:border-box}
.dm-msg-row.mine .dm-bubble{background:var(--text);color:var(--bg);border-bottom-right-radius:4px}
.dm-msg-row:not(.mine) .dm-bubble{background:rgba(255,255,255,0.08);color:var(--text);border-bottom-left-radius:4px}
.dm-msg-time{font-size:10px;color:var(--muted);margin-top:4px}
.dm-search-user{display:flex;align-items:center;gap:10px;padding:10px 16px;cursor:pointer;transition:background .15s}
.dm-search-user:hover{background:rgba(255,255,255,0.05)}

.faq-item { border-bottom: 1px solid rgba(79,125,255,0.08); }
.faq-q {
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .15s;
  user-select: none;
}
.faq-q:hover { color: var(--accent2); }
.faq-arrow { font-size: 16px; color: var(--muted); transition: transform .25s; }
.faq-a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }