/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #18181b;
  --bg-surface:    #1f1f23;
  --bg-elevated:   #27272b;
  --bg-hover:      #2f2f35;
  --border:        #35353d;
  --border-subtle: #28282e;
  --text-primary:  #fafafa;
  --text-secondary:#b4b4b9;
  --text-muted:    #6b6b70;
  --accent:        #6366f1;
  --accent-hover:  #4f46e5;
  --accent-dim:    rgba(99,102,241,0.08);
  --green:         #22c55e;
  --green-dim:     rgba(34,197,94,0.08);
  --red:           #ef4444;
  --red-dim:       rgba(239,68,68,0.08);
  --yellow:        #eab308;
  --yellow-dim:    rgba(234,179,8,0.08);
  --radius-sm:     4px;
  --radius:        6px;
  --radius-lg:     8px;
  --shadow:        0 1px 3px rgba(0,0,0,0.5);
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(180deg, #252529 0%, #0f0f11 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background-image: url('icons/CoinLogo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  animation: spin3d 25s linear infinite;
}

@keyframes spin3d {
  0% {
    transform: translate(-50%, -50%) rotateY(0deg) rotateX(15deg);
    opacity: 0.04;
  }
  50% {
    opacity: 0.06;
  }
  100% {
    transform: translate(-50%, -50%) rotateY(360deg) rotateX(15deg);
    opacity: 0.04;
  }
}

#app {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== LAYOUT ===== */
#app { display: flex; flex-direction: column; min-height: 100vh; }

.page { display: none; flex-direction: column; flex: 1; }
.page.active { display: flex; }

/* ===== NAVBAR ===== */
.navbar {
  position: relative;
  background: transparent;
  border: none;
  padding: 20px 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.navbar-inner {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.1);
  width: 65%;
  max-width: 900px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.navbar-inner:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.navbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity 0.15s;
}
.navbar-brand:hover { opacity: 0.8; }
.navbar-brand .logo-icon {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

.navbar-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.1s;
  border: none; background: none;
  position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: -2px; left: 12px; right: 12px;
  height: 2px; background: var(--accent);
  border-radius: 99px;
}

.navbar-right {
  display: flex; align-items: center; gap: 12px;
}

.points-badge {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px 4px 8px;
  font-size: 12px; font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.1s;
}
.points-badge:hover { border-color: var(--border-subtle); background: var(--bg-hover); }
.points-badge .coin { font-size: 14px; opacity: 0.6; }

.avatar-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  color: white;
  overflow: hidden;
}
.avatar-btn:hover { opacity: 0.85; transform: scale(1.05); }

/* ===== CONTAINER ===== */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; width: 100%; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 20px 24px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.page-header h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.page-header p { color: var(--text-muted); margin-top: 2px; font-size: 13px; }

/* ===== CARDS ===== */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.card-sm {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid transparent;
}
.btn-danger:hover { background: rgba(239,68,68,0.12); transform: translateY(-1px); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== INPUTS ===== */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.03em; }
.input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}
.input:focus { 
  border-color: var(--accent); 
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.input::placeholder { color: var(--text-muted); opacity: 0.5; }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.6; }
input[type="file"].input { padding: 8px 12px; cursor: pointer; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-accent { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(99,102,241,0.2); }
.badge-green  { background: var(--green-dim);  color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.badge-red    { background: var(--red-dim);    color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.badge-gray   { background: var(--bg-elevated); color: var(--text-muted); border: 1px solid var(--border); }

/* ===== DIVIDER ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; opacity: 0.4; }

/* ===== TOAST ===== */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease;
  pointer-events: all;
  min-width: 220px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--accent); }
@keyframes slideIn {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.85);
  align-items: center; justify-content: center;
  backdrop-filter: blur(12px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 32px;
  width: 100%; max-width: 480px;
  backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.1);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 22px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); transform: rotate(90deg); }

