* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #6c8cff;
  --purple: #a855f7;
  --green: #4ade80;
  --red: #ef4444;
  --amber: #f59e0b;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --bg: #06060b;
  --surface: #0e0e18;
  --glass: rgba(10, 10, 18, 0.75);
  --glass-border: rgba(108, 140, 255, 0.08);
  --text: #ececf4;
  --text-dim: #6a6a80;
  --text-muted: #3e3e50;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(108,140,255,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

::selection { background: rgba(108,140,255,0.3); color: #fff; }

/* ══════════════════════════════════════
   AMBIENT BACKGROUND — lives behind everything
   ══════════════════════════════════════ */
.ambient-bg {
  position: fixed; inset: 0; z-index: -10;
  pointer-events: none; overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ambient-orb.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,140,255,0.12), transparent 70%);
  top: -10%; left: -5%;
  animation: orbDrift1 25s ease-in-out infinite alternate;
}
.ambient-orb.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.10), transparent 70%);
  bottom: -10%; right: -5%;
  animation: orbDrift2 30s ease-in-out infinite alternate;
}
.ambient-orb.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.06), transparent 70%);
  top: 40%; left: 50%;
  animation: orbDrift3 20s ease-in-out infinite alternate;
}
@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -80px) scale(1.2); }
}
@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(0.9); }
}

/* Mouse-following glow */
.ambient-cursor {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,140,255,0.06), transparent 70%);
  pointer-events: none; z-index: -9;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  will-change: left, top;
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed; inset: 0; z-index: -8;
  pointer-events: none; opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Grid dots pattern */
.grid-dots {
  position: fixed; inset: 0; z-index: -7;
  pointer-events: none; opacity: 0.025;
  background-image: radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple); }

/* ══════════════════════════════════════
   HEADER — glassmorphism with depth
   ══════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(6,6,11,0.55);
  backdrop-filter: blur(40px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  gap: 12px;
}
header.scrolled {
  padding: 10px 28px;
  background: rgba(6,6,11,0.82);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
header::after {
  content: ''; position: absolute; bottom: -1px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,140,255,0.12), rgba(168,85,247,0.08), transparent);
  pointer-events: none;
}

header .brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 800; cursor: pointer;
  text-decoration: none; letter-spacing: -0.3px;
}
header .brand:active { opacity: 0.7; }
header .brand .logo {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
  box-shadow: 0 2px 20px rgba(108,140,255,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
header .brand:hover .logo {
  transform: rotate(-10deg) scale(1.08);
  box-shadow: 0 4px 28px rgba(108,140,255,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
header .brand .brand-text {
  display: flex; align-items: baseline;
}
header .brand strong {
  background: linear-gradient(135deg, #fff 20%, #b8b8e0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
header .brand span { color: var(--text-dim); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ══════════════════════════════════════
   BUTTONS — with light-follow glow
   ══════════════════════════════════════ */
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  color: var(--text); font-size: 19px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative; overflow: hidden;
}
.icon-btn::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 50%),
    rgba(108,140,255,0.18), transparent);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.icon-btn:hover::before { opacity: 1; }
.icon-btn:hover { border-color: rgba(108,140,255,0.2); transform: translateY(-2px); }
.icon-btn:active { transform: scale(0.9); transition-duration: 0.1s; }

.wallet-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px; border: none; border-radius: 13px;
  background: rgba(108,140,255,0.07); color: var(--blue);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(108,140,255,0.1);
  white-space: nowrap; position: relative; overflow: hidden;
  letter-spacing: 0.2px;
}
.wallet-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,140,255,0.12), rgba(168,85,247,0.06));
  opacity: 0; transition: opacity 0.3s;
}
.wallet-btn:hover::before { opacity: 1; }
.wallet-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(108,140,255,0.12); }
.wallet-btn:active { transform: scale(0.96); }
.wallet-btn.connected {
  background: rgba(74,222,128,0.07); color: var(--green);
  border-color: rgba(74,222,128,0.12);
}
.wallet-btn.connected:hover { box-shadow: 0 6px 24px rgba(74,222,128,0.08); }
.wallet-btn .dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: none; position: relative;
}
.wallet-btn .dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}
.wallet-btn .dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(74,222,128,0.2);
  animation: dotRing 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes dotRing {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0; }
}
.wallet-btn.connected .dot { display: block; }

/* ══════════════════════════════════════
   CONTAINER + FEED HEADER
   ══════════════════════════════════════ */
