/* ============================================================
   ENUVOX — MAIN STYLESHEET
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --en-orange:      #CD5C5C;
  --en-orange-dark: #A04040;
  --en-orange-bg:   rgba(205,92,92,.08);
  --en-orange-glow: rgba(205,92,92,.15);
  --en-bg:          #0C0C0C;
  --en-surface:     #161616;
  --en-surface2:    #1F1F1F;
  --en-border:      #282828;
  --en-text:        #EDEAE5;
  --en-muted:       #7A7770;
  --en-white:       #FFFFFF;
  --en-red:         #e0365a;
  --en-green:       #1DB954;
  --radius:         12px;
  --radius-sm:      8px;
  --transition:     .18s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--en-border); border-radius: 2px; }

/* ---- Avatar gradient classes ---- */
.grad-orange { background: linear-gradient(135deg,#CD5C5C,#A04040); }
.grad-blue   { background: linear-gradient(135deg,#4FC3F7,#0277BD); }
.grad-green  { background: linear-gradient(135deg,#A5D6A7,#2E7D32); }
.grad-pink   { background: linear-gradient(135deg,#F48FB1,#AD1457); }
.grad-amber  { background: linear-gradient(135deg,#FFD54F,#F57F17); }
.grad-teal   { background: linear-gradient(135deg,#80DEEA,#006064); }
.grad-purple { background: linear-gradient(135deg,#CE93D8,#6A1B9A); }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 500px; }
}

/* ============================================================
   BASE LAYOUT
   ============================================================ */
html { font-size: 15px; }
body {
  background: var(--en-bg);
  color: var(--en-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 10px;
  border-right: 1px solid var(--en-border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  align-self: flex-start;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-width: 0;
  align-items: flex-start;
}

.feed {
  flex: 1;
  min-width: 0;
  max-width: 640px;
  border-right: 1px solid var(--en-border);
  overflow-x: hidden;
}

.trending-panel {
  width: 280px;
  flex-shrink: 0;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: flex-start;
}

/* ---- Sidebar nav ---- */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
}
.logo-img {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--en-white);
  letter-spacing: -.5px;
}
.nav-item {
  display: flex; align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px; font-weight: 500;
  color: var(--en-muted);
  transition: all var(--transition);
  position: relative;
}
.nav-item:hover { background: var(--en-surface2); color: var(--en-text); }
.nav-item.active { background: var(--en-surface2); color: var(--en-orange); }
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.nav-badge {
  background: var(--en-orange);
  color: #000;
  font-size: 11px; font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
  animation: pulse .6s ease-out;
}
.post-btn {
  display: block;
  margin: 14px 0 0;
  background: var(--en-orange);
  color: #000; border: none;
  border-radius: 24px;
  padding: 11px 16px;
  font-size: 14px; font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.post-btn:hover { background: var(--en-orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(205,92,92,.2); }

.profile-mini {
  margin-top: auto;
  display: flex; align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background var(--transition);
}
.profile-mini:hover { background: var(--en-surface2); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 13px; font-weight: 600; color: var(--en-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-handle { font-size: 12px; color: var(--en-muted); }

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-bottom .profile-mini { flex: 1; }
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--en-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}
.logout-btn:hover { background: rgba(224,54,90,.1); color: var(--en-red); }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #000;
  flex-shrink: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.avatar:hover { opacity: .85; transform: scale(1.05); }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; border: 4px solid var(--en-bg); }
.verified {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--en-orange);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.verified::after {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 3px; height: 5px;
  border: 1.5px solid #000;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* ============================================================
   FEED HEADER
   ============================================================ */
.feed-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--en-border);
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--en-white);
  position: sticky;
  top: 0;
  background: rgba(12,12,12,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  flex-shrink: 0;
}
.hdr-action-btn {
  background: transparent;
  border: 1px solid var(--en-border);
  color: var(--en-muted);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  transition: all var(--transition);
}
.hdr-action-btn:hover { border-color: var(--en-orange); color: var(--en-orange); }

/* ============================================================
   COMPOSE
   ============================================================ */
.compose-box {
  padding: 14px 18px;
  border-bottom: 1px solid var(--en-border);
  display: flex; gap: 12px;
}
.compose-wrap { flex: 1; }
.compose-input {
  width: 100%;
  background: transparent;
  border: none; outline: none;
  font-size: 16px;
  color: var(--en-text);
  resize: none;
  line-height: 1.6;
}
.compose-input::placeholder { color: var(--en-muted); }
.compose-input:focus::placeholder { color: transparent; }
.compose-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--en-border);
  margin-top: 10px;
}
.compose-tools { display: flex; gap: 14px; align-items: center; }
.ctool {
  color: var(--en-orange);
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  opacity: .7;
  transition: opacity var(--transition);
}
.ctool:hover { opacity: 1; }
.char-count {
  font-size: 12px; color: var(--en-muted);
  font-variant-numeric: tabular-nums;
  min-width: 30px; text-align: right;
  transition: color var(--transition);
}
.char-count.warn { color: var(--en-orange); }
.char-count.danger { color: var(--en-red); }
.compose-btn {
  background: var(--en-orange);
  color: #000; border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
}
.compose-btn:hover { background: var(--en-orange-dark); color: #fff; transform: translateY(-1px); }
.compose-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================================================
   POST CARD
   ============================================================ */
.post {
  padding: 14px 18px;
  border-bottom: 1px solid var(--en-border);
  display: flex; gap: 12px;
  transition: background var(--transition);
  animation: fadeIn .3s ease-out;
}
.post:hover { background: var(--en-surface); }
.post-body { flex: 1; min-width: 0; }
.post-header {
  display: flex; align-items: baseline;
  gap: 6px; margin-bottom: 5px;
  flex-wrap: wrap;
}
.post-name {
  font-size: 14px; font-weight: 600;
  color: var(--en-white);
  transition: color var(--transition);
}
.post-name:hover { color: var(--en-orange); }
.post-handle { font-size: 13px; color: var(--en-muted); }
.post-time { font-size: 12px; color: var(--en-muted); }

/* Pack Badge — starburst check */
.pack-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 3px;
  position: relative;
  top: -1px;
}
.pack-badge svg { display: block; }
.pack-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}
.pack-badge-lg .pack-label {
  background: rgba(255,255,255,.06);
  padding: 2px 8px;
  border-radius: 10px;
}
.post-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--en-text);
  margin-bottom: 10px;
  word-break: break-word;
}
.post-text .tag { color: var(--en-orange); font-weight: 500; cursor: pointer; }
.post-text .tag:hover { text-decoration: underline; }

/* ---- Post Media ---- */
.post-media {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-media:has(.media-item:nth-child(2)) { grid-template-columns: 1fr 1fr; }
.post-media:has(.media-item:nth-child(3)) { grid-template-columns: 1fr 1fr; }
.post-media:has(.media-item:nth-child(4)) { grid-template-columns: 1fr 1fr; }
.media-item { position: relative; overflow: hidden; background: var(--en-surface2); border-radius: 4px; }
.media-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform var(--transition);
}
.media-img:hover { transform: scale(1.02); }
.media-video {
  width: 100%;
  max-height: 400px;
  display: block;
  background: #000;
  border-radius: 4px;
}

/* ---- Compose Preview ---- */
.compose-preview {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.compose-preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--en-border);
  max-width: 160px;
}
.compose-preview-item img,
.compose-preview-item video {
  display: block;
  max-height: 120px;
  max-width: 160px;
  object-fit: cover;
}
.compose-preview-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff;
  border: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}
.compose-preview-remove:hover { background: var(--en-red); }
.post-actions { display: flex; gap: 14px; }
.act-btn {
  display: flex; align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--en-muted);
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all var(--transition);
  font-family: inherit;
}
.act-btn:hover { color: var(--en-orange); background: var(--en-orange-bg); }
.act-btn.liked { color: var(--en-red); }
.act-btn.liked:hover { background: rgba(224,54,90,.08); }
.act-btn.liked svg { fill: currentColor; }
.act-btn.views-btn { cursor: default; opacity: .6; }
.act-btn.views-btn:hover { color: var(--en-muted); background: transparent; }
.act-btn.share-btn { position: relative; }
.act-btn.share-btn:hover { color: var(--en-orange); }

/* Repost */
.repost-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--en-muted);
  margin-bottom: 4px;
}
.act-btn.repost-btn { transition: color var(--transition); }
.act-btn.repost-btn:hover { color: var(--en-green); }
.act-btn.reposted { color: var(--en-green); }
.act-btn.reposted svg { stroke: var(--en-green); }

/* Share Dropdown */
.share-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 6px 0;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 50;
  animation: fadeIn .15s ease-out;
}
.share-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--en-text);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.share-dropdown-item:hover { background: var(--en-surface2); }
.share-dropdown-icon { width: 18px; font-size: 15px; text-align: center; flex-shrink: 0; }

/* Profile share */
.profile-share-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--en-border);
  color: var(--en-muted);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
  position: relative;
}
.profile-share-btn:hover { border-color: var(--en-orange); color: var(--en-orange); }