/* ===== AUTH PAGE ===== */
.auth-wrapper {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  width: 100%; max-width: 380px;
  backdrop-filter: blur(10px);
}
.auth-card h2 { font-size: 19px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; text-align: center; }
.auth-card .auth-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.auth-switch span { color: var(--accent); cursor: pointer; font-weight: 500; }
.auth-switch span:hover { opacity: 0.8; }

/* ===== FORUM HOME ===== */
.forum-main { padding: 20px 0; flex: 1; }

.category-section { margin-bottom: 24px; }
.category-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px; padding-left: 0; opacity: 0.7;
}

.thread-list { display: flex; flex-direction: column; gap: 8px; }
.thread-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.thread-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
}
.thread-item:hover::before { opacity: 1; }
.thread-item:hover { 
  background: rgba(255,255,255,0.06); 
  border-color: rgba(255,255,255,0.18); 
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.1);
}
.thread-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: white;
  border: 1px solid rgba(255,255,255,0.05);
}
.thread-body { flex: 1; min-width: 0; }
.thread-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; opacity: 0.7; }
.thread-stats {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; font-size: 11px; color: var(--text-muted);
}
.thread-stat { display: flex; align-items: center; gap: 3px; opacity: 0.6; }

.pinned-tag {
  font-size: 9px; font-weight: 500; letter-spacing: 0.03em;
  background: var(--yellow-dim); color: var(--yellow);
  padding: 2px 6px; border-radius: 3px; text-transform: uppercase;
  border: 1px solid rgba(234,179,8,0.2);
  margin-right: 6px;
}

/* new thread btn row */
.forum-actions {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
}

/* ===== POST DETAIL ===== */
.post-detail { padding: 24px 0; flex: 1; }
.post-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.post-card-header { padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.post-card-body { padding: 20px 24px; }
.post-card-footer {
  padding: 12px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 10px;
}
.post-author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white;
}
.post-author-info .name { font-weight: 600; font-size: 15px; }
.post-author-info .time { font-size: 12px; color: var(--text-muted); }
.post-content { font-size: 15px; line-height: 1.75; color: var(--text-primary); }

.reply-action-btn {
  background: none; border: none; color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.reply-action-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.reply-action-btn.liked { color: var(--accent); }

.replies-section { margin-top: 8px; }
.replies-header { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.reply-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
}
.reply-compose {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  backdrop-filter: blur(10px);
}
.reply-compose h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-secondary); }