.container { max-width: 1080px; margin: 0 auto; padding: 20px 20px 100px; }

.feed-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 4px 24px; margin-bottom: 24px;
}
.feed-header h2 {
  font-size: 32px; font-weight: 900; letter-spacing: -0.8px;
  background: linear-gradient(135deg, #fff 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: titleShimmer 6s ease-in-out infinite;
}
@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.feed-header .feed-actions { display: flex; align-items: center; gap: 16px; }
.feed-header .feed-actions span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

.tab-btn {
  padding: 8px 18px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
  background: transparent; color: var(--text-dim);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap; letter-spacing: 0.3px;
}
.tab-btn:hover { border-color: rgba(108,140,255,0.15); color: #999; }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(108,140,255,0.1), rgba(168,85,247,0.06));
  color: var(--blue); border-color: rgba(108,140,255,0.18);
  box-shadow: 0 2px 16px rgba(108,140,255,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ══════════════════════════════════════
   SKELETON LOADING — premium shimmer
   ══════════════════════════════════════ */
.skeleton-grid { display: contents; }
.skeleton-card {
  aspect-ratio: 1; border-radius: var(--radius);
  background: var(--surface);
  position: relative; overflow: hidden;
}
.skeleton-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(108,140,255,0.04) 37%,
    rgba(168,85,247,0.03) 50%,
    transparent 63%
  );
  background-size: 300% 100%;
  animation: shimmerSlide 2s ease-in-out infinite;
}
@keyframes shimmerSlide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════
   FEED GRID — staggered reveal
   ══════════════════════════════════════ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feed-grid .empty-state { grid-column: 1 / -1; }

/* ══════════════════════════════════════
   MEDIA CARD — premium 3D + border glow
   ══════════════════════════════════════ */
.media-card {
  position: relative; overflow: visible; cursor: pointer;
  aspect-ratio: 1; background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
  animation: cardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
  outline: none;
}
.media-card:focus-visible {
  box-shadow: 0 0 0 3px var(--blue), var(--shadow-md);
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(50px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animated gradient border */
.media-card::after {
  content: ''; position: absolute; inset: -2px; z-index: -1;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from var(--angle, 0deg),
    var(--blue), var(--purple), var(--pink), var(--blue));
  opacity: 0; transition: opacity 0.5s;
  animation: borderRotate 4s linear infinite;
}
@property --angle {
  syntax: '<angle>'; initial-value: 0deg; inherits: false;
}
@keyframes borderRotate {
  to { --angle: 360deg; }
}
.media-card:hover::after { opacity: 1; }
.media-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Inner content area */
.media-card .card-inner {
  position: absolute; inset: 2px; border-radius: calc(var(--radius) - 1px);
  overflow: hidden; background: var(--surface);
  z-index: 1;
}

.media-card .media-wrapper {
  width: 100%; height: 100%; position: relative;
  overflow: hidden;
}
.media-card .media-wrapper img,
.media-card .media-wrapper video {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(20px) brightness(0.6);
  transition: filter 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, filter;
  transform: scale(1.1);
}
.media-card:hover .media-wrapper img,
.media-card:hover .media-wrapper video {
  transform: scale(1.18);
  filter: blur(24px) brightness(0.5);
}

/* Gradient overlay */
.media-card .card-gradient {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    transparent 30%,
    rgba(0,0,0,0.3) 70%,
    rgba(0,0,0,0.7) 100%
  );
  transition: opacity 0.4s;
}

.media-card .lock-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: all 0.4s;
}
.media-card:hover .lock-overlay { transform: scale(1.02); }

.lock-icon {
  font-size: 36px; margin-bottom: 12px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: lockFloat 3.5s ease-in-out infinite;
}
@keyframes lockFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(2deg); }
  75% { transform: translateY(-3px) rotate(-2deg); }
}
.media-card:hover .lock-icon {
  transform: scale(1.2) rotate(-8deg) translateY(-4px);
}

.price-badge {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; padding: 6px 16px; border-radius: 22px;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 4px 24px rgba(108,140,255,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  letter-spacing: 0.4px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}
.media-card:hover .price-badge {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,140,255,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}

.media-card .card-footer {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 44px 16px 14px;
}
.media-card .card-footer .card-creator {
  font-size: 11px; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-weight: 500;
}
.media-card .card-footer .card-creator .avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff;
  box-shadow: 0 2px 10px rgba(108,140,255,0.3);
  flex-shrink: 0;
}
.media-card .card-footer .card-title {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  letter-spacing: -0.2px;
}