/* Profile Interests */
.profile-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.interest-tag {
  background: var(--en-orange-bg);
  color: var(--en-orange);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(205,92,92,.15);
  transition: all var(--transition);
}
.interest-tag:hover { background: rgba(205,92,92,.15); }

/* Interests Picker (edit modal) */
.interests-picker { margin-top: 6px; }
.interests-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.interest-preset {
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  color: var(--en-muted);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.interest-preset:hover { border-color: var(--en-orange); color: var(--en-orange); }
.interest-preset.active {
  background: var(--en-orange-bg);
  border-color: var(--en-orange);
  color: var(--en-orange);
}
.interests-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  min-height: 20px;
}
.interest-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--en-orange);
  color: #000;
  padding: 3px 8px 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.interest-chip-x {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: .6;
  transition: opacity var(--transition);
}
.interest-chip-x:hover { opacity: 1; }
.interests-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.interest-add-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--en-orange);
  color: #000;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.interest-add-btn:hover { opacity: .8; }

/* Form select */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A7770' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-select option {
  background: var(--en-surface);
  color: var(--en-text);
  padding: 8px;
}
.location-picker { display: flex; flex-direction: column; }

/* Suggestion reason */
.suggest-reason {
  font-size: 11px;
  color: var(--en-orange);
  margin-top: 3px;
  opacity: .8;
}

/* ---- Tip Button ---- */
.act-btn.tip-btn { transition: color var(--transition); }
.act-btn.tip-btn:hover { color: var(--en-orange); }
.tip-amount { color: var(--en-orange); font-weight: 600; }
.tip-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; animation: fadeIn .15s ease-out;
}
.tip-modal {
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 24px;
  width: 320px;
  max-width: 90vw;
}
.tip-modal-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--en-white); margin-bottom: 16px; }
.tip-amounts { display: flex; gap: 8px; margin-bottom: 14px; }
.tip-preset {
  flex: 1;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  color: var(--en-text);
  border-radius: var(--radius-sm);
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all var(--transition);
}
.tip-preset:hover, .tip-preset.active { background: var(--en-orange-bg); border-color: var(--en-orange); color: var(--en-orange); }
.tip-custom { margin-bottom: 14px; }
.tip-custom input { width: 100%; }
.tip-btns { display: flex; gap: 8px; }

/* ---- Marketplace ---- */
.market-search { padding: 12px 18px; border-bottom: 1px solid var(--en-border); }
.market-cats {
  display: flex;
  gap: 6px;
  padding: 12px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--en-border);
}
.market-cat {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  color: var(--en-muted);
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}
.market-cat:hover, .market-cat.active { background: var(--en-orange-bg); border-color: var(--en-orange); color: var(--en-orange); }

.market-grid { padding: 12px 18px; display: flex; flex-direction: column; gap: 14px; }

.market-card {
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 0; overflow: hidden;
  transition: border-color var(--transition);
}
.market-card:hover { border-color: rgba(205,92,92,.2); }
.market-card-img { width: 100%; max-height: 200px; overflow: hidden; }
.market-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.market-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.market-cat-badge { font-size: 11px; color: var(--en-muted); background: var(--en-surface2); padding: 3px 8px; border-radius: 8px; }
.market-price { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--en-orange); }
.market-token { font-size: 12px; font-weight: 500; opacity: .7; }
.market-card-title { font-size: 15px; font-weight: 600; color: var(--en-white); padding: 6px 16px 0; }
.market-card-desc {
  font-size: 13px; color: var(--en-muted); line-height: 1.5;
  padding: 4px 16px 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.market-card-file { font-size: 12px; color: var(--en-orange); padding: 6px 16px 0; font-weight: 500; }
.market-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 0; }
.market-seller { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--en-text); font-weight: 500; }
.market-seller:hover { color: var(--en-orange); }
.market-time { font-size: 11px; color: var(--en-muted); }
.market-card-actions { display: flex; gap: 8px; padding: 14px 16px; }
.market-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: all var(--transition);
  background: var(--en-orange);
  color: #000;
}
.market-btn:hover { opacity: .85; transform: scale(1.02); }
.market-btn.secondary { background: transparent; border: 1px solid var(--en-border); color: var(--en-muted); }
.market-btn.secondary:hover { border-color: var(--en-orange); color: var(--en-orange); }

/* ---- Audio Rooms / Spaces ---- */
.rooms-list { padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.room-card {
  display: block;
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all var(--transition);
  text-decoration: none; color: inherit;
}
.room-card:hover { border-color: rgba(205,92,92,.2); transform: translateY(-1px); }
.room-card.room-live { border-left: 3px solid #e0365a; }
.room-card-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.room-live-badge { background: rgba(224,54,90,.15); color: var(--en-red); padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.6 } }
.room-scheduled-badge { background: rgba(79,195,247,.1); color: #4FC3F7; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.room-ticket-badge { background: var(--en-orange-bg); color: var(--en-orange); padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.room-cat-badge { font-size: 11px; color: var(--en-muted); }
.room-card-title { font-size: 15px; font-weight: 600; color: var(--en-white); margin-bottom: 4px; }
.room-card-desc { font-size: 13px; color: var(--en-muted); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-card-speakers { display: flex; gap: -4px; margin-bottom: 10px; }
.room-card-speakers .avatar { border: 2px solid var(--en-surface); margin-left: -6px; }
.room-card-speakers .avatar:first-child { margin-left: 0; }
.room-card-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--en-muted); }
.room-card-host { display: flex; align-items: center; gap: 4px; }
.room-card-stats { display: flex; gap: 10px; }

/* Room Detail */
.room-info { padding: 16px 18px; border-bottom: 1px solid var(--en-border); }
.room-title-big { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--en-white); margin-bottom: 6px; }
.room-desc { font-size: 13px; color: var(--en-muted); line-height: 1.5; margin-bottom: 8px; }
.room-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--en-muted); flex-wrap: wrap; }
.room-section { padding: 14px 18px; border-bottom: 1px solid var(--en-border); }
.room-section-title { font-size: 13px; font-weight: 600; color: var(--en-text); margin-bottom: 10px; }