/* ===== PROFILE ===== */
.profile-page { padding: 24px 0; flex: 1; }
.profile-hero {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px;
  padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center;
  margin: 40px auto 32px;
  backdrop-filter: blur(50px) saturate(180%);
  text-align: center;
  max-width: 65%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.1);
  animation: profileFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  animation: profileGlow 8s ease-in-out infinite;
}
@keyframes profileGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}
@keyframes profileFadeIn {
  from { transform: scale(0.9) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.profile-avatar-lg {
  width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; color: white;
  border: 3px solid rgba(255,255,255,0.15);
  position: relative; z-index: 1;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-avatar-lg:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.profile-info { flex: 1; max-width: 100%; position: relative; z-index: 1; }
.profile-info .username { font-size: 28px; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fafafa 0%, #b4b4b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-info .handle { color: var(--text-muted); font-size: 14px; margin-top: 6px; opacity: 0.8; }
.profile-info .bio { color: var(--text-secondary); font-size: 14px; margin-top: 16px; max-width: 100%; line-height: 1.7; }
.profile-stats { display: flex; gap: 48px; margin-top: 28px; justify-content: center; }
.profile-stat-item { text-align: center; }
.profile-stat-item .val { font-size: 24px; font-weight: 700; }
.profile-stat-item .lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.profile-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: white;
  border: 3px solid var(--border);
  position: relative;
}
.profile-info { flex: 1; }
.profile-info .username { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.profile-info .handle { color: var(--text-muted); font-size: 14px; margin-top: 2px; }
.profile-info .bio { color: var(--text-secondary); font-size: 14px; margin-top: 10px; max-width: 500px; line-height: 1.6; }
.profile-stats { display: flex; gap: 24px; margin-top: 16px; }
.profile-stat-item { text-align: center; }
.profile-stat-item .val { font-size: 20px; font-weight: 700; }
.profile-stat-item .lbl { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

.profile-tabs { display: flex; gap: 2px; margin-bottom: 20px; justify-content: center; }
.profile-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  border: none; background: none; cursor: pointer;
  transition: all 0.15s;
}
.profile-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
.profile-tab.active { background: var(--accent-dim); color: var(--accent); }

.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }

/* ===== EDIT PROFILE ===== */
.edit-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .edit-profile-grid { grid-template-columns: 1fr; } }

/* ===== DAILY TASKS ===== */
.tasks-page { padding: 24px 0; flex: 1; }
.tasks-grid { display: flex; flex-direction: column; gap: 10px; }
.task-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: all 0.15s;
  backdrop-filter: blur(10px);
}
.task-item.claimed { opacity: 0.5; }
.task-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  color: white;
}
.task-body { flex: 1; }
.task-body .task-name { font-weight: 600; font-size: 15px; }
.task-body .task-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.task-reward {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--yellow);
  flex-shrink: 0;
}
.task-progress { height: 4px; background: var(--bg-elevated); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.task-progress-bar { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.3s; }

.streak-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 20px;
  backdrop-filter: blur(10px);
}
.streak-fire { font-size: 48px; line-height: 1; }
.streak-info .streak-count { font-size: 36px; font-weight: 800; color: var(--yellow); letter-spacing: -1px; }
.streak-info .streak-label { font-size: 14px; color: var(--text-secondary); }
.streak-info .streak-next { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== SHOP ===== */
.shop-page { padding: 24px 0; flex: 1; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shop-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.15s;
  backdrop-filter: blur(10px);
}
.shop-item:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }
.shop-item-icon {
  width: 52px; height: 52px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.shop-item-name { font-size: 16px; font-weight: 700; }
.shop-item-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.shop-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.shop-item-price {
  display: flex; align-items: center; gap: 5px;
  font-size: 16px; font-weight: 700; color: var(--yellow);
}
.shop-item-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; background: var(--bg-elevated);
}
.shop-tabs { display: flex; gap: 2px; margin-bottom: 20px; }

/* ===== SELL MODAL ===== */
.sell-form { display: flex; flex-direction: column; gap: 14px; }