/* Delete button */
.card-delete {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.5);
  font-size: 13px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
}
.media-card:hover .card-delete { opacity: 1; }
.card-delete:hover {
  transform: scale(1.15);
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}

/* ══════════════════════════════════════
   UPLOAD FAB — pulsing glow ring
   ══════════════════════════════════════ */
.upload-fab {
  position: fixed; bottom: 32px; right: 32px; z-index: 99;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; font-size: 30px; cursor: pointer;
  box-shadow: 0 4px 32px rgba(108,140,255,0.35);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; align-items: center; justify-content: center;
}
.upload-fab::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  opacity: 0; z-index: -1; transition: opacity 0.3s;
  filter: blur(16px);
}
.upload-fab::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(108,140,255,0.15);
  animation: fabRing 3s ease-in-out infinite;
}
@keyframes fabRing {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0; }
}
.upload-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 40px rgba(108,140,255,0.5);
}
.upload-fab:hover::before { opacity: 0.5; }
.upload-fab:active { transform: scale(0.9); }

/* ══════════════════════════════════════
   MODAL — premium glass overlay
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(20px) saturate(1.3);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: linear-gradient(180deg, #14141f 0%, #0e0e18 100%);
  border-radius: var(--radius-lg); width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; padding: 32px;
  border: 1px solid rgba(255,255,255,0.05);
  animation: modalSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal::before {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,140,255,0.2), transparent);
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.modal-header h3 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.04); color: var(--text-dim);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  transform: rotate(90deg);
}

/* ══════════════════════════════════════
   DROP ZONE — animated border + icon
   ══════════════════════════════════════ */
.drop-zone {
  border: 2px dashed rgba(255,255,255,0.06); border-radius: var(--radius);
  padding: 44px 20px; text-align: center; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 24px;
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.01);
}
.drop-zone::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(108,140,255,0.04), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.drop-zone:hover { border-color: rgba(108,140,255,0.2); }
.drop-zone:hover::before { opacity: 1; }
.drop-zone.dragover {
  border-color: var(--blue);
  background: rgba(108,140,255,0.04);
  transform: scale(1.01);
  box-shadow: inset 0 0 40px rgba(108,140,255,0.05);
}
.drop-zone .dz-icon {
  font-size: 44px; margin-bottom: 14px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}