/* Speakers grid */
.room-speakers-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.room-speaker-card { text-align: center; width: 80px; }
.room-speaker-name { font-size: 12px; font-weight: 600; color: var(--en-text); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-speaker-handle { font-size: 10px; color: var(--en-muted); }
.room-speaker-wave { display: flex; gap: 2px; justify-content: center; margin-top: 4px; }
.wave-bar { width: 3px; height: 12px; background: var(--en-orange); border-radius: 2px; animation: waveAnim 0.8s ease-in-out infinite; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 16px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
@keyframes waveAnim { 0%,100% { transform: scaleY(0.4) } 50% { transform: scaleY(1) } }

/* Audience */
.room-audience-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.room-audience-avatar { transition: transform var(--transition); }
.room-audience-avatar:hover { transform: scale(1.15); }

/* Raised hands */
.room-hands { display: flex; flex-direction: column; gap: 6px; }
.room-hand-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }

/* Live Chat */
.room-chat { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.room-chat-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.room-chat-tip { background: rgba(205,92,92,.08); padding: 6px 8px; border-radius: var(--radius-sm); }
.room-chat-input { display: flex; gap: 6px; margin-top: 10px; }
.room-chat-input input { flex: 1; }
.room-chat-send { width: 36px; height: 36px; border-radius: 50%; background: var(--en-orange); border: none; color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.room-chat-send:hover { opacity: .8; }

/* Action bar */
.room-actions-bar { display: flex; gap: 8px; padding: 14px 18px; position: sticky; bottom: 0; background: var(--en-bg); border-top: 1px solid var(--en-border); }
.room-action-btn { flex: 1; padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; border: 1px solid var(--en-border); background: var(--en-surface); color: var(--en-text); cursor: pointer; font-family: inherit; text-align: center; transition: all var(--transition); }
.room-action-btn:hover { border-color: var(--en-orange); }
.room-action-btn.active { background: var(--en-orange-bg); border-color: var(--en-orange); color: var(--en-orange); }
.room-action-join { background: var(--en-orange); color: #000; border-color: var(--en-orange); }
.room-action-join:hover { opacity: .85; }
.room-action-leave { border-color: var(--en-red); color: var(--en-red); }
.room-action-leave:hover { background: rgba(224,54,90,.1); }

/* ---- Communities ---- */
.comm-grid { padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.comm-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.comm-card:hover { border-color: rgba(205,92,92,.2); transform: translateY(-1px); }
.comm-card-banner {
  height: 60px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.comm-card-banner.grad-orange { background: linear-gradient(135deg, #CD5C5C, #A04040); }
.comm-card-banner.grad-blue { background: linear-gradient(135deg, #4FC3F7, #0288D1); }
.comm-card-banner.grad-green { background: linear-gradient(135deg, #1DB954, #0d7a37); }
.comm-card-banner.grad-pink { background: linear-gradient(135deg, #e0365a, #a8002e); }
.comm-card-banner.grad-amber { background: linear-gradient(135deg, #FFB300, #E65100); }
.comm-card-banner.grad-teal { background: linear-gradient(135deg, #26A69A, #00796B); }
.comm-card-banner.grad-purple { background: linear-gradient(135deg, #A882FF, #6a3fbf); }
.comm-card-avatar { font-size: 28px; }
.comm-card-body { padding: 12px 14px; }
.comm-card-name { font-size: 15px; font-weight: 600; color: var(--en-white); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.comm-private-badge { font-size: 11px; color: var(--en-muted); background: var(--en-surface2); padding: 2px 6px; border-radius: 6px; }
.comm-card-desc { font-size: 13px; color: var(--en-muted); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comm-card-meta { font-size: 11px; color: var(--en-muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.comm-join-btn { width: 100%; margin-top: 4px; }
.comm-type-opt { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--en-text); }
.comm-emoji-opt {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; border: 2px solid transparent;
  background: var(--en-surface2); transition: all var(--transition);
}
.comm-emoji-opt:hover, .comm-emoji-opt.active { border-color: var(--en-orange); background: var(--en-orange-bg); }

/* Community Detail */
.comm-header {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.comm-header-avatar { font-size: 44px; }
.comm-info { padding: 16px 18px; border-bottom: 1px solid var(--en-border); }
.comm-info-name { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--en-white); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.comm-info-desc { font-size: 13px; color: var(--en-muted); line-height: 1.5; margin-bottom: 8px; }
.comm-info-meta { display: flex; gap: 12px; font-size: 12px; color: var(--en-muted); flex-wrap: wrap; margin-bottom: 10px; }
.comm-info-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comm-role-badge { font-size: 11px; background: var(--en-orange-bg); color: var(--en-orange); padding: 4px 10px; border-radius: 10px; font-weight: 600; }

/* Rules */
.comm-rules-section { border-bottom: 1px solid var(--en-border); }
.comm-rules-title { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--en-text); cursor: pointer; }
.comm-rules-title:hover { color: var(--en-orange); }
.comm-rules-body { padding: 0 18px 12px; }
.comm-rule { font-size: 12px; color: var(--en-muted); padding: 3px 0; }

/* Members bar */
.comm-members-bar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--en-border); }
.comm-members-avatars { display: flex; gap: -4px; }
.comm-members-avatars .avatar { margin-left: -6px; border: 2px solid var(--en-bg); }
.comm-members-avatars .avatar:first-child { margin-left: 0; }
.comm-members-count { font-size: 12px; color: var(--en-muted); }

/* Compose */
.comm-compose { padding: 14px 18px; border-bottom: 1px solid var(--en-border); }

/* Community posts */
.comm-post { padding: 14px 18px; border-bottom: 1px solid var(--en-border); }
.comm-post-pinned { background: rgba(205,92,92,.03); border-left: 3px solid var(--en-orange); }
.comm-pin-label { font-size: 11px; color: var(--en-orange); font-weight: 600; margin-bottom: 6px; }

/* Community upload */
.comm-upload-row { display: flex; flex-direction: column; gap: 6px; }
.comm-upload-preview img { max-width: 100%; max-height: 120px; border-radius: 8px; margin-top: 4px; }
.comm-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.comm-banner-img { width: 100%; height: 100px; object-fit: cover; border-radius: 0; }
.comm-post .post-inner { display: flex; gap: 10px; }
.comm-post .post-body { flex: 1; }
.comm-post .post-text { font-size: 14px; color: var(--en-text); line-height: 1.5; margin: 4px 0 8px; white-space: pre-wrap; }
.comm-like-btn.liked { color: var(--en-red); }
.comm-pin-btn { font-size: 14px; }

/* ---- Stories / Moments ---- */
.stories-bar {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--en-border);
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-add, .story-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 64px;
}
.story-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
  transition: transform var(--transition);
}
.story-ring:hover { transform: scale(1.08); }
.story-ring .avatar { width: 48px; height: 48px; font-size: 18px; }
.story-ring-add {
  background: var(--en-surface2);
  border: 2px dashed var(--en-border);
  position: relative;
}
.story-add-icon {
  font-size: 24px;
  font-weight: 700;
  color: var(--en-orange);
  line-height: 1;
}
.story-ring-new {
  background: linear-gradient(135deg, var(--en-orange), var(--en-red));
}
.story-ring-own {
  background: linear-gradient(135deg, var(--en-orange), #A04040);
  position: relative;
}
.story-ring-own::after {
  content: '+';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 20px; height: 20px;
  background: var(--en-orange);
  color: #000;
  border-radius: 50%;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--en-bg);
}
.story-ring-seen {
  background: var(--en-surface2);
  border: 2px solid var(--en-border);
}
.story-name {
  font-size: 11px;
  color: var(--en-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
  text-align: center;
}

/* Story Viewer (fullscreen overlay) */
.story-viewer {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease-out;
}
.story-viewer-inner {
  width: 400px; max-width: 92vw;
  max-height: 90vh;
  position: relative;
}
.story-card {
  border-radius: 16px;
  padding: 32px 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.story-card.grad-orange { background: linear-gradient(135deg, #CD5C5C, #A04040); }
.story-card.grad-blue { background: linear-gradient(135deg, #4FC3F7, #0288D1); }
.story-card.grad-green { background: linear-gradient(135deg, #1DB954, #0d7a37); }
.story-card.grad-pink { background: linear-gradient(135deg, #e0365a, #a8002e); }
.story-card.grad-amber { background: linear-gradient(135deg, #FFB300, #E65100); }
.story-card.grad-teal { background: linear-gradient(135deg, #26A69A, #00796B); }
.story-card.grad-purple { background: linear-gradient(135deg, #A882FF, #6a3fbf); }
.story-header {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 16px; left: 16px; right: 16px;
}
.story-header .avatar { width: 36px; height: 36px; font-size: 14px; border: 2px solid rgba(255,255,255,.3); }
.story-header-info { flex: 1; }
.story-header-name { color: #fff; font-weight: 600; font-size: 14px; }
.story-header-time { color: rgba(255,255,255,.7); font-size: 11px; }
.story-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.3); border: none; color: #fff;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.story-text {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  padding: 20px 0;
}
.story-footer {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story-views { color: rgba(255,255,255,.7); font-size: 12px; }
.story-tip-btn {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.story-tip-btn:hover { background: rgba(255,255,255,.3); }
.story-tips-display {
  color: var(--en-orange); font-size: 12px; font-weight: 600;

/* Story media upload */
}
.story-media-upload { display: flex; flex-direction: column; gap: 8px; }
.story-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--en-surface2);
  border: 1px dashed var(--en-border);
  border-radius: var(--radius-sm);
  color: var(--en-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.story-upload-btn:hover { border-color: var(--en-orange); color: var(--en-orange); }
.story-media-preview { margin-top: 4px; }
.story-media-remove {
  background: none;
  border: none;
  color: var(--en-red);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
}

/* Story viewer media */
.story-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.story-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-media-vid {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.story-card:has(.story-media) {
  background: #000 !important;
}
.story-text-over-media {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,.5);
  padding: 12px 16px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  font-size: 18px;
}
}
.story-progress {
  display: flex;
  gap: 3px;
  position: absolute;
  top: 6px; left: 12px; right: 12px;
}
.story-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress-bar.active .story-progress-fill { animation: storyProgress 6s linear forwards; }
.story-progress-bar.done .story-progress-fill { width: 100%; }
.story-progress-fill {
  height: 100%;
  background: #fff;
  width: 0;
  border-radius: 2px;
}
@keyframes storyProgress { from { width: 0; } to { width: 100%; } }
.story-nav {
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  cursor: pointer;
  z-index: 5;
}
.story-nav-left { left: 0; }
.story-nav-right { right: 0; }
.story-delete-btn {
  background: rgba(224,54,90,.3);
  border: 1px solid rgba(224,54,90,.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

/* Story Create Modal */
.story-create-modal .story-bg-picker { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.story-bg-opt {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.story-bg-opt.active { border-color: #fff; box-shadow: 0 0 0 2px var(--en-orange); }
.story-bg-opt.grad-orange { background: linear-gradient(135deg, #CD5C5C, #A04040); }
.story-bg-opt.grad-blue { background: linear-gradient(135deg, #4FC3F7, #0288D1); }
.story-bg-opt.grad-green { background: linear-gradient(135deg, #1DB954, #0d7a37); }
.story-bg-opt.grad-pink { background: linear-gradient(135deg, #e0365a, #a8002e); }
.story-bg-opt.grad-amber { background: linear-gradient(135deg, #FFB300, #E65100); }
.story-bg-opt.grad-teal { background: linear-gradient(135deg, #26A69A, #00796B); }
.story-bg-opt.grad-purple { background: linear-gradient(135deg, #A882FF, #6a3fbf); }

/* Mic button */
.room-mic-btn { position: relative; }
.room-mic-btn.mic-on { background: var(--en-orange); color: #000; border-color: var(--en-orange); }
.room-mic-btn.mic-on:hover { opacity: .85; }

/* Speaker avatar ring (speaking indicator) */
.speaker-avatar-wrap { position: relative; display: inline-block; }
.speaker-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color .2s;
}
.speaker-ring.speaking {
  border-color: var(--en-orange);
  animation: speakPulse 1s ease-in-out infinite;
}
@keyframes speakPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(205,92,92,.4); }
  50% { box-shadow: 0 0 0 8px rgba(205,92,92,0); }
}

/* Volume meter */
.room-volume-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  margin-top: 4px;
  justify-content: center;
}
.volume-bar {
  width: 4px;
  background: var(--en-orange);
  border-radius: 2px;
  transition: height .1s;
  min-height: 3px;
}
.post-del {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--en-muted);
  font-size: 18px; line-height: 1;
  padding: 0 4px;
  transition: color var(--transition);
  font-family: inherit;
  opacity: 0;
}
.post:hover .post-del { opacity: 1; }
.post-del:hover { color: var(--en-red); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--en-border);
  animation: slideDown .3s ease-out;
  overflow: hidden;
}
.comments-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.comment-item {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 10px;
  background: var(--en-surface);
  border-radius: var(--radius-sm);
  animation: fadeInUp .25s ease-out;
}
.comment-item .comment-body { flex: 1; min-width: 0; }
.comment-item .comment-header {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px;
}
.comment-item .comment-text { font-size: 13px; line-height: 1.5; color: var(--en-text); word-break: break-word; }
.comment-item .comment-time { font-size: 11px; color: var(--en-muted); }
.comment-compose {
  display: flex; gap: 8px; align-items: center;
}
.comment-input {
  flex: 1;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: 16px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--en-text);
  outline: none;
  transition: border-color var(--transition);
}
.comment-input:focus { border-color: var(--en-orange); }
.comment-input::placeholder { color: var(--en-muted); }
.comment-send {
  background: var(--en-orange);
  color: #000; border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.comment-send:hover { background: var(--en-orange-dark); color: #fff; }
.comment-toggle-btn:hover { color: #4FC3F7; background: rgba(79,195,247,.08); }
.comments-loading { font-size: 12px; color: var(--en-muted); padding: 8px 0; text-align: center; }

/* ============================================================
   TRENDING PANEL
   ============================================================ */
.tp-section { margin-bottom: 20px; }
.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.tp-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--en-white);
}
.tp-see-all {
  font-size: 12px;
  color: var(--en-orange);
  font-weight: 500;
  transition: opacity var(--transition);
}
.tp-see-all:hover { opacity: .7; }
.tp-card {
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 4px 0;
  transition: border-color var(--transition);
  overflow: hidden;
}
.tp-card:hover { border-color: rgba(205,92,92,.15); }

/* Trend items */
.trend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--en-border);
}
.trend-item:last-child { border-bottom: none; }
.trend-item:hover { background: rgba(205,92,92,.04); }
.trend-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.trend-rank {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--en-muted);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: .5;
}
.trend-item:hover .trend-rank { color: var(--en-orange); opacity: 1; }
.trend-cat { font-size: 11px; color: var(--en-muted); margin-bottom: 2px; }
.trend-tag { font-size: 13px; font-weight: 600; color: var(--en-text); transition: color var(--transition); }
.trend-item:hover .trend-tag { color: var(--en-orange); }
.trend-count { font-size: 11px; color: var(--en-muted); margin-top: 1px; }
.trend-bar-wrap {
  width: 40px;
  height: 24px;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.trend-bar {
  height: 100%;
  background: linear-gradient(to top, var(--en-orange-dark), var(--en-orange));
  border-radius: 3px;
  opacity: .25;
  transition: opacity var(--transition), width .3s ease-out;
  min-width: 4px;
}
.trend-item:hover .trend-bar { opacity: .6; }

/* Suggestion cards */
.tp-card-suggest { padding: 0; }
.suggest-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--en-border);
  transition: background var(--transition);
}
.suggest-row:last-child { border-bottom: none; }
.suggest-row:hover { background: rgba(205,92,92,.03); }
.suggest-avatar-link { flex-shrink: 0; }
.suggest-info { flex: 1; min-width: 0; }
.suggest-name-row { display: flex; align-items: center; gap: 4px; }
.suggest-bio {
  font-size: 12px;
  color: var(--en-muted);
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.suggest-meta {
  font-size: 11px;
  color: var(--en-muted);
  margin-top: 4px;
  opacity: .7;
}

/* Follow button */
.follow-btn {
  background: transparent;
  border: 1px solid var(--en-orange);
  color: var(--en-orange);
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 12px; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
  align-self: center;
}
.follow-btn:hover { background: var(--en-orange); color: #000; transform: scale(1.03); }
.follow-btn.following { background: var(--en-orange); color: #000; }
.follow-btn.following:hover { background: transparent; color: var(--en-red); border-color: var(--en-red); }

/* Follow row (used in explore etc) */
.follow-row {
  display: flex; align-items: center;
  gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--en-border);
}
.follow-row:last-child { border-bottom: none; }
.follow-info { flex: 1; min-width: 0; }

/* Footer */
.tp-footer {
  padding: 16px 4px 0;
  font-size: 11px;
  color: var(--en-muted);
  opacity: .5;
  line-height: 1.6;
}
.tp-footer a { color: var(--en-muted); }
.tp-footer a:hover { color: var(--en-orange); }

/* ============================================================
   EXPLORE
   ============================================================ */
.search-wrap { padding: 14px 18px; border-bottom: 1px solid var(--en-border); }
.search-form {
  display: flex; align-items: center;
  gap: 10px;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: 20px;
  padding: 9px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within { border-color: var(--en-orange); box-shadow: 0 0 0 3px var(--en-orange-bg); }
.search-input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  font-size: 14px;
  color: var(--en-text);
}
.search-input::placeholder { color: var(--en-muted); }
.explore-hero {
  padding: 22px 20px;
  background: var(--en-surface);
  border-bottom: 1px solid var(--en-border);
  background: linear-gradient(135deg, var(--en-surface) 0%, rgba(205,92,92,.04) 100%);
}
.hero-badge {
  display: inline-block;
  background: var(--en-orange-bg);
  color: var(--en-orange);
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.hero-title { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--en-white); }
.hero-sub { font-size: 13px; color: var(--en-muted); margin-top: 4px; }
.section-label {
  padding: 10px 18px;
  font-size: 12px; font-weight: 600;
  color: var(--en-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--en-border);
}
.user-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--en-border);
  display: flex; align-items: flex-start;
  gap: 12px;
  transition: background var(--transition);
}
.user-row:hover { background: var(--en-surface); }
.user-info { flex: 1; min-width: 0; }
.user-bio { font-size: 13px; color: var(--en-muted); margin-top: 3px; }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--en-border);
  display: flex; align-items: flex-start;
  gap: 10px;
  transition: background var(--transition);
}
.notif-row:hover { background: var(--en-surface); }
.notif-row.unread { background: rgba(205,92,92,.04); }
.notif-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.notif-like   { background: rgba(224,54,90,.15); color: var(--en-red); }
.notif-follow { background: var(--en-orange-bg); color: var(--en-orange); }
.notif-repost { background: rgba(29,185,84,.15); color: var(--en-green); }
.notif-mention { background: rgba(79,195,247,.15); color: #4FC3F7; }
.notif-profile_view { background: rgba(168,130,255,.15); color: #A882FF; }
.notif-tip { background: rgba(205,92,92,.15); color: var(--en-orange); }
.notif-sale { background: rgba(29,185,84,.15); color: var(--en-green); }
.notif-admin { background: rgba(205,92,92,.15); color: var(--en-orange); }
.notif-admin_broadcast { background: rgba(224,54,90,.15); color: var(--en-red); }
.notif-community_invite { background: rgba(79,195,247,.15); color: #4FC3F7; }
.notif-copyright { background: rgba(168,130,255,.15); color: #A882FF; }

/* Moderation error */
.moderation-error {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: rgba(224,54,90,.08);
  border-bottom: 1px solid rgba(224,54,90,.2);
  color: var(--en-red);
  font-size: 13px; font-weight: 500;
}

/* Copyright button */
.copyright-btn { opacity: .5; transition: opacity var(--transition); }
.copyright-btn:hover { opacity: 1; color: #A882FF; }

/* Wallet enhancements */
.wallet-addr-bar { display:flex; align-items:center; gap:8px; padding:10px 18px; background:var(--en-surface2); font-size:12px; color:var(--en-muted); font-family:'Share Tech Mono',monospace; overflow:hidden; }
.wallet-addr-copy { background:none; border:none; color:var(--en-muted); cursor:pointer; padding:4px; }
.wallet-addr-copy:hover { color:var(--en-orange); }
.wallet-portfolio { padding:18px; text-align:center; border-bottom:1px solid var(--en-border); }
.wallet-portfolio-label { font-size:12px; color:var(--en-muted); text-transform:uppercase; letter-spacing:1px; }
.wallet-portfolio-value { font-family:'Syne',sans-serif; font-size:32px; font-weight:800; color:var(--en-white); margin-top:4px; }
.wallet-overview {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 18px; gap: 0;
  border-bottom: 1px solid var(--en-border);
}
.wallet-ov-item { flex: 1; text-align: center; }
.wallet-ov-val { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--en-white); }
.wallet-ov-label { font-size: 11px; color: var(--en-muted); margin-top: 2px; }
.wallet-ov-sep { width: 1px; height: 32px; background: var(--en-border); flex-shrink: 0; }

/* Staking */
.stake-durations { display:flex; gap:6px; flex-wrap:wrap; }
.stake-dur-btn {
  flex:1; min-width:100px; padding:10px 8px; border-radius:var(--radius-sm);
  background:var(--en-surface2); border:1px solid var(--en-border);
  color:var(--en-text); font-size:12px; cursor:pointer;
  font-family:inherit; text-align:center; transition:all var(--transition);
}
.stake-dur-btn:hover, .stake-dur-btn.active { border-color:var(--en-orange); background:var(--en-orange-bg); color:var(--en-orange); }
.stake-summary { background:var(--en-surface2); border-radius:var(--radius-sm); padding:10px 14px; margin-top:10px; }
.stake-summary-row { display:flex; justify-content:space-between; padding:4px 0; font-size:13px; color:var(--en-muted); }
.stake-summary-row span:last-child { color:var(--en-white); font-weight:600; }

.stake-card { padding:14px 18px; border-bottom:1px solid var(--en-border); }
.stake-card-header { display:flex; justify-content:space-between; align-items:center; font-size:14px; color:var(--en-white); }
.stake-badge { font-size:11px; padding:3px 8px; border-radius:8px; background:var(--en-surface2); color:var(--en-muted); }
.stake-badge-ready { background:rgba(29,185,84,.15); color:var(--en-green); }
.stake-progress { height:6px; background:var(--en-surface2); border-radius:3px; margin:8px 0; overflow:hidden; }
.stake-progress-fill { height:100%; background:var(--en-orange); border-radius:3px; transition:width .3s; }
.stake-card-footer { display:flex; justify-content:space-between; align-items:center; }
.notif-body { flex: 1; }
.notif-dot {
  width: 8px; height: 8px;
  background: var(--en-orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  animation: pulse .8s ease-out;
}

/* ============================================================
   MESSAGES
   ============================================================ */
.messages-layout { display: flex; flex: 1; min-width: 0; height: 100vh; overflow: hidden; }
.conv-list { width: 300px; border-right: 1px solid var(--en-border); flex-shrink: 0; overflow-y: auto; height: 100vh; }
.chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow: hidden; }
.conv-item {
  display: flex; align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--en-border);
  transition: background var(--transition);
}
.conv-item:hover { background: var(--en-surface); }
.conv-item.active { background: var(--en-surface); border-left: 3px solid var(--en-orange); }
.conv-info { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 6px; }
.conv-last { font-size: 13px; color: var(--en-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-messages {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.chat-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--en-muted); font-size: 14px;
}
.msg-row { display: flex; align-items: flex-end; gap: 6px; animation: fadeInUp .25s ease-out; }
.msg-row.me { flex-direction: row-reverse; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px; line-height: 1.5;
  max-width: 70%;
  word-break: break-word;
}
.msg-row.me .msg-bubble { background: var(--en-orange); color: #000; border-radius: 16px 16px 4px 16px; }
.msg-row.them .msg-bubble { background: var(--en-surface2); color: var(--en-text); border-radius: 16px 16px 16px 4px; }
.msg-time { font-size: 11px; color: var(--en-muted); padding-bottom: 2px; flex-shrink: 0; }
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--en-border);
  display: flex; gap: 10px; align-items: center;
}
.chat-input {
  flex: 1;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--en-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.chat-input:focus { border-color: var(--en-orange); box-shadow: 0 0 0 3px var(--en-orange-bg); }
.chat-send-btn {
  background: var(--en-orange);
  color: #000; border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--en-orange-dark); color: #fff; transform: scale(1.05); }

/* Profile actions row */
.profile-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-msg-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--en-border);
  background: transparent;
  color: var(--en-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.profile-msg-btn:hover { border-color: var(--en-orange); color: var(--en-orange); background: var(--en-orange-bg); }

/* Follower actions */
.follower-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.remove-follower-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--en-border);
  background: transparent;
  color: var(--en-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.remove-follower-btn:hover { border-color: var(--en-red); color: var(--en-red); background: rgba(224,54,90,.08); }

/* Profile Views Panel */
.profile-views-panel {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--en-border);
  background: linear-gradient(135deg, rgba(205,92,92,.03) 0%, transparent 100%);
}
.pv-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--en-muted);
}
.pv-title { font-size: 13px; font-weight: 600; color: var(--en-text); }
.pv-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.pv-stat { flex: 1; }
.pv-number {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--en-orange);
  line-height: 1;
}
.pv-label {
  font-size: 11px;
  color: var(--en-muted);
  margin-top: 2px;
}
.pv-viewers { margin-top: 6px; }
.pv-viewers-title {
  font-size: 11px;
  color: var(--en-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pv-viewers-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pv-viewer {
  display: block;
  transition: transform var(--transition);
}
.pv-viewer:hover { transform: scale(1.15); }

/* New message button & search */
.new-msg-btn {
  background: transparent;
  border: none;
  color: var(--en-orange);
  cursor: pointer;
  padding: 4px;
  display: flex; align-items: center;
  transition: opacity var(--transition);
}
.new-msg-btn:hover { opacity: .7; }
.new-msg-search {
  padding: 10px 14px;
  border-bottom: 1px solid var(--en-border);
}
.new-msg-input {
  width: 100%;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--en-text);
  outline: none;
  font-family: inherit;
  transition: border-color var(--transition);
}
.new-msg-input:focus { border-color: var(--en-orange); }
.new-msg-input::placeholder { color: var(--en-muted); }
.new-msg-results { margin-top: 6px; }
.new-msg-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.new-msg-user:hover { background: var(--en-surface2); }
.new-msg-user-info { flex: 1; min-width: 0; }
.new-msg-user-name { font-size: 13px; font-weight: 600; color: var(--en-text); }
.new-msg-user-handle { font-size: 12px; color: var(--en-muted); }

/* ============================================================
   WALLET
   ============================================================ */
.wallet-hero {
  padding: 22px 18px;
  border-bottom: 1px solid var(--en-border);
  background: linear-gradient(160deg, var(--en-surface) 0%, rgba(205,92,92,.03) 100%);
}
.wallet-addr {
  display: inline-flex; align-items: center;
  gap: 6px;
  font-size: 12px; color: var(--en-muted);
  font-family: monospace;
  background: var(--en-surface2);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--en-border);
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.wallet-addr:hover { border-color: var(--en-orange); }
.wallet-balances { display: flex; gap: 12px; margin-bottom: 16px; }
.balance-card {
  flex: 1;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color var(--transition), transform var(--transition);
}
.balance-card:hover { border-color: var(--en-orange-glow); transform: translateY(-2px); }
.balance-token { font-size: 11px; color: var(--en-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.balance-amount { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--en-white); }
.balance-usd { font-size: 12px; color: var(--en-muted); margin-top: 3px; }
.wallet-actions { display: flex; gap: 10px; }
.wallet-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--en-orange);
  color: var(--en-orange);
  border-radius: 20px;
  padding: 9px 12px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
}
.wallet-btn:hover { background: var(--en-orange); color: #000; transform: translateY(-1px); }
.wallet-btn.secondary { border-color: var(--en-border); color: var(--en-muted); }
.wallet-btn.secondary:hover { background: var(--en-surface2); color: var(--en-text); transform: translateY(-1px); }
.send-modal { padding: 0 18px 18px; }
.send-modal-inner {
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 20px;
}
.send-modal-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--en-white); margin-bottom: 14px; }
.tx-row {
  padding: 13px 18px;
  border-bottom: 1px solid var(--en-border);
  display: flex; align-items: center; gap: 14px;
  transition: background var(--transition);
}
.tx-row:hover { background: var(--en-surface); }
.tx-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.tx-info { flex: 1; }
.tx-amount { font-size: 14px; font-weight: 600; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tx-receive { color: var(--en-green); }
.tx-send    { color: var(--en-red); }
.tx-stake   { color: var(--en-orange); }
.tx-status  { color: var(--en-green); font-size: 11px; }
.qr-container {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  margin: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  position: relative;
}
.qr-container canvas {
  display: block;
  border-radius: 4px;
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-banner {
  height: 130px;
  background: linear-gradient(135deg,#1a1200 0%,#2d1e00 50%,#111 100%);
  border-bottom: 1px solid var(--en-border);
  position: relative;
  overflow: hidden;
}
.profile-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--en-bg), transparent);
}
.banner-upload-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
  border: none;
}
.profile-banner:hover .banner-upload-btn { opacity: 1; }
.banner-upload-btn:hover { background: var(--en-orange); color: #000; }

.profile-top {
  padding: 0 18px;
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: -28px; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.profile-avatar-wrap {
  position: relative;
  width: 72px; height: 72px;
  flex-shrink: 0;
}
.profile-pic-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--en-bg);
  display: block;
}
.avatar-upload-btn {
  position: absolute;
  bottom: 0; right: -4px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--en-surface);
  border: 2px solid var(--en-border);
  color: var(--en-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}
.avatar-upload-btn:hover { background: var(--en-orange); color: #000; border-color: var(--en-orange); }

.profile-stat-link {
  color: var(--en-muted);
  transition: color var(--transition);
}
.profile-stat-link:hover { color: var(--en-orange); }
.profile-stat-link strong { color: var(--en-white); }
.follow-profile-btn {
  background: var(--en-white);
  color: #000; border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
}
.follow-profile-btn:hover { opacity: .88; transform: translateY(-1px); }
.follow-profile-btn.following { background: transparent; border: 1px solid var(--en-muted); color: var(--en-text); }
.follow-profile-btn.secondary { background: transparent; border: 1px solid var(--en-border); color: var(--en-text); }
.follow-profile-btn.secondary:hover { border-color: var(--en-text); }
.profile-details { padding: 0 18px 14px; border-bottom: 1px solid var(--en-border); }
.profile-fullname { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--en-white); }
.profile-handle-big { font-size: 14px; color: var(--en-muted); margin: 2px 0 10px; }
.profile-bio { font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--en-muted); margin-bottom: 12px; }
.profile-stats { display: flex; gap: 18px; font-size: 14px; color: var(--en-muted); }
.profile-stats strong { color: var(--en-white); font-weight: 600; }
.profile-tabs { display: flex; border-bottom: 1px solid var(--en-border); }
.profile-tab, .ptab {
  flex: 1; text-align: center; padding: 13px;
  font-size: 14px; font-weight: 500;
  color: var(--en-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.profile-tab:hover, .ptab:hover { color: var(--en-text); background: var(--en-surface); }
.profile-tab.active, .ptab.active { color: var(--en-orange); border-bottom-color: var(--en-orange); }
.back-btn {
  background: transparent; border: none;
  color: var(--en-text); cursor: pointer;
  display: flex; align-items: center;
  padding: 2px;
  transition: opacity var(--transition);
}
.back-btn:hover { opacity: .7; }
.empty-state { padding: 40px; text-align: center; color: var(--en-muted); font-size: 14px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease-out;
}
.modal-box {
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%; max-width: 420px;
  margin: 16px;
  animation: fadeInUp .25s ease-out;
}
.modal-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--en-white); margin-bottom: 18px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--en-muted); margin-bottom: 6px; font-weight: 500; }
.form-input {
  width: 100%;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--en-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-input:focus { border-color: var(--en-orange); box-shadow: 0 0 0 3px var(--en-orange-bg); }
textarea.form-input { resize: vertical; }
select.form-input { appearance: none; cursor: pointer; }

/* ============================================================
   AUTH PAGE — Two-column layout
   ============================================================ */
.auth-root {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--en-bg);
}

.auth-brand {
  flex: 1;
  background: linear-gradient(160deg, #1a1200 0%, #0e0900 40%, #0C0C0C 100%);
  border-right: 1px solid var(--en-border);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(205,92,92,.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(205,92,92,.06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-brand-inner {
  max-width: 380px;
  position: relative; z-index: 1;
}
.auth-logo-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  overflow: hidden; flex-shrink: 0;
}
.auth-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 42px; font-weight: 800;
  color: var(--en-white);
  letter-spacing: -1.5px; line-height: 1;
  margin-bottom: 12px;
}
.auth-brand-tagline {
  font-size: 16px;
  color: var(--en-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}
.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature {
  display: flex; align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--en-text);
  transition: transform var(--transition);
}
.auth-feature:hover { transform: translateX(4px); }
.auth-feature-icon { font-size: 20px; flex-shrink: 0; }

/* Right form panel */
.auth-panel {
  width: 480px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
  height: 100vh;
}
.auth-card {
  width: 100%; max-width: 400px;
}
.auth-mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--en-white);
  margin-bottom: 6px;
}
.auth-card-sub {
  font-size: 14px;
  color: var(--en-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.auth-form { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--en-muted);
  margin-bottom: 7px;
}
.input-wrap {
  position: relative;
  display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 13px;
  color: var(--en-muted);
  pointer-events: none; flex-shrink: 0;
}
.auth-input {
  width: 100%;
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: 10px;
  padding: 11px 14px 11px 40px;
  font-size: 14px;
  color: var(--en-text);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.auth-input:focus {
  border-color: var(--en-orange);
  background: var(--en-surface2);
  box-shadow: 0 0 0 3px var(--en-orange-bg);
}
.auth-input::placeholder { color: var(--en-muted); }
.input-hint {
  font-size: 12px; color: var(--en-muted);
  margin-top: 5px; padding-left: 2px;
}
.auth-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--en-orange);
  color: #000; border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px; font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
  margin-top: 6px;
  cursor: pointer;
}
.auth-btn:hover { background: var(--en-orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(205,92,92,.25); }
.auth-error {
  display: flex; align-items: center;
  gap: 8px;
  background: rgba(224,54,90,.1);
  border: 1px solid rgba(224,54,90,.3);
  color: var(--en-red);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  animation: fadeInUp .25s ease-out;
}
.auth-divider {
  display: flex; align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--en-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--en-border);
}
.auth-demo-box {
  background: var(--en-surface);
  border: 1px solid rgba(205,92,92,.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.auth-demo-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
}
.auth-demo-row + .auth-demo-row {
  border-top: 1px solid var(--en-border);
  margin-top: 6px; padding-top: 10px;
}
.auth-demo-key { font-size: 12px; color: var(--en-muted); }
.auth-demo-val {
  font-family: monospace;
  font-size: 13px;
  color: var(--en-orange);
  background: var(--en-orange-bg);
  padding: 2px 8px;
  border-radius: 6px;
}
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--en-muted);
  margin-top: 20px;
}
.auth-switch a {
  color: var(--en-orange);
  font-weight: 600;
  transition: opacity var(--transition);
}
.auth-switch a:hover { opacity: .8; }

/* Auth select & registration interests */
.auth-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A7770' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.auth-select option { background: var(--en-surface); color: var(--en-text); }
.reg-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ============================================================
   REFERRAL / PARRAINAGE
   ============================================================ */
.ref-section { border-top: 4px solid var(--en-border); }
.ref-hero { padding: 18px; }
.ref-stats-row { display: flex; gap: 12px; margin-bottom: 16px; }
.ref-stat-card {
  flex: 1;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.ref-stat-card:hover { border-color: rgba(205,92,92,.2); transform: translateY(-2px); }
.ref-stat-penu { border-color: rgba(205,92,92,.3); background: rgba(205,92,92,.05); }
.ref-stat-label { font-size: 11px; color: var(--en-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 4px; }
.ref-stat-value { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--en-white); }
.ref-stat-sub { font-size: 11px; color: var(--en-muted); margin-top: 2px; }

.ref-code-box {
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.ref-code-label { font-size: 12px; color: var(--en-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.ref-code-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ref-code-text {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--en-orange);
  letter-spacing: 2px;
}
.ref-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  color: var(--en-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.ref-copy-btn:hover { border-color: var(--en-orange); color: var(--en-orange); }
.ref-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.ref-link-input {
  flex: 1;
  background: var(--en-surface2);
  border: 1px solid var(--en-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--en-muted);
  font-family: monospace;
  outline: none;
}
.ref-hint { font-size: 12px; color: var(--en-muted); line-height: 1.5; }
.ref-hint strong { color: var(--en-orange); }

.ref-conversion-box {
  background: var(--en-surface);
  border: 1px solid var(--en-border);
  border-radius: var(--radius);
  padding: 16px;
}
.ref-conv-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.ref-conv-title { font-size: 14px; font-weight: 600; color: var(--en-white); }
.ref-conv-rule { font-size: 12px; color: var(--en-muted); margin-top: 2px; }
.ref-convert-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--en-border);
  background: var(--en-surface2);
  color: var(--en-muted);
  cursor: not-allowed;
  transition: all var(--transition);
  white-space: nowrap;
}
.ref-convert-btn.ref-convert-ready {
  border-color: var(--en-orange);
  background: var(--en-orange);
  color: #000;
  cursor: pointer;
  animation: pulse .8s ease-out;
}
.ref-convert-btn.ref-convert-ready:hover { background: var(--en-orange-dark); color: #fff; transform: translateY(-1px); }
.ref-progress-bar {
  height: 8px;
  background: var(--en-surface2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.ref-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--en-orange-dark), var(--en-orange));
  border-radius: 4px;
  transition: width .5s ease-out;
  min-width: 2px;
}
.ref-progress-label { font-size: 11px; color: var(--en-muted); }

.ref-filleul-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--en-border);
  transition: background var(--transition);
}
.ref-filleul-row:hover { background: var(--en-surface); }
.ref-filleul-info { flex: 1; display: flex; align-items: center; gap: 6px; }
.ref-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.ref-badge-verified { background: rgba(29,185,84,.15); color: #1DB954; }
.ref-badge-pending { background: var(--en-surface2); color: var(--en-muted); }
.tx-referral { color: #CE93D8; }

@media (max-width: 600px) {
  .ref-stats-row { flex-direction: column; }
  .ref-conv-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .trending-panel { width: 240px; }
}

@media (max-width: 1060px) {
  .trending-panel { display: none; }
  .feed { max-width: 100%; }
}

/* Icon-only sidebar */
@media (max-width: 900px) {
  .sidebar {
    width: 64px; min-width: 64px;
    padding: 14px 8px;
  }
  .sidebar .logo-name,
  .sidebar .nav-item span,
  .sidebar .profile-info,
  .sidebar .post-btn { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 10px; }
  .sidebar .logo-wrap { justify-content: center; padding: 8px 0 14px; }
  .sidebar .profile-mini { justify-content: center; padding: 8px; }
  .sidebar .sidebar-bottom { flex-direction: column; gap: 2px; }
  .sidebar .logout-btn { width: 100%; justify-content: center; }
  .nav-badge { position: absolute; top: 4px; right: 4px; margin: 0; }
  .feed { max-width: 100%; }
}

/* Mobile: fixed bottom nav bar */
@media (max-width: 600px) {
  .app-layout {
    flex-direction: column;
    padding-bottom: 60px;
  }
  .sidebar {
    width: 100%; min-width: unset;
    height: 56px;
    position: fixed;
    bottom: 0; left: 0; right: 0; top: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    border-right: none;
    border-top: 1px solid var(--en-border);
    background: rgba(12,12,12,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    gap: 0;
    overflow: visible;
    align-self: auto;
  }
  .sidebar .logo-wrap { display: none; }
  .sidebar .sidebar-bottom { display: none; }
  .sidebar .post-btn { display: none; }
  .sidebar .nav-item {
    flex: 1;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 8px;
    height: 100%;
  }
  .sidebar .nav-item span { display: none; }
  .nav-badge { position: absolute; top: 4px; right: 2px; margin: 0; padding: 1px 5px; }
  .main-content { flex-direction: column; align-items: stretch; }
  .feed { max-width: 100%; height: auto; border-right: none; }
  .trending-panel { display: none; }
  .conv-list { width: 100%; height: auto; }
  .messages-layout { flex-direction: column; height: auto; }
  .chat-area { height: 80vh; }
  .msg-bubble { max-width: 85%; }
  .wallet-balances { flex-direction: column; }
}

/* Responsive auth */
@media (max-width: 768px) {
  .auth-root { flex-direction: column; }
  .auth-brand { display: none; }
  .auth-panel { width: 100%; padding: 32px 20px; align-items: flex-start; padding-top: 48px; }
  .auth-mobile-logo { display: flex; }
}