/* ===== POINTS HISTORY ===== */
.points-page { padding: 24px 0; flex: 1; }
.points-hero {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.points-hero .big-number { font-size: 56px; font-weight: 800; color: var(--yellow); letter-spacing: -2px; line-height: 1; }
.points-hero .big-label { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.points-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.points-stat {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px; text-align: center;
  backdrop-filter: blur(10px);
}
.points-stat .val { font-size: 22px; font-weight: 700; }
.points-stat .lbl { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tx-list { display: flex; flex-direction: column; gap: 6px; }
.tx-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(10px);
}
.tx-icon { font-size: 18px; width: 32px; text-align: center; flex-shrink: 0; color: var(--text-secondary); }
.tx-body { flex: 1; }
.tx-body .tx-label { font-size: 14px; font-weight: 500; }
.tx-body .tx-time  { font-size: 12px; color: var(--text-muted); }
.tx-amount { font-size: 15px; font-weight: 700; }
.tx-amount.pos { color: var(--green); }
.tx-amount.neg { color: var(--red); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 12px; color: var(--text-muted); opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ===== UTILITIES ===== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media(max-width: 640px){
  .navbar-inner { width: 95%; padding: 10px 16px; }
  .navbar-links { display: none; }
  .points-breakdown { grid-template-columns: 1fr 1fr; }
  .thread-stats { display: none; }
  .profile-hero { max-width: 95%; padding: 32px 24px; }
  .profile-stats { gap: 24px; }
}

/* ===== PROFILE ENHANCEMENTS ===== */
.profile-avatar-wrapper { position: relative; margin-bottom: 16px; }

.profile-avatar-lg-img {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-avatar-lg-img:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.profile-badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  color: var(--yellow); opacity: 0.9;
}
.profile-badge-icon svg { width: 16px; height: 16px; }

.profile-badges-list {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-top: 12px;
}

.avatar-upload-btn {
  position: absolute; bottom: 0; right: -4px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-base);
  color: white; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.avatar-upload-btn:hover { background: var(--accent-hover); transform: scale(1.05); }

.profile-link {
  margin-top: 10px; font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; justify-content: center;
  cursor: pointer; transition: color 0.15s;
}
.profile-link:hover { color: var(--accent); }

.vouches-list { display: flex; flex-direction: column; gap: 12px; }
.vouch-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
}
.vouch-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vouch-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: white;
  border: 1px solid rgba(255,255,255,0.1);
}
.vouch-author { font-size: 13px; font-weight: 600; }
.vouch-time { font-size: 11px; color: var(--text-muted); }
.vouch-text { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

.nav-link { display: flex; align-items: center; gap: 6px; }
.profile-tab { display: flex; align-items: center; gap: 6px; }

/* ===== INTRO PAGE ===== */
.intro-page {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(180deg, #252529 0%, #0f0f11 100%);
  display: flex; align-items: center; justify-content: center;
  animation: fadeOut 0.6s ease 3s forwards;
}
.intro-content {
  text-align: center;
  animation: introZoom 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.intro-logo {
  font-size: 64px; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, #6366f1 0%, #a78bfa 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 24px rgba(99,102,241,0.5));
  animation: logoGlow 2s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 8px 24px rgba(99,102,241,0.5)); }
  50% { filter: drop-shadow(0 12px 32px rgba(99,102,241,0.8)); }
}
.intro-tagline {
  font-size: 16px; color: var(--text-muted); letter-spacing: 0.1em;
  animation: fadeInUp 0.8s ease 0.4s both;
  text-transform: uppercase;
}
@keyframes introZoom {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeInUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}

/* ===== ADMIN PANEL ===== */
.admin-panel-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(239,68,68,0.4);
  color: white; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-panel-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(239,68,68,0.6); }

.admin-panel {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.admin-panel.open { display: flex; }
.admin-panel-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 90%; max-width: 800px; max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(30px);
  padding: 32px;
  animation: modalIn 0.2s ease;
}
.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
.admin-tab {
  padding: 8px 16px; border-radius: 6px; background: none; border: none;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.admin-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
.admin-tab.active { background: var(--accent-dim); color: var(--accent); }
.admin-section { display: none; }
.admin-section.active { display: block; }

.user-list { display: flex; flex-direction: column; gap: 8px; }
.user-list-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
}
.user-list-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: white;
  border: 1px solid rgba(255,255,255,0.1);
}
.user-list-info { flex: 1; }
.user-list-name { font-size: 14px; font-weight: 600; }
.user-list-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== SMOOTH SCROLLING ===== */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { 
  background: rgba(99,102,241,0.5);
  border-radius: 99px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.8); }

/* ===== MARKETPLACE GRID ===== */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.marketplace-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  position: relative;
}

.marketplace-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}

.marketplace-image {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

.marketplace-link-preview {
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(168,139,250,0.1) 100%);
}

.marketplace-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
}

.marketplace-content {
  padding: 16px;
}

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

.marketplace-author {
  display: flex; align-items: center; gap: 8px;
}

.marketplace-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.marketplace-author-name {
  font-size: 13px; font-weight: 600;
}

.marketplace-time {
  font-size: 11px; color: var(--text-muted);
}