.drop-zone:hover .dz-icon { transform: scale(1.15) translateY(-4px); }
.drop-zone h4 { font-size: 16px; margin-bottom: 6px; color: #ccc; font-weight: 700; }
.drop-zone p { font-size: 12px; color: var(--text-muted); }
.drop-zone input[type="file"] { display: none; }

/* ══════════════════════════════════════
   PREVIEW BOX + FORM
   ══════════════════════════════════════ */
.preview-box {
  display: none; margin-bottom: 20px; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; max-height: 240px;
  animation: previewIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes previewIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.preview-box.active { display: block; }
.preview-box img, .preview-box video {
  width: 100%; max-height: 240px; object-fit: cover;
  border-radius: var(--radius-sm);
}
.preview-box .remove-file {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: rgba(0,0,0,0.6);
  color: #fff; font-size: 13px; cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s;
  border: 1px solid rgba(255,255,255,0.08);
}
.preview-box .remove-file:hover {
  background: rgba(239,68,68,0.5);
  transform: scale(1.1);
  border-color: rgba(239,68,68,0.3);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 800;
  color: var(--text-dim); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.form-group input, .form-group select {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 14px; outline: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(108,140,255,0.08);
  background: rgba(108,140,255,0.02);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-group .price-row { display: flex; gap: 12px; }
.form-group .price-row input { flex: 1; }
.form-group .price-row select { width: 110px; }

/* ══════════════════════════════════════
   BUTTONS — premium with shimmer sweep
   ══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px; border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%; position: relative; overflow: hidden;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,140,255,0.2);
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(108,140,255,0.35);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:disabled {
  opacity: 0.35; cursor: not-allowed; transform: none;
  box-shadow: none;
}
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

/* ══════════════════════════════════════
   POST PAGE
   ══════════════════════════════════════ */
.post-page { max-width: 680px; margin: 0 auto; padding: 0 0 60px; }

.post-media-wrapper {
  position: relative; width: 100%; background: #060610;
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.post-media-wrapper img, .post-media-wrapper video {
  width: 100%; display: block; max-height: 75vh; object-fit: contain;
}
.post-media-wrapper.locked img, .post-media-wrapper.locked video {
  filter: blur(45px) brightness(0.4) saturate(0.7);
  max-height: 60vh; transform: scale(1.15);
}

/* ══════════════════════════════════════
   LOCK SCREEN — immersive
   ══════════════════════════════════════ */
.lock-screen {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(32px) saturate(1.4);
  padding: 36px; text-align: center;
}
.lock-badge {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(108,140,255,0.12), rgba(168,85,247,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin-bottom: 20px;
  border: 2px solid rgba(108,140,255,0.12);
  position: relative;
  animation: badgeFloat 4s ease-in-out infinite;
}
.lock-badge::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(108,140,255,0.06);
  animation: ringPulse 4s ease-in-out infinite;
}
.lock-badge::after {
  content: ''; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px solid rgba(108,140,255,0.03);
  animation: ringPulse 4s ease-in-out infinite 0.5s;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0; }
}

.lock-screen h2 {
  font-size: 26px; font-weight: 900; margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.lock-screen p { color: var(--text-dim); font-size: 14px; margin-bottom: 8px; }
.lock-screen .owner-addr {
  color: var(--text-muted); font-size: 11px; margin-bottom: 28px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  letter-spacing: 0.5px;
}
.lock-screen .big-price {
  font-size: 48px; font-weight: 900; margin-bottom: 28px;
  letter-spacing: -1.5px; line-height: 1;
}
.lock-screen .big-price .price-amount {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 40%, var(--pink) 80%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: priceShift 4s ease-in-out infinite;
}
@keyframes priceShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lock-screen .big-price .price-currency {
  font-size: 20px; color: var(--text-dim); font-weight: 700;
  -webkit-text-fill-color: var(--text-dim);
  margin-left: 4px;
}
.lock-screen .btn {
  max-width: 300px; font-size: 16px; padding: 16px 36px;
  border-radius: 16px;
}
.lock-screen .btn::after {
  content: ''; position: absolute; inset: -2px; border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  opacity: 0; z-index: -1; filter: blur(16px);
  transition: opacity 0.4s;
}
.lock-screen .btn:hover::after { opacity: 0.3; }

/* ══════════════════════════════════════
   POST INFO
   ══════════════════════════════════════ */
.post-info { padding: 24px 28px; }
.post-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.post-info-row h1 {
  font-size: 22px; font-weight: 800; flex: 1;
  line-height: 1.3; letter-spacing: -0.3px;
}
.post-actions { display: flex; gap: 8px; flex-shrink: 0; }
.post-meta {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-dim); font-size: 12px; margin-top: 10px;
}
.post-meta .avatar-sm {
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: inline-block; vertical-align: middle;
}

.icon-btn-sm {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03); color: var(--text-dim);
  font-size: 14px; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
  transition: all 0.3s;
}
.icon-btn-sm:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: var(--text); transform: translateY(-1px);
}
.icon-btn-sm.danger:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.15);
  color: var(--red);
}

/* ══════════════════════════════════════
   UNLOCK REVEAL — cinematic
   ══════════════════════════════════════ */
@keyframes unlockReveal {
  0% { filter: blur(45px) brightness(0.4); opacity: 0.2; transform: scale(1.15); }
  25% { filter: blur(15px) brightness(1.2); opacity: 0.7; }
  50% { filter: blur(3px) brightness(1.08); transform: scale(1.02); }
  100% { filter: blur(0px) brightness(1); opacity: 1; transform: scale(1); }
}
.unlock-flash img, .unlock-flash video {
  animation: unlockReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ══════════════════════════════════════
   WIN BADGE
   ══════════════════════════════════════ */
.win-badge {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px; margin: 20px 28px;
  background: linear-gradient(135deg, rgba(74,222,128,0.06), rgba(108,140,255,0.04));
  border: 1px solid rgba(74,222,128,0.12);
  border-radius: var(--radius); color: var(--green);
  font-size: 15px; font-weight: 800;
  animation: winSlide 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: 0.2px;
}
@keyframes winSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.win-badge .win-icon { font-size: 24px; }

/* ══════════════════════════════════════
   CONFETTI — premium particles
   ══════════════════════════════════════ */
.confetti-container {
  position: fixed; inset: 0; z-index: 400;
  pointer-events: none; overflow: hidden;
}
.confetti-piece {
  position: absolute; top: -20px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg) scale(1); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(1080deg) scale(0.3); opacity: 0; }
}