.marketplace-title {
  font-size: 16px; font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.marketplace-desc {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.marketplace-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.marketplace-price {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700;
  color: var(--yellow);
}

.marketplace-stats {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}

.marketplace-stats span {
  display: flex; align-items: center; gap: 4px;
}

.pinned-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(234,179,8,0.9);
  color: #0f0f11;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(234,179,8,0.4);
}

/* ===== LISTING MODAL ===== */
.listing-modal {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px;
  width: 90%; max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 2px 0 rgba(255,255,255,0.1);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.listing-modal-close {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  background: rgba(0,0,0,0.5); border-radius: 50%;
  width: 40px; height: 40px;
}

.listing-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
}

.listing-modal-media {
  background: rgba(0,0,0,0.3);
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 28px 0 0 28px;
  overflow: hidden;
}

.listing-modal-image {
  width: 100%; height: 100%; object-fit: cover;
}

.listing-modal-link, .listing-modal-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted);
  padding: 40px;
}

.listing-modal-info {
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}

.listing-modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
}

.listing-modal-title {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.3;
}

.listing-modal-price-big {
  display: flex; align-items: center; gap: 8px;
  font-size: 28px; font-weight: 800;
  color: var(--yellow);
}

.listing-modal-seller {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.listing-modal-seller-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: white;
  border: 2px solid rgba(255,255,255,0.1);
}

.listing-modal-seller-name {
  font-size: 15px; font-weight: 600;
}

.listing-modal-seller-meta {
  font-size: 12px; color: var(--text-muted);
}

.listing-modal-desc h4 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
  margin-bottom: 8px;
}

.listing-modal-desc p {
  font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}

.listing-modal-link-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  font-size: 13px;
}

.listing-modal-stats {
  display: flex; gap: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.listing-stat {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
}

.listing-modal-actions {
  display: flex; gap: 12px;
}

.listing-modal-balance {
  text-align: center;
  font-size: 13px; color: var(--text-muted);
}

/* Purchase Item */
.purchase-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(20px);
}

.purchase-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 8px;
}

.purchase-header h4 {
  font-size: 15px; font-weight: 600;
}

.purchase-price {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--yellow);
}

.purchase-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 6px;
}

@media(max-width: 768px) {
  .listing-modal-grid {
    grid-template-columns: 1fr;
  }
  .listing-modal-media {
    border-radius: 28px 28px 0 0;
    min-height: 250px;
  }
}

/* ===== ICON IMAGES ===== */
.icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.icon-img-lg {
  width: 20px;
  height: 20px;
}

.icon-img-sm {
  width: 14px;
  height: 14px;
}

button:hover .icon-img,
.nav-link:hover .icon-img {
  opacity: 1;
}

/* ===== INTRO PAGE ===== */
.intro-main {
  max-width: 900px;
  margin: 40px auto;
}

.intro-welcome-header {
  text-align: center;
  margin-bottom: 50px;
}

.intro-welcome-header h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.intro-welcome-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

.intro-section {
  margin-bottom: 50px;
}

.intro-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.intro-feature-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.intro-feature-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.intro-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.intro-feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.intro-feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.intro-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.intro-stat-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.intro-stat-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.intro-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.intro-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

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

.intro-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.intro-action-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.intro-action-card:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.intro-action-card svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.intro-socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.intro-social-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.intro-social-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  background: var(--bg-card);
}

.intro-social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-social-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.intro-social-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== SPIN THE WHEEL ===== */
.spin-page {
  max-width: 900px;
}

.spin-container {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
}

.spin-wheel-wrapper {
  position: relative;
  width: 450px;
  height: 450px;
  margin: 0 auto 40px;
}

.spin-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(124,111,255,0.4));
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.spin-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--accent);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  z-index: 10;
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9b8aff);
  border: 6px solid var(--bg);
  font-size: 17px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124,111,255,0.6);
  z-index: 10;
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 6px 30px rgba(124,111,255,0.8);
}

.spin-button:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.spin-prizes {
  margin-top: 40px;
}

.spin-prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.spin-prize {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
}

/* ===== WALLET PAGE ===== */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.points-balance-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
}

.points-balance-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(251,191,36,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 28px;
  flex-shrink: 0;
}

.points-balance-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.points-balance-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.market-status-card {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.1);
}

.market-status-card.up {
  border-color: rgba(74,222,128,0.3);
  background: linear-gradient(135deg, var(--bg-elevated), rgba(74,222,128,0.05));
}

.market-status-card.down {
  border-color: rgba(248,113,113,0.3);
  background: linear-gradient(135deg, var(--bg-elevated), rgba(248,113,113,0.05));
}

.market-status-card.stable {
  border-color: rgba(96,165,250,0.3);
  background: linear-gradient(135deg, var(--bg-elevated), rgba(96,165,250,0.05));
}

.market-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.market-status-card.up .market-icon {
  background: rgba(74,222,128,0.1);
  color: var(--green);
}

.market-status-card.down .market-icon {
  background: rgba(248,113,113,0.1);
  color: var(--red);
}

.market-status-card.stable .market-icon {
  background: rgba(96,165,250,0.1);
  color: var(--blue);
}

.market-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.market-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.market-status-card.up .market-value {
  color: var(--green);
}

.market-status-card.down .market-value {
  color: var(--red);
}

.market-status-card.stable .market-value {
  color: var(--blue);
}

.market-change {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transaction-item {
  background: var(--bg-elevated);
  backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.transaction-item:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateX(2px);
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.transaction-item.earn .transaction-icon {
  background: rgba(74,222,128,0.1);
  color: var(--green);
}

.transaction-item.spend .transaction-icon {
  background: rgba(248,113,113,0.1);
  color: var(--red);
}

.transaction-info {
  flex: 1;
}

.transaction-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.transaction-time {
  font-size: 12px;
  color: var(--text-muted);
}

.transaction-amount {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.transaction-amount.positive {
  color: var(--green);
}

.transaction-amount.negative {
  color: var(--red);
}


/* ═════════════════════════════════════════
   NEW MODERN PROFILE DESIGN
═════════════════════════════════════════ */

.profile-header-new {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.profile-cover {
  height: 140px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.15) 100%);
  position: relative;
}

.profile-header-content {
  padding: 0 28px 28px;
  position: relative;
}

.profile-avatar-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -50px;
  margin-bottom: 16px;
}

.profile-avatar-large {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--bg-surface);
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.profile-avatar-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-surface);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-avatar-edit:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}
.profile-avatar-edit svg { width: 14px; height: 14px; }

.profile-header-info {
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.profile-display-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.profile-badges-inline {
  display: flex;
  gap: 6px;
  align-items: center;
}

.profile-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  opacity: 0.95;
}
.profile-badge-new svg { width: 18px; height: 18px; }

.profile-username-row {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.profile-bio-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 14px;
  max-width: 600px;
}

.profile-meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.profile-meta-item svg { opacity: 0.7; }

.profile-all-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.profile-header-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Stats Bar */
.profile-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.profile-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}
.profile-stat-box:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.profile-stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* New Tabs Design */
.profile-tabs-new {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 4px;
}

.profile-tab-new {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.profile-tab-new svg { width: 14px; height: 14px; }
.profile-tab-new:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.profile-tab-new.active {
  background: var(--accent);
  color: white;
}

.profile-tab-content-new {
  display: none;
}
.profile-tab-content-new.active {
  display: block;
}

/* Listings Grid */
.profile-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.profile-listing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-listing-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.profile-listing-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

.profile-listing-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.profile-listing-content {
  padding: 14px;
}

.profile-listing-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-listing-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-listing-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 10px;
}

.profile-listing-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.profile-listing-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Vouches Grid */
.vouches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.vouch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.2s;
}
.vouch-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vouch-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vouch-card-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.vouch-card-time {
  font-size: 11px;
  color: var(--text-muted);
}