/* Particle burst */
.particle-burst {
  position: absolute; pointer-events: none; z-index: 15;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: particleFly 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes particleFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx, 80px), var(--dy, -80px)) scale(0); opacity: 0; }
}

/* ══════════════════════════════════════
   TOAST — premium with action slot
   ══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(24px);
  background: rgba(18,18,28,0.95); backdrop-filter: blur(20px) saturate(1.3);
  color: var(--text); padding: 14px 24px; border-radius: 16px;
  font-size: 13px; font-weight: 600; z-index: 300;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; max-width: 92vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast .toast-icon { font-weight: 800; font-size: 16px; }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--red); }
.toast .toast-action {
  margin-left: 8px; padding: 4px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: none; color: var(--blue);
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.toast .toast-action:hover { background: rgba(255,255,255,0.12); }

/* ══════════════════════════════════════
   EMPTY STATE — illustrated
   ══════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 100px 20px; grid-column: 1 / -1;
  animation: fadeIn 0.8s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.empty-state .empty-icon {
  font-size: 64px; margin-bottom: 20px; opacity: 0.35;
  animation: emptyFloat 3s ease-in-out infinite;
  display: block;
}
@keyframes emptyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.empty-state h3 {
  font-size: 20px; margin-bottom: 10px; color: #555; font-weight: 800;
  letter-spacing: -0.3px;
}
.empty-state p {
  color: var(--text-muted); font-size: 14px; max-width: 300px;
  margin: 0 auto; line-height: 1.6;
}
.empty-state .empty-action {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 12px 24px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.3s;
}
.empty-state .empty-action:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(108,140,255,0.3); }

/* ══════════════════════════════════════
   ONBOARDING
   ══════════════════════════════════════ */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.onboarding-card {
  background: linear-gradient(180deg, #14141f, #0e0e18);
  border: 1px solid rgba(108,140,255,0.1);
  border-radius: var(--radius-lg); padding: 40px 32px;
  max-width: 400px; width: 100%; text-align: center;
  animation: modalSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(108,140,255,0.08);
}
.onboarding-card .ob-icon {
  font-size: 56px; margin-bottom: 20px; display: block;
  animation: emptyFloat 2.5s ease-in-out infinite;
}
.onboarding-card h2 {
  font-size: 24px; font-weight: 900; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.onboarding-card p {
  color: var(--text-dim); font-size: 14px; line-height: 1.6;
  margin-bottom: 8px;
}
.onboarding-card .ob-features {
  display: flex; gap: 16px; margin: 24px 0;
  justify-content: center;
}
.onboarding-card .ob-feature {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.onboarding-card .ob-feature .ob-feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(108,140,255,0.08); border: 1px solid rgba(108,140,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.onboarding-card .ob-feature span {
  font-size: 11px; color: var(--text-dim); font-weight: 600;
}

/* ══════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════ */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 999;
  background: transparent; pointer-events: none;
}
.progress-bar .bar {
  height: 100%; width: 0; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(108,140,255,0.6);
}
.progress-bar.active .bar {
  animation: progressIndeterminate 1.5s ease-in-out infinite;
}
@keyframes progressIndeterminate {
  0% { width: 0; margin-left: 0; }
  50% { width: 40%; margin-left: 30%; }
  100% { width: 0; margin-left: 100%; }
}

/* ══════════════════════════════════════
   SPINNER
   ══════════════════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.1);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.05); border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.1); }

/* ══════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════ */
.profile-page {
  max-width: 1000px; margin: 0 auto;
  padding-bottom: 80px;
}

.profile-banner {
  position: relative; width: 100%; height: 280px;
  background: linear-gradient(135deg, #0c0c18 0%, #12122a 50%, #0e0e20 100%);
  overflow: hidden;
}
.profile-banner .banner-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}
.profile-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(108,140,255,0.12), transparent),
    radial-gradient(ellipse 500px 350px at 70% 60%, rgba(168,85,247,0.08), transparent);
  animation: bannerShift 15s ease-in-out infinite alternate;
}
@keyframes bannerShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(3%, -2%); }
}
.banner-edit-btn {
  position: absolute; bottom: 16px; right: 16px; z-index: 5;
  padding: 8px 16px; border-radius: var(--radius-sm); border: none;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 6px;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.08);
}
.banner-edit-btn:hover { background: rgba(0,0,0,0.7); transform: translateY(-1px); }