.vouch-card-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.2s;
}
.activity-item:hover {
  border-color: var(--border);
  background: var(--bg-hover);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg { width: 18px; height: 18px; }

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.activity-text strong {
  font-weight: 600;
}

.activity-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header-content {
    padding: 0 20px 20px;
  }
  
  .profile-avatar-large {
    width: 90px;
    height: 90px;
  }
  
  .profile-display-name {
    font-size: 20px;
  }
  
  .profile-stats-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .profile-listings-grid,
  .vouches-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header-actions {
    flex-direction: column;
  }
}


/* ═════════════════════════════════════════
   CRYPTO-STYLE MARKET CHART
═════════════════════════════════════════ */

.chart-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.chart-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-stats {
  display: flex;
  gap: 24px;
}

.chart-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chart-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.chart-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

#market-chart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.market-change.positive {
  color: var(--green);
}

.market-change.negative {
  color: var(--red);
}

@media (max-width: 768px) {
  .chart-container {
    padding: 16px;
  }
  
  .chart-header {
    flex-direction: column;
  }
  
  .chart-stats {
    width: 100%;
    justify-content: space-between;
  }
  
  #market-chart {
    height: 200px;
  }
}


/* ═════════════════════════════════════════
   FORUM TABS & SECTIONS
═════════════════════════════════════════ */

.forum-header-new {
  margin-bottom: 24px;
}
.forum-header-new h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 4px;
}
.forum-header-new p {
  font-size: 14px;
  color: var(--text-muted);
}

.forum-tabs-new {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
}

.forum-tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.forum-tab-btn svg { width: 16px; height: 16px; }
.forum-tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.forum-tab-btn.active {
  background: var(--accent);
  color: white;
}

.forum-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}
.forum-section-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.forum-section-header p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Announcements */
.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
}
.announcement-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.announcement-author-info {
  flex: 1;
}

.announcement-author-name {
  font-size: 14px;
  font-weight: 600;
}

.announcement-time {
  font-size: 12px;
  color: var(--text-muted);
}

.announcement-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.announcement-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Community Chat */
.chat-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-message.own {
  flex-direction: row-reverse;
}

.chat-message-content {
  max-width: 60%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}

.chat-message.own .chat-message-content {
  background: var(--accent);
  border-color: var(--accent);
}

.chat-message-author {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.chat-message-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  word-wrap: break-word;
}

.chat-message.own .chat-message-text {
  color: white;
}

.chat-message-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-message.own .chat-message-time {
  color: rgba(255,255,255,0.7);
  text-align: right;
}

.chat-input-container {
  display: flex;
  gap: 10px;
  padding: 16px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}
.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input-container .btn {
  padding: 12px 20px;
}

@media (max-width: 768px) {
  .forum-tabs-new {
    flex-direction: column;
    gap: 4px;
  }
  
  .forum-section-header {
    flex-direction: column;
  }
  
  .chat-container {
    height: 500px;
  }
  
  .chat-message-content {
    max-width: 80%;
  }
}


/* ═════════════════════════════════════════
   GIVEAWAYS
═════════════════════════════════════════ */

.giveaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.giveaway-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.2s;
}
.giveaway-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.15);
}

.giveaway-card.giveaway-ended {
  opacity: 0.6;
}
.giveaway-card.giveaway-ended:hover {
  border-color: var(--border);
  transform: none;
}

.giveaway-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--green);
  color: white;
}
.giveaway-ended .giveaway-badge {
  background: var(--text-muted);
}

.giveaway-prize-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.giveaway-prize-icon svg {
  width: 28px;
  height: 28px;
}

.giveaway-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.giveaway-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 16px;
}

.giveaway-prize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--yellow-dim);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 16px;
}
.giveaway-prize img {
  width: 20px;
  height: 20px;
}

.giveaway-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.giveaway-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.giveaway-stat svg {
  width: 14px;
  height: 14px;
}

.giveaway-host {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .giveaways-grid {
    grid-template-columns: 1fr;
  }
}


/* ═════════════════════════════════════════
   PUBLIC PROFILE BANNER
═════════════════════════════════════════ */

.public-profile-banner {
  background: linear-gradient(135deg, var(--accent) 0%, rgba(99,102,241,0.8) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.public-profile-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.public-profile-banner h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.public-profile-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
  .public-profile-banner-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  animation: fadeIn 0.15s ease;
  padding-top: 100px;
}

.search-dropdown.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.search-dropdown-container {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-dropdown-header {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.search-dropdown-header > .lucide-search {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-dropdown-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  min-width: 0;
}

.search-dropdown-input::placeholder {
  color: var(--text-muted);
}

.search-type-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-base);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

.search-type-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.search-type-btn:hover {
  color: var(--text-secondary);
}

.search-type-btn.active {
  background: var(--accent);
  color: white;
}

.search-close-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  transition: all 0.15s;
  flex-shrink: 0;
}

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

.search-close-btn i {
  width: 16px;
  height: 16px;
}

.search-dropdown-results {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-height: 480px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.search-dropdown-empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--text-muted);
}

.search-dropdown-empty i {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  opacity: 0.4;
}

.search-dropdown-empty p {
  font-size: 13px;
}

.search-result-item-dropdown {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item-dropdown:last-child {
  border-bottom: none;
}

.search-result-item-dropdown:hover {
  background: var(--bg-elevated);
}

.search-result-title-dropdown {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.search-result-desc-dropdown {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
}

.search-result-meta-item-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-result-meta-item-dropdown i {
  width: 11px;
  height: 11px;
}

.user-result-dropdown {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 11px;
}

.user-result-dropdown:last-child {
  border-bottom: none;
}

.user-result-dropdown:hover {
  background: var(--bg-elevated);
}

.user-result-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}

.user-result-info {
  flex: 1;
  min-width: 0;
}

.user-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-result-username {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.user-result-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.user-result-stats i {
  width: 11px;
  height: 11px;
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
}

.search-no-results i {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  margin-bottom: 10px;
  opacity: 0.4;
}

.search-no-results h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.search-no-results p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .search-dropdown {
    padding-top: 80px;
  }
  
  .search-dropdown-container {
    padding: 0 16px;
  }
  
  .search-dropdown-header {
    padding: 10px 14px;
  }
  
  .search-type-toggle {
    display: none;
  }
  
  .search-dropdown-results {
    max-height: 400px;
  }
}

/* ===== ADMIN PANEL IMPROVEMENTS ===== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-icon i {
  width: 24px;
  height: 24px;
}

.admin-stat-info {
  flex: 1;
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.admin-section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-users-list,
.admin-threads-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-card,
.admin-thread-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.admin-user-card:hover,
.admin-thread-card:hover {
  border-color: var(--border);
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.admin-user-info,
.admin-thread-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name,
.admin-thread-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-user-username {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.admin-user-stats,
.admin-thread-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.admin-user-stats i {
  width: 11px;
  height: 11px;
}

.admin-user-actions,
.admin-thread-actions,
.admin-giveaway-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-announcements-list,
.admin-giveaways-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-announcement-card,
.admin-giveaway-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-announcement-info,
.admin-giveaway-info {
  flex: 1;
  min-width: 0;
}

.admin-announcement-title,
.admin-giveaway-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-announcement-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.admin-announcement-meta,
.admin-giveaway-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

/* ===== PURCHASES TAB ===== */
.purchases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.purchase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all 0.2s;
}

.purchase-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.purchase-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.purchase-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

.purchase-card-price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
  white-space: nowrap;
}

.purchase-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.purchase-card-meta i {
  width: 12px;
  height: 12px;
}

.purchase-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.purchase-card-badge i {
  width: 12px;
  height: 12px;
}

.purchase-card-badge-unavailable {
  background: var(--red-dim);
  color: var(--red);
}

/* ===== FIX WHITE BACKGROUNDS ON DROPDOWNS/SELECTS ===== */
select.input,
select {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

select.input option,
select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Fix for modal confirm dialogs */
.modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

/* Override browser default confirm/alert styles */
dialog {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