.profile-header {
  display: flex; gap: 24px; align-items: flex-end;
  padding: 0 32px; margin-top: -50px;
  position: relative; z-index: 10;
}

.profile-avatar-wrap { flex-shrink: 0; }

.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  border: 4px solid var(--bg);
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-avatar .avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; color: rgba(255,255,255,0.7);
}
.avatar-edit-btn {
  position: absolute; bottom: 4px; right: 4px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 2px solid var(--bg);
  color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; backdrop-filter: blur(8px);
}
.avatar-edit-btn:hover { background: var(--blue); transform: scale(1.1); }

.profile-info {
  flex: 1; padding-bottom: 8px; min-width: 0;
}
.profile-name-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.profile-name-row h1 {
  font-size: 26px; font-weight: 900; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.btn-sm {
  padding: 8px 16px !important; font-size: 12px !important;
  width: auto !important; border-radius: var(--radius-sm) !important;
}
.profile-address {
  font-size: 12px; color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.profile-bio {
  font-size: 14px; color: var(--text-dim); line-height: 1.5;
  margin-bottom: 16px; max-width: 400px;
}

.profile-stats {
  display: flex; gap: 28px;
}
.stat-item {
  display: flex; flex-direction: column; gap: 2px;
}
.stat-value {
  font-size: 20px; font-weight: 900; color: var(--text);
  letter-spacing: -0.3px;
}
.stat-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
}

.profile-content-section {
  padding: 32px 32px 0;
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
}
.section-count {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}

textarea.form-group textarea,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 14px; outline: none; resize: vertical;
  font-family: inherit; line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(108,140,255,0.08);
  background: rgba(108,140,255,0.02);
}

.profile-link {
  cursor: pointer; transition: opacity 0.2s; color: inherit;
}
.profile-link:hover { opacity: 0.8; }

/* ══════════════════════════════════════
   BACK BUTTON
   ══════════════════════════════════════ */
.header-left {
  display: flex; align-items: center; gap: 12px;
}
.back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; text-decoration: none; flex-shrink: 0;
}
.back-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(108,140,255,0.2); transform: translateX(-2px); }

/* ══════════════════════════════════════
   SEARCH
   ══════════════════════════════════════ */
.search-wrap {
  position: relative;
}
.search-input {
  width: 200px; padding: 8px 14px 8px 32px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 12px; outline: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23555' stroke-width='2'/%3E%3Cpath d='M16 16L20 20' stroke='%23555' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  width: 260px;
  border-color: rgba(108,140,255,0.3);
  box-shadow: 0 0 0 4px rgba(108,140,255,0.06);
  background-color: rgba(108,140,255,0.03);
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  min-width: 280px; background: rgba(14,14,24,0.97);
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: none; z-index: 150; overflow: hidden;
  animation: previewIn 0.2s ease;
  max-height: 320px; overflow-y: auto;
}
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; text-decoration: none; color: var(--text);
  transition: background 0.2s;
}
.search-item:hover { background: rgba(108,140,255,0.06); }
.search-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.search-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-avatar span { font-size: 14px; color: #fff; }
.search-info { min-width: 0; }
.search-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-uname { font-size: 11px; color: var(--text-dim); }
.search-empty { padding: 16px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* ══════════════════════════════════════
   FIELD HINT
   ══════════════════════════════════════ */
.field-hint {
  font-size: 11px; color: var(--text-muted); margin-top: 4px; min-height: 16px;
}
.field-hint.ok { color: var(--green); }
.field-hint.error { color: var(--red); }

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ══════════════════════════════════════ */

/* Tablet */
@media (max-width: 720px) {
  header { padding: 10px 16px; }
  header.scrolled { padding: 8px 16px; }
  .container { padding: 12px 10px 80px; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feed-header { padding: 8px 4px 16px; }
  .feed-header h2 { font-size: 24px; }
  .post-page { padding: 0 0 60px; }
  .lock-screen { padding: 28px; }
  .lock-screen .big-price { font-size: 36px; }
  .lock-badge { width: 68px; height: 68px; font-size: 30px; }
  .modal { padding: 24px; margin: 10px; border-radius: 22px; }
  .upload-fab { bottom: 24px; right: 24px; width: 54px; height: 54px; font-size: 26px; }
  header .brand .logo { width: 30px; height: 30px; font-size: 13px; }
  header .brand { font-size: 16px; gap: 10px; }
  .toast { bottom: 24px; font-size: 12px; padding: 12px 18px; }
  .feed-header .feed-actions span { display: none; }
  .empty-state { padding: 70px 20px; }
  .post-info { padding: 18px 20px; }
  .ambient-cursor { display: none; }
  .profile-banner { height: 200px; }
  .profile-header { flex-direction: column; align-items: flex-start; padding: 0 16px; margin-top: -40px; gap: 16px; }
  .profile-avatar { width: 96px; height: 96px; }
  .profile-avatar .avatar-placeholder { font-size: 34px; }
  .profile-name-row h1 { font-size: 22px; }
  .profile-stats { gap: 20px; }
  .stat-value { font-size: 17px; }
  .profile-content-section { padding: 24px 16px 0; }
  .banner-edit-btn { bottom: 12px; right: 12px; font-size: 11px; padding: 6px 12px; }
  .search-input { width: 140px; font-size: 11px; padding: 6px 10px 6px 28px; }
  .search-input:focus { width: 180px; }
  .search-results { min-width: 220px; }
  .drop-zone { padding: 28px 16px; }
  .drop-zone .dz-icon { font-size: 36px; }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --radius: 14px; --radius-sm: 10px; }

  header { padding: 8px 12px; gap: 6px; }
  header.scrolled { padding: 6px 12px; }
  header .brand { font-size: 15px; gap: 8px; }
  header .brand .logo { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
  header .brand span { display: none; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
  .wallet-btn { padding: 6px 10px; font-size: 10px; gap: 5px; border-radius: 10px; }

  .search-wrap { position: static; }
  .search-input {
    width: 100%; padding: 10px 12px 10px 36px;
    font-size: 14px; border-radius: 12px;
    background-size: 16px; background-position: 12px center;
  }
  .search-input:focus { width: 100%; box-shadow: none; }
  .search-results {
    position: fixed; top: 56px; left: 0; right: 0;
    bottom: 0; min-width: 0; border-radius: 0;
    background: rgba(8,8,14,0.98); backdrop-filter: blur(20px);
    max-height: none; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .search-item { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .search-avatar { width: 42px; height: 42px; }
  .search-name { font-size: 14px; }
  .search-uname { font-size: 12px; }

  .container { padding: 8px 8px 90px; }
  .feed-header { padding: 6px 2px 12px; flex-wrap: wrap; gap: 8px; }
  .feed-header h2 { font-size: 20px; font-weight: 900; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .media-card { border-radius: 14px; }
  .media-card .card-inner { border-radius: 13px; }
  .media-card .lock-overlay .lock-icon { font-size: 26px; margin-bottom: 8px; }
  .media-card .lock-overlay .price-badge { font-size: 11px; padding: 4px 10px; border-radius: 16px; }
  .media-card .card-footer { padding: 32px 10px 10px; }
  .media-card .card-footer .card-title { font-size: 12px; }
  .media-card .card-footer .card-creator { font-size: 10px; gap: 4px; }
  .media-card .card-footer .card-creator .avatar { width: 16px; height: 16px; font-size: 7px; }

  .upload-fab { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 24px; border-radius: 50%; }

  .post-media-wrapper { min-height: 260px; }
  .post-media-wrapper img, .post-media-wrapper video { max-height: 60vh; }
  .post-media-wrapper.locked img, .post-media-wrapper.locked video { max-height: 50vh; }
  .lock-screen { padding: 24px 20px; }
  .lock-screen h2 { font-size: 20px; }
  .lock-screen p { font-size: 13px; }
  .lock-screen .big-price { font-size: 32px; margin-bottom: 20px; }
  .lock-screen .big-price .price-currency { font-size: 16px; }
  .lock-screen .btn { font-size: 14px; padding: 14px 28px; max-width: 260px; }
  .lock-badge { width: 60px; height: 60px; font-size: 26px; margin-bottom: 14px; }

  .post-info { padding: 16px 14px; }
  .post-info-row h1 { font-size: 17px; font-weight: 800; }
  .post-meta { font-size: 11px; gap: 10px; }
  .icon-btn-sm { width: 30px; height: 30px; font-size: 13px; }
  .win-badge { margin: 12px 14px; padding: 12px 16px; font-size: 13px; border-radius: 14px; }

  .modal { padding: 20px 16px; margin: 8px; border-radius: 20px; }
  .modal-header h3 { font-size: 17px; }
  .form-group label { font-size: 10px; margin-bottom: 6px; }
  .form-group input, .form-group select, .form-group textarea {
    padding: 11px 14px; font-size: 15px; border-radius: 10px;
  }
  .form-group .price-row { gap: 8px; }
  .form-group .price-row select { width: 90px; }
  .btn { padding: 13px 20px; font-size: 14px; border-radius: 12px; }

  .drop-zone { padding: 24px 16px; border-radius: 14px; }
  .drop-zone .dz-icon { font-size: 32px; margin-bottom: 10px; }
  .drop-zone h4 { font-size: 14px; }
  .drop-zone p { font-size: 11px; }
  .preview-box { border-radius: 10px; max-height: 180px; }
  .preview-box img, .preview-box video { max-height: 180px; }

  .empty-state { padding: 60px 16px; }
  .empty-state .empty-icon { font-size: 48px; }
  .empty-state h3 { font-size: 17px; }
  .empty-state p { font-size: 13px; max-width: 260px; }
  .empty-state .empty-action { padding: 10px 20px; font-size: 13px; }

  .toast { bottom: 20px; font-size: 12px; padding: 10px 16px; border-radius: 12px; left: 8px; right: 8px; transform: translateY(16px); max-width: none; text-align: center; justify-content: center; }
  .toast.show { transform: translateY(0); }

  .onboarding-overlay { padding: 16px; }
  .onboarding-card { padding: 28px 20px; border-radius: 20px; }
  .onboarding-card h2 { font-size: 20px; }
  .onboarding-card .ob-features { gap: 12px; }
  .onboarding-card .ob-feature .ob-feat-icon { width: 44px; height: 44px; font-size: 18px; }

  .profile-page { padding-bottom: 60px; }
  .profile-banner { height: 160px; border-radius: 0; }
  .profile-banner::before { border-radius: 0; }
  .profile-header { padding: 0 14px; margin-top: -36px; gap: 14px; }
  .profile-avatar { width: 80px; height: 80px; border-width: 3px; }
  .profile-avatar .avatar-placeholder { font-size: 28px; }
  .avatar-edit-btn { width: 28px; height: 28px; font-size: 12px; bottom: 2px; right: 2px; }
  .profile-name-row { gap: 8px; margin-bottom: 2px; }
  .profile-name-row h1 { font-size: 20px; }
  .btn-sm { padding: 6px 12px !important; font-size: 11px !important; }
  .profile-bio { font-size: 13px; margin-bottom: 12px; }
  .profile-stats { gap: 16px; }
  .stat-value { font-size: 16px; }
  .stat-label { font-size: 10px; }
  .profile-content-section { padding: 20px 10px 0; }
  .section-header { padding-bottom: 14px; margin-bottom: 14px; }
  .section-header h2 { font-size: 17px; }
  .banner-edit-btn { bottom: 10px; right: 10px; font-size: 10px; padding: 5px 10px; border-radius: 8px; }

  .back-btn { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
  .header-left { gap: 8px; }

  .skeleton-card { border-radius: 14px; }
}

/* Small phones */
@media (max-width: 360px) {
  .feed-grid { grid-template-columns: 1fr; gap: 10px; }
  .media-card .lock-overlay .price-badge { font-size: 10px; }
  .wallet-btn span:not(.dot):not(.nim-icon) { max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
  .lock-screen .big-price { font-size: 28px; }
  .profile-name-row h1 { font-size: 18px; }
  .profile-stats { gap: 12px; }
}

/* Desktop */
@media (min-width: 1280px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .container { max-width: 1280px; }
  .feed-header h2 { font-size: 36px; }
}

/* ══════════════════════════════════════
   TOUCH / REDUCED MOTION / SAFE AREA
   ══════════════════════════════════════ */
@media (hover: none) {
  .media-card:active { transform: scale(0.97); }
  .wallet-btn:active { transform: scale(0.95); }
  .btn:active { transform: scale(0.97); }
  .upload-fab:active { transform: scale(0.88); }
  .media-card::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient-orb, .ambient-cursor { display: none; }
}

@supports (padding: max(0px)) {
  header { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .upload-fab { bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
  .toast { bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
  .profile-page { padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 20px)); }
}
