/* ============================================================
   ARTVOT — Premium Design Arena | Main Stylesheet
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --gold:          #D4AF37; /* Luxury gold */
  --gold-light:    #FFF3C2; /* Refined champagne gold */
  --gold-glow:     rgba(212, 175, 55, 0.15);
  --pink:          #E11D48; /* Premium Rose/Crimson luxury accent */
  --pink-glow:     rgba(225, 29, 72, 0.12);
  --green:         #10B981; /* Premium Emerald Success Green */
  --green-glow:    rgba(16, 185, 129, 0.15);
  --black:         #08080A;
  --white:         #FFFFFF;

  /* Dark theme surfaces (layered for high comfort and depth) */
  --bg:            #08080A;
  --surface:       #0F0F13;
  --surface-2:     #181822;
  --surface-3:     #22222E;
  --border:        rgba(212, 175, 55, 0.06); /* subtle gold-infused border */
  --border-hover:  rgba(212, 175, 55, 0.18);
     
  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md:     0 12px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg:     0 24px 50px rgba(0, 0, 0, 0.7);
  --shadow-gold:   0 0 25px rgba(212, 175, 55, 0.08);

  /* Text */
  --text:          #F3F4F6;
  --text-secondary:#9CA3AF;
  --text-muted:    #6B7280;

  /* Transitions */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --fast:          200ms;
  --med:           350ms;

  /* Layout */
  --nav-w:         280px; /* Slightly wider navigation */
  --radius-sm:     10px;
  --radius-md:     14px;
  --radius-lg:     24px;
  --radius-xl:     32px;
}

/* Light mode */
body.light-mode {
  --bg:            #FAF9F5; /* Warm alabaster, easy on the eyes */
  --surface:       #FFFFFF;
  --surface-2:     #F5F3EC; /* Warm cream trim */
  --surface-3:     #EAE6DB;
  --border:        rgba(139, 115, 85, 0.12); /* warm brown-gold border */
  --border-hover:  rgba(212, 175, 55, 0.3);
  --text:          #1C1917; /* Warm dark slate, comfortable for long sessions */
  --text-secondary:#57534E;
  --text-muted:    #A8A29E;
  --green:         #047857; /* Deep emerald for high legibility in light mode */
  --green-glow:    rgba(4, 120, 87, 0.15);

  /* Light Mode Shadows */
  --shadow-sm:     0 2px 8px rgba(139, 115, 85, 0.03);
  --shadow-md:     0 12px 30px rgba(139, 115, 85, 0.06);
  --shadow-lg:     0 24px 50px rgba(139, 115, 85, 0.1);
  --shadow-gold:   0 0 25px rgba(212, 175, 55, 0.05);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Hide scrollbars globally — scroll works, bar invisible */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar { display: none; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;  /* ✅ keep this */
  /* remove overflow: scroll; */
  transition: background var(--med) var(--ease), color var(--med) var(--ease);
}

body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ── Utility ── */
.gold { color: var(--gold); }
.pink { color: var(--pink); }
.green { color: var(--green); }
.text-secondary { color: var(--text-secondary); }

/* ── Noise / Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  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");
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

#splash-screen.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-logo {
  font-family: 'Syne', sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 50%, var(--green) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.splash-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.splash-loader {
  width: 120px;
  height: 2px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}

.splash-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  border-radius: 2px;
  animation: loadBar 2.2s var(--ease) forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

/* ============================================================
   LAYOUT — Sidebar + Main
   ============================================================ */
#app-content {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar Nav ── */
.sidebar {
  width: var(--nav-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 100;
  transition: transform var(--med) var(--ease), background var(--med) var(--ease);
  padding: 28px 20px;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 50%, var(--green) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  display: inline-block;
}


.nav-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px 6px;
  margin-top: 14px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: rgba(212, 175, 55, 0.05);
  transform: translateX(4px);
}
body.light-mode .nav-item:hover {
  border-color: rgba(212, 175, 55, 0.1);
}

.nav-item:hover i {
  color: var(--gold);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.01) 100%);
  color: var(--gold);
  font-weight: 600;
  border-color: rgba(212, 175, 55, 0.15);
  box-shadow: var(--shadow-sm);
}
body.light-mode .nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 100%);
  color: #8A6D00;
  border-color: rgba(212, 175, 55, 0.22);
}

.nav-item.active i {
  color: var(--gold);
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}
body.light-mode .nav-item.active i {
  color: #8A6D00;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, #B8860B 100%);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--gold);
}

.sidebar-spacer { flex: 1; }

.sidebar-wallet {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(21, 21, 25, 0.5) 100%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
body.light-mode .sidebar-wallet {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(212, 175, 55, 0.2);
}


.wallet-info .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.wallet-info .amount {
  font-family: 'Syne', sans-serif;
 font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.1);
}

.wallet-icon {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--fast) var(--ease);
  width: 100%;
  margin-top: 6px;
  border: 1px solid transparent;
}

.theme-toggle-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.02);
}
body.light-mode .theme-toggle-btn:hover {
  border-color: rgba(0, 0, 0, 0.02);
}

/* ── Main content area ── */
.main-content {
  margin-left: var(--nav-w);
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Hide scrollbar — all browsers */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge legacy */
}
.main-content::-webkit-scrollbar { display: none; } /* Chrome / Safari / Opera */

/* ── Top Bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  transition: background var(--med) var(--ease);
}

body.light-mode .topbar {
  background: rgba(240, 242, 248, 0.9);
}

.topbar-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: url('https://i.pravatar.cc/150?img=11') center/cover;
  cursor: pointer;
  transition: box-shadow var(--fast) var(--ease);
}

.topbar-avatar:hover {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ── Page Sections ── */
.page-section {
  display: none;
  flex: 1;
  min-height: 0;
}

.page-section.active {
  display: flex;
  flex-direction: column;
}

.section-inner {
  padding: 40px 32px 80px;
  max-width: 1100px;
  width: 100%;
}

/* ============================================================
   BUTTONS
   ============================================================ */
   
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: var(--white);
  color: var(--black);
}
body.light-mode .btn-primary:hover {
  background: var(--black);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink), #BE123C);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--pink-glow);
}
.btn-pink:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.btn-icon:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: scale(1.05);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold  { background: rgba(212, 175, 55, 0.12); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.25); }
.badge-pink  { background: rgba(225, 29, 72, 0.1); color: var(--pink); border: 1px solid rgba(225, 29, 72, 0.2); }
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-muted { background: var(--surface-3); color: var(--text-muted); }

/* Accessible badges in Light Mode */
body.light-mode .badge-gold {
  background: rgba(212, 175, 55, 0.08);
  color: #8A6D00; /* Dark gold, highly readable (contrast > 4.5:1) */
  border-color: rgba(212, 175, 55, 0.25);
}
body.light-mode .badge-pink {
  background: rgba(225, 29, 72, 0.06);
  color: #9F1239; /* Deep rose, highly readable */
  border-color: rgba(225, 29, 72, 0.18);
}
body.light-mode .badge-green {
  background: rgba(16, 185, 129, 0.06);
  color: #065F46; /* Deep emerald, highly readable */
  border-color: rgba(16, 185, 129, 0.18);
}

/* ============================================================
   CARDS & GLASS
   ============================================================ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: background var(--med) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.glass:hover { 
  border-color: var(--border-hover); 
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

/* ── Post Card ── */
.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: var(--border-hover);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-3) center/cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.avatar-img-1 { background-image: url('https://i.pravatar.cc/150?img=11'); }
.avatar-img-2 { background-image: url('https://i.pravatar.cc/150?img=5'); }
.avatar-img-3 { background-image: url('https://i.pravatar.cc/150?img=33'); }

.user-info h4 { font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.user-info .time { font-size: 0.75rem; color: var(--text-muted); }

.post-media {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.post-media:hover .media-overlay { opacity: 1; }

.post-body { padding: 14px 16px 8px; flex: 1; }
.post-title { font-size: 0.95rem; margin-bottom: 4px; }
.post-desc { font-size: 0.82rem; color: var(--text-secondary); }

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 14px;
}

/* ── Vote Button ── */

.vote-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.vote-trigger-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.vote-trigger-btn.voted {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.13);
  font-weight: 700;
}

/* ── Inline Finger Slider ── */

/* Inline finger slider (styles handled below in .vs-track / .vs-thumb) */

/* ============================================================
   VOTE SLIDER  —  .vote-slider-wrap
   Replaces the old finger-slider (.inline-slider-wrap).
   All values reference ARTVOT CSS custom properties so the
   component automatically adapts to light/dark mode.
   ============================================================ */

/* ── Wrapper: sits inside .post-actions ── */
.vote-slider-wrap {
  width: 100%;
  padding: 4px 0 2px;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Score row: large number + label ── */
.vs-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: 12px;
}

.vs-score-left {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

/* The big score number */
.vs-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.3s ease;
  color: var(--text);
}

.vs-denom {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Descriptive label (Neutral / Good / Perfect!) */
.vs-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

/* ── Tick marks ── */
.vs-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: 6px;
}

.vs-tick {
  font-size: 0.52rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  width: 10%;
  opacity: 0.5;
}

/* ── Capsule track — background removed, invisible container ── */
.vs-track {
  position: relative;
  width: 100%;
  height: 56px;
  background: transparent;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  overflow: visible;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* fill — hidden, no track background to fill */
.vs-fill {
  display: none;
}

/* glow — ambient glow that follows thumb, not track-based */
.vs-glow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease, left 0.05s linear, width 0.05s linear;
  filter: blur(16px);
  border-radius: 50%;
}

/* Initial (first-time) visual: show a circular gold halo behind the centered thumb
   and style the thumb/arrows to match the provided artwork. This class is added
   to the .vote-slider-wrap on mount and removed when the user first interacts. */
.vote-slider-wrap.vs-initial .vs-glow {
  opacity: 1;
  width: 72px;
  height: 72px;
  left: 50%;
  transform: translate(calc(-50% + 12px), -50%);
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.14) 35%, transparent 65%);
  filter: blur(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.vote-slider-wrap.vs-initial .vs-thumb {
  background: rgba(10, 12, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.12) inset;
}

.vote-slider-wrap.vs-initial .vs-arrow {
  color: var(--gold);
  opacity: 0.95;
  --local-arrow-scale: 0.98;
  filter: drop-shadow(0 0 5px var(--gold));
}

/* Initial positions use the same offsets as the base triangle styles */
.vote-slider-wrap.vs-initial .vs-arrow.vs-arrow-left {
  transform: translate(calc(-50% - 11px), -50%) scale(var(--local-arrow-scale));
}

.vote-slider-wrap.vs-initial .vs-arrow.vs-arrow-right {
  transform: translate(calc(-50% + 11px), -50%) scale(var(--local-arrow-scale));
}

.vote-slider-wrap.vs-initial .vs-hint {
  opacity: 0.92;
}

/* ── Draggable thumb — clean floating pill, no track background ── */
.vs-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 84px;
  height: 48px;
  border-radius: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  display: block;
  cursor: grab;
  z-index: 10;
  will-change: left, transform;
  transition:
    border-color 0.28s var(--ease),
    box-shadow 0.32s var(--ease),
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.28s var(--ease);
  outline: none;
  box-shadow:
    0 2px 12px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

/* Keyboard focus ring */
.vs-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5) !important;
}

/* Thumb while actively dragging */
.vs-thumb--dragging {
  cursor: grabbing !important;
  transform: translateY(-50%) scale(0.92) !important;
  transition: transform 0.1s ease !important;
}

/* Hover: scale up with spring bounce */
.vs-thumb:hover:not(.vs-thumb--dragging) {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 6px 24px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* Active (pressed / dragging) visual */
.vs-thumb.vs-active {
  transform: translateY(-50%) scale(1.04);
}

/* ══════════════════════════════════════
   TRIANGLES inside thumb
   Each arrow is an empty <span> shaped with clip-path.
   State classes on .vs-thumb:
     .is-center  → both triangles visible (default / score≈5)
     .is-right   → only right triangle visible (score > 5)
     .is-left    → only left triangle visible  (score < 5)
══════════════════════════════════════ */

/* ── Shared base: absolutely centered, zero text content ── */
.vs-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 16px;
  height: 19px;
  transition:
    opacity 0.22s ease-in-out,
    transform 0.28s ease-in-out,
    filter 0.25s ease-in-out;
  will-change: transform, opacity;
  --local-arrow-scale: 1;
  --hover-scale: 1;
  filter: drop-shadow(0 0 4px currentColor);
}

/* ── Left triangle: points left (◀) ── */
.vs-arrow.vs-arrow-left {
  transform: translate(calc(-50% - 11px), -50%)
             scale(calc(var(--local-arrow-scale, 1) * var(--hover-scale, 1)));
  clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
  background: currentColor;
}

/* ── Right triangle: points right (▶) ── */
.vs-arrow.vs-arrow-right {
  transform: translate(calc(-50% + 11px), -50%)
             scale(calc(var(--local-arrow-scale, 1) * var(--hover-scale, 1)));
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  background: currentColor;
}

/* ── Hover: smoothly scale arrows up on thumb hover ── */
.vs-thumb:hover:not(.vs-thumb--dragging) .vs-arrow {
  --hover-scale: 1.35;
  filter: drop-shadow(0 0 7px currentColor);
}

/* ── Press: scale up a bit more on click ── */
.vs-thumb.vs-pressing .vs-arrow {
  --hover-scale: 1.55;
  filter: drop-shadow(0 0 10px currentColor);
  transition:
    opacity 0.22s ease-in-out,
    transform 0.14s ease-in,
    filter 0.14s ease-in;
}

/* ── Direction state classes on .vs-thumb ──────────────────
   These are toggled by JS: is-center / is-right / is-left.
   Default (no class) = is-center behavior.
─────────────────────────────────────────────────────────── */

/* CENTER: both triangles fully visible */
.vs-thumb.is-center .vs-arrow-left,
.vs-thumb.is-center .vs-arrow-right,
/* Also show both before any class is set (initial state) */
.vs-thumb:not(.is-left):not(.is-right) .vs-arrow-left,
.vs-thumb:not(.is-left):not(.is-right) .vs-arrow-right {
  opacity: 1;
}

/* RIGHT drag: show right triangle, hide left */
.vs-thumb.is-right .vs-arrow-right {
  opacity: 1;
}

.vs-thumb.is-right .vs-arrow-left {
  opacity: 0;
  pointer-events: none;
}

/* LEFT drag: show left triangle, hide right */
.vs-thumb.is-left .vs-arrow-left {
  opacity: 1;
}

.vs-thumb.is-left .vs-arrow-right {
  opacity: 0;
  pointer-events: none;
}

/* ── Click pop animation (triggered by adding .vs-clicked) ── */
.vs-arrow.vs-clicked {
  animation: vs-arrow-pop 0.32s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes vs-arrow-pop {
  0% {
    transform: translate(var(--tri-tx, -50%), -50%) scale(1);
    filter: drop-shadow(0 0 4px currentColor);
  }
  35% {
    transform: translate(var(--tri-tx, -50%), -50%) scale(2.1);
    filter: drop-shadow(0 0 10px currentColor);
  }
  65% {
    transform: translate(var(--tri-tx, -50%), -50%) scale(1.6);
    filter: drop-shadow(0 0 7px currentColor);
  }
  100% {
    transform: translate(var(--tri-tx, -50%), -50%) scale(var(--local-arrow-scale, 1));
    filter: drop-shadow(0 0 4px currentColor);
  }
}

/* Pass the per-side translate as a variable so the keyframe works for both sides */
.vs-arrow-left {
  --tri-tx: calc(-50% - 11px);
}

.vs-arrow-right {
  --tri-tx: calc(-50% + 11px);
}

/* ── Active (while dragging): enlarge the visible triangle ── */
.vs-thumb.vs-active .vs-arrow,
.vs-thumb.vs-thumb--dragging .vs-arrow {
  --hover-scale: 1.25;
  filter: drop-shadow(0 0 8px currentColor);
}

/* Explicit per-side overrides for active state (different translate) */
.vs-thumb.vs-active .vs-arrow-right,
.vs-thumb.vs-thumb--dragging .vs-arrow-right {
  transform: translate(calc(-50% + 11px), -50%)
             scale(calc(var(--local-arrow-scale, 1) * 1.25));
}

.vs-thumb.vs-active .vs-arrow-left,
.vs-thumb.vs-thumb--dragging .vs-arrow-left {
  transform: translate(calc(-50% - 11px), -50%)
             scale(calc(var(--local-arrow-scale, 1) * 1.25));
}

/* ── Hint text (drag to vote) ── */
.vs-hint {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 7px;
  transition: opacity 0.4s ease;
  opacity: 0.7;
}

.vs-hint--gone {
  opacity: 0;
  pointer-events: none;
}

/* ── Thin center rail line — minimal visual anchor ── */
.vs-track::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: var(--border);
  border-radius: 1px;
  pointer-events: none;
}

/* ── Idle pulse on initial arrows ── */
@keyframes vs-idle-pulse {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 3px var(--gold)); }
  50%       { opacity: 1;   filter: drop-shadow(0 0 8px var(--gold)); }
}

.vote-slider-wrap.vs-initial .vs-arrow {
  animation: vs-idle-pulse 2s ease-in-out infinite;
}

.vote-slider-wrap.vs-initial .vs-arrow.vs-arrow-right {
  animation-delay: 0.15s;
}

/* ── Score number pop animation ── */
@keyframes vs-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

.vs-popping {
  animation: vs-pop 0.22s ease;
}

/* ── Light mode overrides (track bg is slightly different) ── */
body.light-mode .vs-track {
  background: var(--surface-2);
}

body.light-mode .vs-thumb {
  background: var(--surface);
}

/* ── Responsive: slightly taller thumb on small screens ── */
@media (max-width: 400px) {
  .vs-thumb {
    width: 72px;
    height: 44px;
  }

  .vs-num {
    font-size: 1.8rem;
  }
}

/* ============================================================
   VIDEO VOTE SLIDER — inside TikTok-style reels
   Positions the drag vote button at the BOTTOM of each reel
   (replaces the old vertical bar on the left)
   ============================================================ */

/* Wrapper: sticks to bottom of the video player, full width */
.video-vote-slider-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px 16px 16px;
  /* Frosted dark gradient so slider is readable over any video */
  background: linear-gradient(to top,
      rgba(8, 11, 16, 0.92) 0%,
      rgba(8, 11, 16, 0.6) 60%,
      transparent 100%);
}

/* Override vote-slider-wrap spacing inside video context */
.video-vote-slider-wrap .vote-slider-wrap {
  padding: 0;
}

/* Smaller score number inside video (tight space) */
.video-vote-slider-wrap .vs-num {
  font-size: 1.6rem;
}

/* White text on dark video background */
.video-vote-slider-wrap .vs-denom,
.video-vote-slider-wrap .vs-tick,
.video-vote-slider-wrap .vs-hint {
  color: rgba(255, 255, 255, 0.35);
}

/* Track dark glass inside video */
.video-vote-slider-wrap .vs-track {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  height: 50px;
}

/* Thumb glass on dark bg */
.video-vote-slider-wrap .vs-thumb {
  background: rgba(20, 25, 36, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Push video UI-bottom up so the slider doesn't overlap text */
.video-player {
  padding-bottom: 120px;
  /* room for the vote slider at the bottom */
}

/* Make sure video-ui-bottom sits above the gradient but below slider */
.video-ui-bottom {
  padding-bottom: 8px;
}

/* Ensure the old vote-track/strip are fully hidden if any stray markup remains */
.video-vote-strip,
.vote-track,
.vote-fill,
.video-vote-label {
  display: none !important;
}

/* ── Comments ── */
.comments-section {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  animation: fadeUp 0.2s var(--ease);
  overflow: scroll;
}

.comment-item {
  font-size: 0.82rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.comment-item b { color: var(--gold); }

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.section-header h2 { margin: 0; }

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--fast) var(--ease);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: #000;
  border-color: transparent;
}

/* ============================================================
   REWARD / OFFER CARDS
   ============================================================ */
.reward-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.reward-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.reward-card h3 { font-size: 1rem; margin-bottom: 0; }
.reward-card p { font-size: 0.85rem; color: var(--text-secondary); flex: 1; }

.reward-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reward-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
  resize: vertical;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
  background: var(--surface-3);
}

.form-input::placeholder { color: var(--text-muted); }

select.form-input option { background: var(--surface-2); }

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-wrap .form-input { padding-left: 38px; }

.input-icon-wrap .toggle-pw {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}

.input-icon-wrap .toggle-pw:hover { color: var(--text); }

.validation-error {
  color: var(--pink);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-input.error {
  border-color: var(--pink) !important;
  box-shadow: 0 0 0 3px rgba(225,29,72,0.15) !important;
}

/* ============================================================
   MODALS
   ============================================================ */
body.modal-open {
  overflow: hidden !important;
  height: 100vh;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s var(--ease);
}

.modal-overlay.open,
.modal-overlay.active {
  display: flex !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  padding: 32px;
  animation: modalIn 0.3s var(--ease);
  -webkit-overflow-scrolling: touch;
}

/* Custom premium scrollbar for modals */
.modal-content::-webkit-scrollbar {
  display: block;
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}
body.light-mode .modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}
body.light-mode .modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.24);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-shrink: 0;
}

/* ── Upload Area ── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  margin-bottom: 20px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-area:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.04);
}

#upload-placeholder {
  width: 100%;
  pointer-events: none;
}

.upload-area i { 
  font-size: 2.5rem; 
  color: var(--text-muted); 
  margin-bottom: 10px; 
  display: block; 
}

.upload-area p { 
  margin: 0;
  line-height: 1.5;
}

.upload-area .upload-preview { 
  margin-top: 14px; 
  max-height: 200px; 
  object-fit: cover; 
  border-radius: var(--radius-sm); 
  width: 100%; 
  display: none; 
}

.upload-area.has-image .upload-preview { 
  display: block; 
}

#image-preview-container {
  width: 100%;
  display: none;
}

#image-preview-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ============================================================
   VIDEO FEED
   ============================================================ */
.video-feed-wrapper {
  height: calc(100vh - 64px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.video-feed-wrapper::-webkit-scrollbar { display: none; }

.video-reel {
  height: calc(100vh - 64px);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.video-player {
  width: 100%;
  max-width: 420px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.video-gradient-1 {
  background: linear-gradient(160deg, #0A0803, #1A1405, var(--gold-warm, #C49B2A), var(--gold));
  background-size: 300% 300%;
  animation: vgShift 8s ease infinite;
}

.video-gradient-2 {
  background: linear-gradient(160deg, #001a11, #003322, var(--green), #1a3300);
  background-size: 300% 300%;
  animation: vgShift 10s ease infinite reverse;
}

@keyframes vgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.video-ui-bottom {
  position: absolute;
  bottom: 28px;
  left: 20px;
  right: 80px;
  z-index: 10;
}

.video-ui-bottom h3 { font-size: 0.95rem; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.video-ui-bottom p  { font-size: 0.82rem; color: rgba(255,255,255,0.8); text-shadow: 0 1px 4px rgba(0,0,0,0.8); }

.video-sidebar-actions {
  position: absolute;
  bottom: 40px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 10;
}

.video-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: transform var(--fast) var(--ease);
  background: none;
  border: none;
}

.video-action span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.video-action:hover { transform: scale(1.12); }

.video-vote-strip {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.video-vote-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-lr;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote-track {
  width: 6px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.vote-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--green), var(--gold));
  border-radius: 3px;
  transition: height 0.3s var(--ease);
}

.video-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--fast) var(--ease);
}

.video-avatar-ring:hover { box-shadow: 0 0 0 3px var(--gold); }

/* ============================================================
   PROFILE & MY CREATIVITY
   ============================================================ */
.profile-hero {
  text-align: center;
  padding: 40px 20px 30px;
}

.profile-avatar-lg {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: url('https://i.pravatar.cc/150?img=11') center/cover;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 6px var(--gold-glow);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat-box {
  padding: 18px 12px;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-num { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* Creativity Posts */
.creativity-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color var(--fast) var(--ease);
}

.creativity-post:hover { border-color: var(--border-hover); }

.creativity-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.creativity-post-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.designer-reply {
  display: flex;
  gap: 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--pink);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 14px;
  margin-left: 16px;
}

.designer-reply.winner { border-left-color: var(--green); }

.reply-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-3) center/cover;
  flex-shrink: 0;
}

.reply-body { flex: 1; }
.reply-author { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }

.reply-thumb {
  margin-top: 12px;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.reply-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
}

.settings-section-title:first-child { margin-top: 0; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
#login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite;
}

.login-orb-1 {
  width: 400px; height: 400px;
  background: var(--gold);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.login-orb-2 {
  width: 350px; height: 350px;
  background: var(--pink);
  bottom: -80px; right: -80px;
  animation-delay: -4s;
}

.login-orb-3 {
  width: 250px; height: 250px;
  background: var(--green);
  top: 40%; left: 60%;
  animation-delay: -2s;
  opacity: 0.15;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.5s var(--ease);
}

.login-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--fast) var(--ease);
  margin-bottom: 10px;
}

.social-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.social-btn i { font-size: 1.1rem; }

.forgot-link {
  font-size: 0.8rem;
  color: var(--gold);
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
  transition: opacity var(--fast) var(--ease);
}

.forgot-link:hover { opacity: 0.75; }

.login-footer-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 22px;
}

.login-footer-text a { color: var(--gold); font-weight: 600; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: toastIn 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}

.toast.success { border-color: var(--green); }
.toast.success i { color: var(--green); }
.toast.error   { border-color: var(--pink); }
.toast.error   i { color: var(--pink); }
.toast.info    { border-color: var(--gold); }
.toast.info    i { color: var(--gold); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   MOBILE MENU TOGGLE
   ============================================================ */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--fast) var(--ease);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --nav-w: 0px; }

  #app-content {
    height: 100dvh;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 240px;
    z-index: 300;
    display: flex;
    flex-direction: column;
  }

  /* Mobile Sidebar Item Reordering (Fix 3: Theme Toggle position) */
  .sidebar > .sidebar-logo { order: 1; }

  .sidebar > .nav-section-label:first-of-type,
  .sidebar > .nav-item[data-page="page-home"],
  .sidebar > .nav-item[data-page="page-offers"],
  .sidebar > #nav-offer-hub {
    order: 2;
  }

  .sidebar > .theme-toggle-btn:not(#logout-btn):not(#sidebar-login-btn) {
    order: 3;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .sidebar > .nav-section-label:not(:first-of-type),
  .sidebar > .nav-item[data-page="page-designer-artworks"],
  .sidebar > .nav-item[data-page="page-settings"],
  .sidebar > #nav-business-label,
  .sidebar > #nav-admin-dashboard {
    order: 4;
  }

  .sidebar > .sidebar-spacer { order: 10; }
  .sidebar > .sidebar-wallet { order: 11; }
  .sidebar > #logout-btn,
  .sidebar > #sidebar-login-btn { order: 12; }

  .sidebar.open { transform: translateX(0); }

  .main-content {
    margin-left: 0;
    height: 100dvh;
  }

  .topbar { padding: 0 18px; }

  .mobile-toggle { display: flex; }

  .section-inner { padding: 24px 18px 60px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .section-inner { padding: 16px 12px 36px; }

  .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  .login-card { padding: 24px 16px; border-radius: var(--radius-lg); }

  .modal-content { 
    padding: 20px 14px; 
    max-height: 90dvh; 
    max-width: 95vw; 
    border-radius: var(--radius-lg);
  }

  .creativity-post-header { flex-direction: column; gap: 10px; }

  /* Ensure touch targets meet 44px minimum height/width */
  .btn, button, .nav-item, .profile-tab-btn, .modal-close, .mobile-toggle {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Topbar Mobile Title & Actions Overlap & Overflow Fixes (Fix 1 & 2) */
  .topbar > div:first-child {
    min-width: 0;
    overflow: hidden;
  }

  .topbar-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }

  #about-us-btn {
    padding: 5px 8px;
    min-height: 32px;
    gap: 0;
  }

  #about-us-btn span {
    display: none !important;
  }

  .topbar-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .topbar-avatar,
  #notification-bell-container,
  .lang-switcher {
    flex-shrink: 0;
  }

  /* Override i18n.js margin-left: 10px & compact language pill on mobile */
  .lang-switcher {
    margin-left: 0 !important;
    padding: 1px 2px !important;
  }

  .lang-switcher-btn {
    padding: 2px 5px !important;
    font-size: 0.68rem !important;
  }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topbar { padding: 0 12px; height: 56px; }
  .topbar-title { font-size: 1rem; max-width: 95px; }
  .topbar-actions { gap: 6px; }

  .modal-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Table horizontal scroll affordance */
  .table-responsive, .offers-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(to right, rgba(0,0,0,0) 95%, rgba(212,175,55,0.15) 100%);
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
  .section-inner { padding: 12px 10px 28px; }
  .modal-content { padding: 16px 12px; max-height: 92dvh; }
  .login-card { padding: 20px 12px; }
  .topbar-title { max-width: 85px; }
}



/* ============================================================
   PROFILE TABS — My Creativity & Money Marks
   ============================================================ */

/* ── Tab Navigation Bar ── */
.profile-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.profile-tab-btn {
  position: relative;
  padding: 12px 28px;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Gradient underline pseudo-element */
.profile-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--med) var(--ease);
}

.profile-tab-btn:hover {
  color: var(--text-secondary);
}

.profile-tab-btn.active {
  color: var(--text);
}

.profile-tab-btn.active::after {
  transform: scaleX(1);
}

/* ── Tab Panels ── */
.profile-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}

.profile-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: tabFadeIn var(--med) var(--ease) forwards;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Art Grid (3 cols → 2 → 1) ── */
.profile-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .profile-art-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .profile-art-grid { grid-template-columns: 1fr; }
  .profile-tab-btn  { padding: 12px 18px; font-size: 0.82rem; }
}

/* ── Art Card ── */
.art-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.art-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* Card image area */
.art-card-media {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

/* Hover overlay with stats */
.art-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.art-card:hover .art-card-overlay {
  opacity: 1;
}

.art-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}

.art-stat i { font-size: 1.1rem; }

/* ── Money Marks variant ── */
.art-card--earned {
  border-color: rgba(60, 232, 157, 0.2);
  box-shadow: 0 0 0 1px rgba(60, 232, 157, 0.08), 0 4px 20px rgba(60, 232, 157, 0.06);
}

.art-card--earned:hover {
  border-color: rgba(60, 232, 157, 0.4);
  box-shadow: 0 0 0 1px rgba(60, 232, 157, 0.2), 0 16px 48px rgba(60, 232, 157, 0.12);
}

/* "Winning Vote" top badge */
.art-earn-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(60, 232, 157, 0.18);
  border: 1px solid rgba(60, 232, 157, 0.4);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}

/* Earned amount */
.art-earn-amount {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 299;
  backdrop-filter: blur(3px);
}

.sidebar-overlay.open { display: block; }

/* ════════════════════════════════════════════════════════
   PHASE 4: FEED COMPONENTS & DASHBOARDS
════════════════════════════════════════════════════════ */

/* ── Artwork Card ── */
.artwork-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.5s var(--ease) backwards;
}

.artwork-card.reveal { animation: slideUp 0.5s var(--ease) backwards; }
.artwork-card.reveal.delay-1 { animation-delay: 0.1s; }
.artwork-card.reveal.delay-2 { animation-delay: 0.2s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artwork-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.user-meta {
  min-width: 0;
}

.username {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.offer-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-menu {
  padding: 6px;
  opacity: 0.5;
  transition: opacity var(--fast) var(--ease);
}

.artwork-card:hover .card-menu {
  opacity: 1;
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--med) var(--ease);
}

.artwork-card:hover .artwork-image {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
  cursor: pointer;
}

.artwork-card:hover .media-overlay {
  opacity: 1;
}

.view-hint {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.card-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.artwork-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.artwork-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  /* -webkit-line-clamp: 2; */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artwork-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}

.vote-btn {
  flex: 1;
}

.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Offer Card ── */
.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.5s var(--ease) backwards;
}

.offer-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.offer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.offer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.offer-badge {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.offer-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.offer-details {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offer-client,
.offer-budget {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.offer-details .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-details .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.offer-details .budget {
  color: var(--gold);
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
}

.offer-stats {
  display: flex;
  gap: 16px;
}

.offer-stats .stat {
  flex: 1;
  align-items: flex-start;
}

/* ── Skeleton Loaders ── */
.artwork-card-skeleton,
.offer-card-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  animation: pulse 2s ease-in-out infinite;
}

.artwork-card-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-header {
  display: flex;
  gap: 12px;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
}

.skeleton-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-button {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-md);
}

.skeleton {
  background: var(--surface-2);
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ── Empty & Error States ── */
.empty-state,
.error-state {
  padding: 60px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.empty-icon,
.error-icon {
  font-size: 3rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.empty-state h3,
.error-state h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.empty-state p,
.error-state p {
  color: var(--text-secondary);
  margin: 0;
  max-width: 400px;
}

/* ── Voting Modal (created dynamically by feed.js) ── */
.modal-overlay.voting-modal {
  /* Override: voting modals are appended directly to body and don't use .open class.
     They are created visible, then removed from DOM on close. */
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.voting-modal .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  z-index: 10;
}

.modal-close:hover {
  background: var(--surface-3);
  transform: scale(1.1);
}

.voting-container {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vote-modal-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.vote-modal-info h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.vote-modal-desc {
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.vote-modal-user {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.vote-modal-slider {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vote-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.vote-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--gold);
}

.vote-denom {
  font-size: 1rem;
  color: var(--text-secondary);
}

.vote-slider-track {
  position: relative;
}

.vote-input-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #E11D48,
    #FF6B9D,
    #FFB366,
    #D4AF37,
    #3CE89D
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.vote-input-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  transition: all var(--fast) var(--ease);
}

.vote-input-range::-webkit-slider-thumb:active {
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
  transform: scale(1.2);
}

.vote-input-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  transition: all var(--fast) var(--ease);
  border: none;
}

.vote-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vote-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--fast) var(--ease);
}

/* ── Notification Styles ── */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  animation: slideInUp 0.3s ease;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}

.notification.show {
  opacity: 1;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification-success {
  border-color: rgba(60, 232, 157, 0.3);
  background: rgba(60, 232, 157, 0.08);
  color: var(--green);
}

.notification-error {
  border-color: rgba(225, 29, 72, 0.3);
  background: rgba(225, 29, 72, 0.08);
  color: var(--pink);
}

.notification-warning {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}

.notification-info {
  border-color: var(--border);
  color: var(--text);
}

/* ── Feed Filters ── */
.feed-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.feed-filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--fast) var(--ease);
  cursor: pointer;
}

.feed-filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.feed-filter-btn.active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Responsive Design ── */
@media (max-width: 768px) {
  .artwork-card,
  .offer-card {
    border-radius: var(--radius-md);
  }

  .voting-container {
    padding: 20px;
  }

  .modal-content {
    max-width: 95vw;
  }

  .artwork-stats {
    gap: 12px;
  }

  .vote-modal-image {
    aspect-ratio: 1;
  }

  .offer-details {
    flex-direction: column;
    gap: 12px;
  }

  .notification {
    min-width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .card-header {
    padding: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .artwork-title {
    font-size: 1rem;
  }

  .artwork-description {
    font-size: 0.8rem;
  }

  .voting-container {
    padding: 16px;
  }

  .vote-number {
    font-size: 2rem;
  }

  .vote-labels {
    gap: 4px;
  }
}

/* ════════════════════════════════════════════════════════
   DASHBOARD COMPONENTS
════════════════════════════════════════════════════════ */

/* ── Dashboard Layout ── */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
}

/* ── Stats Cards Grid ── */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.5s var(--ease) backwards;
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ════════════════════════════════════════════════════════════
   NOTIFICATION UI SYSTEM
   Badge • Dropdown • Notifications Page
   ════════════════════════════════════════════════════════════ */

/* ── Notification Bell ── */
.notification-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  font-size: 1.4rem;
}

.notification-bell-btn:hover {
  background: var(--surface-2);
  color: var(--gold);
}

.notification-bell-btn:active {
  transform: scale(0.95);
}

/* ── Notification Badge ── */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  border: 2px solid var(--bg);
}

.notification-badge.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* ── Notification Dropdown ── */
.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transition: all var(--med) var(--ease);
}

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.notification-dropdown-header h3 {
  margin: 0;
  font-size: 1rem;
}

.notification-mark-all {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
}

.notification-mark-all:hover {
  background: var(--surface-2);
  color: var(--text);
}

.notification-dropdown-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notification-item {
  padding: 12px 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  transition: all var(--fast) var(--ease);
  cursor: pointer;
}

.notification-item:hover {
  background: var(--surface-2);
}

.notification-item.unread {
  background: var(--surface-2);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-top: 2px;
}

.notification-item-icon.icon-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.notification-item-icon.icon-pink {
  background: rgba(225, 29, 72, 0.15);
  color: var(--pink);
}

.notification-item-icon.icon-green {
  background: rgba(60, 232, 157, 0.15);
  color: var(--green);
}

.notification-item-icon.icon-gray {
  background: rgba(138, 149, 170, 0.15);
  color: var(--text-secondary);
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-message {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
  font-weight: 500;
}

.notification-item-time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.notification-item-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  opacity: 0;
  pointer-events: none;
}

.notification-item:hover .notification-item-close {
  opacity: 1;
  pointer-events: auto;
}

.notification-item-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.notification-dropdown-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.notification-view-all {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.notification-view-all:hover {
  background: var(--surface-3);
  color: var(--gold-light);
}

/* ── Notifications Page ── */
.notifications-page-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
}

.notifications-page-header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.notifications-page-header h1 {
  margin: 0;
}

.notifications-page-controls {
  display: flex;
  gap: 12px;
}

.notification-filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.notification-filter-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.notification-filter-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.notification-page-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  min-height: 200px;
}

.notification-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.4s var(--ease) backwards;
}

.notification-card:nth-child(2) {
  animation-delay: 0.1s;
}

.notification-card:nth-child(3) {
  animation-delay: 0.2s;
}

.notification-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateX(4px);
}

.notification-card.unread {
  border-left: 3px solid var(--gold);
}

.notification-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-top: 2px;
}

.notification-card-icon.icon-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.notification-card-icon.icon-pink {
  background: rgba(225, 29, 72, 0.15);
  color: var(--pink);
}

.notification-card-icon.icon-green {
  background: rgba(60, 232, 157, 0.15);
  color: var(--green);
}

.notification-card-icon.icon-gray {
  background: rgba(138, 149, 170, 0.15);
  color: var(--text-secondary);
}

.notification-card-content {
  flex: 1;
  min-width: 0;
}

.notification-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.notification-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.notification-card-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.notification-card-date {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.notification-card-action {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  transition: all var(--fast) var(--ease);
}

.notification-card-action:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

.notification-card-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  opacity: 0;
  pointer-events: none;
}

.notification-card:hover .notification-card-close {
  opacity: 1;
  pointer-events: auto;
}

.notification-card-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

.notification-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
  color: var(--text-secondary);
}

.notification-page-empty::before {
  content: '';
  width: 80px;
  height: 80px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Pagination ── */
.notification-page-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   DESIGNER PORTFOLIO SYSTEM
   Hero • Stats • Artworks • Activity
   ════════════════════════════════════════════════════════════ */

/* ── Portfolio Container ── */
.portfolio-page-container {
  width: 100%;
  background: var(--bg);
}

/* ── Portfolio Hero Section ── */
.portfolio-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 40px 24px;
  margin-bottom: 40px;
  overflow: hidden;
}

.portfolio-hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(225, 29, 72, 0.1));
  z-index: 0;
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.portfolio-avatar-container {
  flex-shrink: 0;
}

.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.5s var(--ease);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initials {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Syne', sans-serif;
}

.profile-avatar.verified {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.25);
}

.verification-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 1.8rem;
  color: var(--gold);
  background: var(--surface);
  border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--border);
}

.portfolio-header-info {
  flex: 1;
  animation: slideUp 0.5s var(--ease) 0.1s backwards;
}

.portfolio-name-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.portfolio-username {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
}

.portfolio-rank-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.portfolio-rating-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(60, 232, 157, 0.15);
  border: 1px solid rgba(60, 232, 157, 0.3);
  border-radius: var(--radius-md);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}

.portfolio-bio {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--gold);
}

.meta-item a {
  color: var(--gold);
  font-weight: 600;
  transition: all var(--fast) var(--ease);
}

.meta-item a:hover {
  color: var(--gold-light);
  transform: translateX(2px);
}

.portfolio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portfolio-actions .btn {
  min-width: 140px;
  height: 44px;
}

/* ── Portfolio Stats Grid ── */
.portfolio-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
  padding: 0 24px;
  animation: slideUp 0.5s var(--ease) 0.2s backwards;
}

.portfolio-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--med) var(--ease);
}

.portfolio-stat-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.portfolio-stat-card.skeleton {
  background: var(--surface-2);
  animation: pulse 2s ease-in-out infinite;
}

.stat-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.icon-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.stat-icon.icon-green {
  background: rgba(60, 232, 157, 0.15);
  color: var(--green);
}

.stat-icon.icon-pink {
  background: rgba(225, 29, 72, 0.15);
  color: var(--pink);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  margin: 0 0 2px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Portfolio Section ── */
.portfolio-section {
  padding: 0 24px;
  margin-bottom: 48px;
}

.portfolio-section-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.portfolio-artwork-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.4s var(--ease) backwards;
}

.portfolio-artwork-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.portfolio-artwork-card.skeleton {
  background: var(--surface-2);
  animation: pulse 2s ease-in-out infinite;
  min-height: 280px;
}

.artwork-card-media {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: var(--surface-2);
}

.artwork-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--med) var(--ease);
}

.portfolio-artwork-card:hover .artwork-image {
  transform: scale(1.08);
}

.artwork-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--med) var(--ease);
  backdrop-filter: blur(2px);
}

.portfolio-artwork-card:hover .artwork-card-overlay {
  opacity: 1;
}

.artwork-view-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  border: none;
}

.artwork-view-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.artwork-card-content {
  padding: 16px;
}

.artwork-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.artwork-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.artwork-stats {
  display: flex;
  gap: 12px;
}

.artwork-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.artwork-stats .stat i {
  font-size: 0.9rem;
}

/* ── Portfolio Activity ── */
.portfolio-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-activity-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.4s var(--ease) backwards;
}

.portfolio-activity-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.activity-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.activity-icon.icon-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.activity-icon.icon-green {
  background: rgba(60, 232, 157, 0.15);
  color: var(--green);
}

.activity-icon.icon-pink {
  background: rgba(225, 29, 72, 0.15);
  color: var(--pink);
}

.activity-icon.icon-gray {
  background: rgba(138, 149, 170, 0.15);
  color: var(--text-secondary);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.activity-time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Portfolio Empty & Error States ── */
.portfolio-empty,
.portfolio-error {
  padding: 80px 40px;
  text-align: center;
  color: var(--text-secondary);
}

.portfolio-empty i,
.portfolio-error i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
  opacity: 0.5;
}

.portfolio-empty h3,
.portfolio-error h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--text);
}

.portfolio-empty p,
.portfolio-error p {
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.portfolio-error .btn {
  margin-top: 16px;
}

.portfolio-loading {
  animation: slideUp 0.5s var(--ease);
}

/* ── Responsive Portfolio ── */
@media (max-width: 1200px) {
  .portfolio-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    min-height: 280px;
    padding: 32px 16px;
    margin-bottom: 32px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .portfolio-hero-content {
    gap: 24px;
  }

  .portfolio-username {
    font-size: 1.5rem;
  }

  .portfolio-meta {
    gap: 12px;
  }

  .portfolio-stats-grid {
    padding: 0 16px;
    margin-bottom: 32px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .portfolio-stat-card {
    padding: 12px;
    flex-direction: column;
    text-align: center;
  }

  .portfolio-section {
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .artwork-card-content {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    min-height: 240px;
    padding: 24px 12px;
    margin-bottom: 24px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .portfolio-header-info {
    width: 100%;
  }

  .portfolio-username {
    font-size: 1.3rem;
  }

  .portfolio-name-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .portfolio-actions {
    width: 100%;
  }

  .portfolio-actions .btn {
    flex: 1;
    min-width: auto;
  }

  .portfolio-stats-grid {
    padding: 0 12px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .portfolio-stat-card {
    padding: 10px;
  }

  .stat-value {
    font-size: 1rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-activity-item {
    padding: 12px;
    gap: 12px;
  }

  .portfolio-activity-item:nth-child(n+5) {
    display: none;
  }
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Responsive Notifications ── */
@media (max-width: 768px) {
  .notification-dropdown {
    width: 320px;
    max-height: 420px;
  }

  .notifications-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notifications-page-controls {
    width: 100%;
  }

  .notification-filter-btn {
    flex: 1;
  }

  .notification-card {
    padding: 12px;
    gap: 12px;
  }

  .notification-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .notification-card-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .notification-dropdown {
    width: 300px;
    position: fixed;
    right: 16px;
    left: 16px;
    top: auto;
    bottom: 100px;
    max-height: 60vh;
  }

  .notifications-page-container {
    padding: 16px;
  }

  .notifications-page-header h1 {
    font-size: 1.5rem;
  }

  .notification-card {
    flex-direction: row;
    padding: 12px;
  }

  .notification-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-card-time {
    width: 100%;
  }
}

.stat-icon {
  font-size: 1.5rem;
  transition: transform var(--fast) var(--ease);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon-gold { color: var(--gold); }
.stat-icon-pink { color: var(--gold); }
.stat-icon-green { color: var(--green); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--text);
  line-height: 1;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Dashboard Cards ── */
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.5s var(--ease) backwards;
}

.dashboard-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card-header-text h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--text);
}

.card-header-text .subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Earnings Chart ── */
.earnings-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.bar-container {
  width: 100%;
  height: 24px;
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  transition: width 0.6s var(--ease);
  border-radius: 12px;
}

.bar-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--gold);
}

/* ── Activity List ── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  transition: all var(--fast) var(--ease);
}

.activity-item:hover {
  background: var(--surface-3);
  transform: translateX(4px);
}

.activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.activity-offer_created { background: var(--gold-glow); color: var(--gold); }
.activity-artwork_submitted { background: var(--gold-glow); color: var(--gold); }
.activity-artwork_voted { background: rgba(60, 232, 157, 0.15); color: var(--green); }
.activity-reward_earned { background: var(--gold-glow); color: var(--gold); }
.activity-offer_approved { background: rgba(60, 232, 157, 0.15); color: var(--green); }
.activity-comment_posted { background: var(--gold-glow); color: var(--gold); }

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-action {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.empty-activity {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
}

/* ── Portfolio Section ── */
.dashboard-portfolio-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding: 0 24px;
}

.portfolio-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 24px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--med) var(--ease);
  animation: slideUp 0.5s var(--ease) backwards;
}

.portfolio-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.portfolio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.count-badge {
  background: var(--gold-glow);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--gold);
}

.portfolio-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Skeleton Loaders ── */
.dashboard-skeleton {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
}

.skeleton-chart {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.skeleton-list {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

/* ── Login Required ── */
.login-required-container,
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 60vh;
  padding: 40px 20px;
  text-align: center;
}

.login-icon,
.error-icon {
  font-size: 4rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.login-required-container h2,
.error-container h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
}

.login-required-container p,
.error-container p {
  color: var(--text-secondary);
  margin: 0;
  max-width: 400px;
}

/* ── Responsive Dashboard ── */
@media (max-width: 1200px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    padding: 16px;
    gap: 16px;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
    gap: 8px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .dashboard-card {
    padding: 16px;
    gap: 16px;
  }

  .card-header-text h3 {
    font-size: 1rem;
  }

  .section-title {
    padding: 0 16px;
    font-size: 1.2rem;
  }

  .portfolio-row {
    padding: 0 16px;
    grid-template-columns: 1fr;
  }

  .chart-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-grid {
    padding: 12px;
    gap: 12px;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .dashboard-card {
    padding: 12px;
  }

  .card-header-text h3 {
    font-size: 0.95rem;
  }

  .activity-list {
    max-height: 300px;
  }

  .activity-item {
    padding: 10px;
    gap: 10px;
  }

  .activity-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .activity-action {
    font-size: 0.85rem;
  }

  .section-title {
    padding: 0 12px;
    font-size: 1.1rem;
  }

  .portfolio-row {
    padding: 0 12px;
  }

  .chart-bars {
    gap: 12px;
  }

  .chart-summary {
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CLIENT DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════════ */

.client-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: slideUp 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dashboard-header {
  margin-bottom: 40px;
  text-align: center;
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #D4AF37, #E11D48);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* OVERVIEW SECTION */
.overview-section {
  margin-bottom: 40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.overview-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(225, 29, 72, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.overview-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.overview-card .card-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
}

.overview-card .card-content {
  flex: 1;
}

.overview-card .card-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.overview-card .card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

/* STATS SECTION */
.stats-section {
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* DASHBOARD SECTION */
.dashboard-section {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.create-offer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-offer-btn i {
  font-size: 1.2rem;
}

/* OFFERS TABLE */
.offers-table-wrapper {
  overflow-x: auto;
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
}

.offers-table thead {
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 2px solid var(--gold);
}

.offers-table th {
  padding: 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offers-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: slideUp 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.offers-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.offers-table td {
  padding: 16px;
  color: var(--text);
}

.cell-title {
  font-weight: 500;
}

.offer-title-cell h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.offer-title-cell p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.status-active {
  background: rgba(60, 232, 157, 0.2);
  color: #3CE89D;
}

.status-badge.status-completed {
  background: rgba(212, 175, 55, 0.2);
  color: #D4AF37;
}

.status-badge.status-draft {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.status-badge.status-pending-payment {
  background: rgba(255, 165, 0, 0.15);
  color: #FFA500;
}

.cell-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* ANALYTICS SECTION */
.analytics-section {
  animation: slideUp 500ms cubic-bezier(0.22, 1, 0.36, 1) 100ms backwards;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.analytics-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(60, 232, 157, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.analytics-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.1);
}

.analytics-card h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.analytics-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.analytics-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* SUBMISSIONS SECTION */
.top-submissions {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.top-submissions h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.submission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: slideUp 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  cursor: pointer;
}

.submission-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.submission-image {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  background: var(--surface-secondary);
  overflow: hidden;
}

.submission-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.submission-card:hover .submission-image img {
  transform: scale(1.08);
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(225, 29, 72, 0.1));
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.submission-info {
  padding: 12px;
}

.submission-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submission-stats {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.submission-stats .stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.submission-stats i {
  font-size: 0.85rem;
}

/* MODAL — Client Dashboard (uses .hidden class instead of .open) */
#create-offer-modal.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

#create-offer-modal.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

#create-offer-modal .modal-content {
  background: var(--surface-secondary, var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* FORM STYLES */
.offer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: flex-end;
}

.form-actions .btn {
  flex: 1;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ERROR STATE */
.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-state i {
  font-size: 4rem;
  color: #E11D48;
  margin-bottom: 16px;
}

.error-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.error-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.error-state .btn {
  margin: 0 auto;
}

/* NO DATA */
.no-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .client-dashboard {
    padding: 30px 16px;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offers-table th,
  .offers-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .client-dashboard {
    padding: 20px 12px;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-header {
    margin-bottom: 24px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .overview-card {
    padding: 16px;
  }

  .overview-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .overview-card .card-value {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .dashboard-section {
    padding: 20px;
    border-radius: 12px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .create-offer-btn {
    width: 100%;
    justify-content: center;
  }

  .offers-table-wrapper {
    font-size: 0.85rem;
  }

  .offers-table th,
  .offers-table td {
    padding: 10px 6px;
  }

  .cell-actions {
    gap: 4px;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .analytics-card {
    padding: 16px 12px;
  }

  .analytics-value {
    font-size: 1.5rem;
  }

  .submissions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .client-dashboard {
    padding: 16px 8px;
  }

  .dashboard-title {
    font-size: 1.2rem;
  }

  .dashboard-subtitle {
    font-size: 0.95rem;
  }

  .overview-grid {
    gap: 8px;
  }

  .overview-card {
    padding: 12px;
    gap: 12px;
  }

  .overview-card .card-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .overview-card .card-value {
    font-size: 1.2rem;
  }

  .overview-card .card-label {
    font-size: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .dashboard-section {
    padding: 16px 12px;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .offers-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .offers-table {
    font-size: 0.8rem;
    min-width: 500px;
  }

  .offers-table th,
  .offers-table td {
    padding: 8px 4px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .submissions-grid {
    grid-template-columns: 1fr;
  }

  .top-submissions h3 {
    font-size: 1rem;
  }

  .modal-content {
    width: 95%;
    padding: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .empty-state,
  .error-state {
    padding: 40px 16px;
  }

  .empty-icon,
  .error-state i {
    font-size: 3rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════════ */

.admin-dashboard {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: slideUp 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, #D4AF37, #3CE89D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  position: absolute;
  margin-top: 8px;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.admin-actions .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ADMIN TABS */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding-bottom: 0;
}

.admin-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.admin-tab:hover {
  color: var(--gold);
}

.admin-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.admin-tab i {
  font-size: 1.1rem;
}

/* ADMIN CONTENT */
.admin-content {
  animation: slideUp 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-section {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(60, 232, 157, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-card:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-4px);
}

.metric-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.metric-info {
  flex: 1;
}

.metric-info h3 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.metric-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* HEALTH SECTION */
.health-section {
  background: linear-gradient(135deg, rgba(60, 232, 157, 0.08), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(60, 232, 157, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.health-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.health-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.health-value {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.health-value.healthy {
  color: #3CE89D;
}

.health-value.warning {
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.2);
}

/* ANALYTICS SECTION */
.analytics-section {
  margin-bottom: 30px;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.analytics-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(225, 29, 72, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.analytics-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.analytics-card h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.spark-chart {
  font-size: 2rem;
  margin: 8px 0;
}

.analytics-card p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

/* FILTER BUTTONS */
.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 400px;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ADMIN TABLES */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 2px solid var(--gold);
}

.admin-table th {
  padding: 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: slideUp 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.admin-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.admin-table td {
  padding: 16px;
  color: var(--text);
  font-size: 0.95rem;
}

/* REPORTS TABLE */
.reports-table-wrapper,
.users-table-wrapper {
  overflow-x: auto;
}

.reason-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(225, 29, 72, 0.15);
  color: #E11D48;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pending {
  background: rgba(212, 175, 55, 0.2);
  color: #D4AF37;
}

.status-resolved {
  background: rgba(60, 232, 157, 0.2);
  color: #3CE89D;
}

.status-rejected {
  background: rgba(225, 29, 72, 0.2);
  color: #E11D48;
}

.status-verified {
  background: rgba(60, 232, 157, 0.2);
  color: #3CE89D;
}

.status-blocked {
  background: rgba(225, 29, 72, 0.2);
  color: #E11D48;
}

.status-active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
}

/* USER CELL */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* TABLE ACTIONS */
.cell-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.btn-icon.approve {
  color: #3CE89D;
  background: rgba(60, 232, 157, 0.1);
}

.btn-icon.approve:hover {
  background: rgba(60, 232, 157, 0.2);
}

.btn-icon.reject {
  color: #E11D48;
  background: rgba(225, 29, 72, 0.1);
}

.btn-icon.reject:hover {
  background: rgba(225, 29, 72, 0.2);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.empty-state-text {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
  font-size: 0.95rem;
}

/* ERROR STATE */
.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-state i {
  font-size: 3rem;
  color: #E11D48;
  margin-bottom: 16px;
  display: block;
}

.error-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.error-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .admin-dashboard {
    padding: 30px 16px;
  }

  .admin-title {
    font-size: 2rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-table th,
  .admin-table td {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .admin-dashboard {
    padding: 20px 12px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-title {
    font-size: 1.5rem;
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tab {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-card {
    padding: 16px;
  }

  .analytics-cards {
    grid-template-columns: 1fr;
  }

  .health-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-bar {
    width: 100%;
    max-width: 100%;
  }

  .filter-buttons {
    flex-wrap: wrap;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 6px;
  }

  .cell-actions {
    gap: 4px;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .admin-dashboard {
    padding: 16px 8px;
  }

  .admin-title {
    font-size: 1.2rem;
  }

  .admin-subtitle {
    display: none;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-tabs {
    font-size: 0.8rem;
  }

  .admin-tab {
    padding: 8px 12px;
  }

  .admin-tab i {
    display: none;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .metrics-grid {
    gap: 8px;
  }

  .metric-card {
    padding: 12px;
    flex-direction: column;
    text-align: center;
  }

  .metric-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .analytics-cards {
    gap: 8px;
  }

  .analytics-card {
    padding: 12px;
  }

  .health-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-table {
    font-size: 0.75rem;
    min-width: 600px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 4px;
  }

  .search-bar {
    gap: 4px;
  }

  .search-input {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .filter-buttons {
    gap: 4px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .empty-state {
    padding: 40px 16px;
  }

  .error-state {
    padding: 40px 16px;
  }
}

/* ============================================================
   DESIGNER PORTFOLIO SYSTEM STYLES (PREMIUM GLASSMORPHIC)
   ============================================================ */

.portfolio-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(13,13,43,0.95));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.portfolio-hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212,175,55,0.1), transparent 50%),
              radial-gradient(circle at bottom left, rgba(225,29,72,0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 30px;
  align-items: center;
}

.portfolio-avatar-container {
  flex-shrink: 0;
}

.profile-avatar {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(212,175,55,0.2);
  transition: transform 0.3s var(--ease);
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initials {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
}

.verification-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 1.8rem;
  color: var(--gold);
  background: var(--bg);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.portfolio-header-info {
  flex: 1;
}

.portfolio-name-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.portfolio-username {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.portfolio-rank-badge {
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-rating-badge {
  background: rgba(60,232,157,0.12);
  border: 1px solid rgba(60,232,157,0.3);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.portfolio-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 600px;
}

.portfolio-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.meta-item i {
  font-size: 1.1rem;
  color: var(--gold);
}

.meta-item a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.meta-item a:hover {
  opacity: 0.8;
}

.portfolio-actions {
  display: flex;
  gap: 12px;
}

/* Stats Grid */
.portfolio-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 35px;
}

.portfolio-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s var(--ease);
}

.portfolio-stat-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.icon-pink { background: rgba(225,29,72,0.12); color: var(--pink); border: 1px solid rgba(225,29,72,0.2); }
.icon-green { background: rgba(60,232,157,0.12); color: var(--green); border: 1px solid rgba(60,232,157,0.2); }
.icon-gold { background: rgba(212,175,55,0.12); color: var(--gold); border: 1px solid rgba(212,175,55,0.2); }

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 4px 0 0 0;
}

/* Portfolio Section & Grid */
.portfolio-section {
  margin-bottom: 35px;
}

.portfolio-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.portfolio-artwork-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.portfolio-artwork-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.artwork-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-artwork-card:hover .artwork-image {
  transform: scale(1.06);
}

.artwork-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-artwork-card:hover .artwork-card-overlay {
  opacity: 1;
}

.artwork-view-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: #000;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(0.8);
  transition: all 0.2s var(--ease);
}

.artwork-view-btn:hover {
  transform: scale(1);
  background: #fff;
}

.artwork-card-content {
  padding: 16px;
}

.artwork-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.artwork-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.artwork-stats {
  display: flex;
  gap: 12px;
}

.artwork-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.artwork-stats .stat i {
  font-size: 1rem;
  color: var(--gold);
}

/* Activity List */
.portfolio-activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}

.portfolio-activity-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255,255,255,0.06);
}

.portfolio-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.portfolio-activity-item .activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg);
}

.portfolio-activity-item .activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.88rem;
  margin: 0 0 4px 0;
  color: var(--text-secondary);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Loader / Empty / Error States */
.portfolio-loading, .portfolio-empty, .portfolio-error {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
}

.portfolio-empty i, .portfolio-error i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 12px;
}

/* Badges styling */
.badge-active {
  background: rgba(60,232,157,0.12) !important;
  color: var(--green) !important;
  border: 1px solid rgba(60,232,157,0.2) !important;
}

.badge-pending {
  background: rgba(212,175,55,0.12) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(212,175,55,0.2) !important;
}

@media (max-width: 768px) {
  .portfolio-hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .portfolio-name-section {
    justify-content: center;
  }
  
  .portfolio-meta {
    justify-content: center;
  }
  
  .portfolio-actions {
    justify-content: center;
  }
}

/* ============================================================
   ABOUT US SECTION — PREMIUM SAAS STYLING
   ============================================================ */
.about-us-section {
  margin-bottom: 48px;
  padding: 40px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light-mode .about-us-section {
  background: var(--surface);
  border-color: var(--border);
}

#about-us-section {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 40px 24px;
    background: var(--bg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#about-us-section.active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.about-hero {
  max-width: 800px;
  margin-bottom: 40px;
}

.about-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.about-main-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 50%, var(--green) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about-main-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

body.light-mode .about-main-desc {
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

body.light-mode .about-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(139, 115, 85, 0.12);
  box-shadow: var(--shadow-sm);
}

.about-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

body.light-mode .about-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: all 0.3s var(--ease);
}

.about-card:hover .about-card-icon {
  background: var(--gold);
  color: #000;
  transform: scale(1.05);
}

.about-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.about-card-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

body.light-mode .about-card-text {
  color: var(--text);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .about-main-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 768px) {
  .about-us-section {
    padding: 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-hero {
    margin-bottom: 24px;
  }
}

/* Isolated About Us View State */
body.about-active .sidebar {
  display: none !important;
}
body.about-active .topbar {
  display: none !important;
}
body.about-active .main-content {
  margin-left: 0 !important;
  padding: 0 !important;
}
body.about-active #about-us-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ============================================================
   OFFER DETAIL PAGE — FULL IMMERSIVE VIEW
   ============================================================ */

/* Skeleton Loader */
.skeleton-block {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.offer-page-skeleton {
  animation: fadeIn 0.3s ease;
}

/* Fade-in for polled items */
.fade-in-item {
  animation: fadeSlideIn 0.4s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Offer Page Hero ─── */
.offer-page-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(26,26,46,0.95), rgba(13,13,43,0.98));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.offer-page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212,175,55,0.06), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(212,175,55,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.offer-page-media {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.offer-page-hero-body {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.offer-page-title {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.offer-page-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

/* Category badge */
.category-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Status badges */
.status-badge-open {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(60,232,157,0.12);
  color: var(--green);
  border: 1px solid rgba(60,232,157,0.25);
}

.status-badge-closed {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(225,29,72,0.12);
  color: var(--pink);
  border: 1px solid rgba(225,29,72,0.25);
}

.budget-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.25);
}

.deadline-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
}

.offer-page-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.offer-page-owner {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.offer-page-owner:hover { opacity: 0.8; }

.offer-page-owner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.3);
  background: var(--surface-3);
}

.offer-page-owner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.offer-page-owner-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-page-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ─── Action Bar ─── */
.offer-page-action-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
}

.offer-page-action-bar .btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
}

/* ─── Section Titles ─── */
.offer-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-section-title .count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  padding: 2px 10px;
  border-radius: 12px;
}

/* ─── Submission Cards ─── */
.submissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.submission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  position: relative;
}

.submission-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.submission-card-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0a;
}

.submission-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.submission-card:hover .submission-card-media img {
  transform: scale(1.08);
}

.submission-offer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.2);
}

.submission-card-body {
  padding: 16px;
}

.submission-card-designer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submission-card-designer:hover { opacity: 0.8; }

.submission-card-designer img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.2);
}

.submission-card-designer-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.submission-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text);
}

.submission-card-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Vote Locked Overlay */
.vote-locked-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: default;
}

.vote-locked-overlay i {
  font-size: 1rem;
  color: var(--gold);
}

/* Vote Active (open slider) */
.submission-vote-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.submission-vote-section .vote-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vote-slider-wrap[data-vote-locked] {
  pointer-events: none;
  opacity: 0.72;
}

.submission-vote-section input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
  height: 4px;
}

.submission-vote-section .vote-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  min-width: 28px;
  text-align: center;
}

.submission-vote-avg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.submission-vote-avg .avg-score {
  font-weight: 700;
  color: var(--green);
}

/* ─── Comments Section ─── */
.offer-comments-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
}

.offer-comment-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.offer-comment-input-wrap textarea {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.88rem;
  resize: vertical;
  min-height: 48px;
  max-height: 140px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.offer-comment-input-wrap textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.4);
}

.offer-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.offer-comment-item:last-child {
  border-bottom: none;
}

.offer-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.06);
}

.offer-comment-body {
  flex: 1;
}

.offer-comment-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.offer-comment-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 4px 0;
}

.offer-comment-text .mention-tag {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
}

.offer-comment-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Empty state for submissions/comments */
.offer-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.offer-empty-state i {
  font-size: 3rem;
  opacity: 0.25;
  margin-bottom: 12px;
  display: block;
}

.offer-empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .offer-page-hero-body {
    padding: 20px;
  }

  .offer-page-title {
    font-size: 1.5rem;
  }

  .offer-page-media {
    max-height: 240px;
  }

  .offer-page-action-bar {
    padding: 16px;
  }

  .submissions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .offer-comment-input-wrap {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .offer-page-hero-body {
    padding: 16px;
  }

  .offer-page-title {
    font-size: 1.25rem;
  }

  .offer-page-badges {
    gap: 6px;
  }
}

/* ============================================================
   OFFER HUB CARDS — Premium Styling
   ============================================================ */

/* Offer Hub Page Grid */
#offer-hub-page-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Offer Hub Card — individual campaign card */
#offer-hub-page-feed > .glass {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  overflow: hidden;
}

#offer-hub-page-feed > .glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.12), 0 0 0 1px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.2);
}

/* Stats bar within hub cards */
#offer-hub-page-feed .glass > .offer-stats-bar {
  background: rgba(212, 175, 55, 0.04) !important;
  border: 1px solid rgba(212, 175, 55, 0.06) !important;
  border-radius: 12px !important;
}

/* ============================================================
   MY OFFERS CARDS — Profile Tab Premium Styling
   ============================================================ */

#my-offers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Designer offer card in My Offers tab */
#my-offers-list > .glass {
  background: linear-gradient(150deg, var(--surface) 0%, rgba(14, 18, 25, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  position: relative;
  overflow: hidden;
}

#my-offers-list > .glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--green) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

#my-offers-list > .glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.15);
}

#my-offers-list > .glass:hover::before {
  opacity: 1;
}

/* Status badges inside My Offers cards */
#my-offers-list .badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Action button row inside My Offers */
#my-offers-list .btn {
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.18s var(--ease);
}

#my-offers-list .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Thumbnail image in My Offers card */
#my-offers-list .glass div[style*="border-radius:10px"][style*="background:url"] {
  border: 1.5px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.22s var(--ease);
}

#my-offers-list > .glass:hover div[style*="border-radius:10px"][style*="background:url"] {
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.15);
}

/* ============================================================
   PORTFOLIO GRID — Enhanced Styling
   ============================================================ */

#portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

#portfolio-grid > .glass.card {
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  overflow: hidden;
}

#portfolio-grid > .glass.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   RESPONSIVE — Offer Hub & My Offers
   ============================================================ */

@media (max-width: 768px) {
  #offer-hub-page-feed {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #my-offers-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  #my-offers-list > .glass {
    padding: 12px;
    gap: 10px;
  }

  #offer-hub-page-feed > .glass {
    border-radius: var(--radius-md);
  }
}

/* ============================================================
   PREMIUM ARTWORK PAGE & CARD STYLES
   ============================================================ */

.artwork-card {
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease) !important;
}

.artwork-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold) !important;
  box-shadow: var(--shadow-lg), var(--shadow-gold) !important;
}

.artwork-card:hover .artwork-card-image {
  transform: scale(1.06);
}

.artwork-hero {
  border: 1px solid var(--border);
  transition: box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}

.artwork-hero:hover {
  border-color: rgba(212, 175, 55, 0.2) !important;
  box-shadow: var(--shadow-lg), var(--shadow-gold) !important;
}

/* Light mode adjustments for gold glows */
body.light-mode .artwork-card:hover {
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 16px 40px rgba(139, 115, 85, 0.12), 0 0 30px rgba(212, 175, 55, 0.1) !important;
}

body.light-mode .artwork-hero:hover {
  border-color: rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 16px 40px rgba(139, 115, 85, 0.12), 0 0 30px rgba(212, 175, 55, 0.08) !important;
}

@media (max-width: 900px) {
  #designer-artworks-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 600px) {
  #designer-artworks-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .artwork-hero {
    padding: 20px !important;
    border-radius: 18px !important;
  }
}

/* ============================================================
   SETTINGS TABS STYLING
   ============================================================ */
#page-settings .profile-tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

#page-settings .profile-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

#page-settings .profile-tab-btn:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

#page-settings .profile-tab-btn.active {
  color: var(--gold);
  background: var(--gold-glow);
  border-color: rgba(212, 175, 55, 0.3);
}

#page-settings .profile-tab-panel {
  display: none;
}

#page-settings .profile-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.settings-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.settings-status.success {
  display: block !important;
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
}

.settings-status.error {
  display: block !important;
  border-color: rgba(225, 29, 72, 0.32);
  background: rgba(225, 29, 72, 0.08);
  color: var(--text);
}

.settings-status.loading {
  display: block !important;
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  color: var(--text);
}

@media (max-width: 760px) {
  #page-settings [style*="grid-template-columns: 1fr 1fr"],
  #page-settings .settings-password-grid {
    grid-template-columns: 1fr !important;
  }

  #page-settings .profile-tab-nav {
    flex-wrap: wrap;
  }
}

/* ============================================================
   MEDIA CAROUSEL STYLING
   ============================================================ */
.media-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  border-radius: inherit;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.carousel-slide img,
.carousel-slide video,
.post-media-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
}

.media-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev-btn {
  left: 12px;
}

.carousel-btn.next-btn {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 20px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--gold);
  width: 14px;
  border-radius: 4px;
}

/* ============================================================
   LIGHTBOX MODAL STYLING
   ============================================================ */
#lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#lightbox-content img,
#lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

#lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.2rem;
  color: #fff;
  opacity: 0.7;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10001;
}

#lightbox-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

#lightbox-prev-btn,
#lightbox-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, opacity 0.2s;
  z-index: 10000;
}

#lightbox-prev-btn:hover,
#lightbox-next-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.05);
}

#lightbox-prev-btn:active,
#lightbox-next-btn:active {
  transform: translateY(-50%) scale(0.95);
}

#lightbox-prev-btn {
  left: 24px;
}

#lightbox-next-btn {
  right: 24px;
}

#lightbox-counter {
  position: absolute;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 12px;
  z-index: 10000;
}

@media (max-width: 768px) {
  #lightbox-prev-btn {
    left: 8px;
  }
  #lightbox-next-btn {
    right: 8px;
  }
  #lightbox-prev-btn,
  #lightbox-next-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* ============================================================
   UI PREFERENCES OVERRIDES
   ============================================================ */

/* Compact View Mode: reduces margins, gaps, paddings across cards and sections */
body.compact-view .artwork-card,
body.compact-view .card {
  padding: 12px !important;
}
body.compact-view .artwork-grid,
body.compact-view .feed-grid {
  gap: 16px !important;
}
body.compact-view .page-section {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

/* Animations Disabled: kills all animations, keyframes, transitions */
body.animations-disabled *,
body.animations-disabled *::before,
body.animations-disabled *::after {
  transition: none !important;
  animation: none !important;
  transition-duration: 0s !important;
  animation-duration: 0s !important;
}

/* When animations are disabled, ensure tab panels and reveal elements
   that are already active/visible don't get stuck at opacity:0
   because their animation was cancelled before reaching opacity:1 */
body.animations-disabled .profile-tab-panel.active,
body.animations-disabled #page-settings .profile-tab-panel.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  display: block !important;
}

body.animations-disabled .reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Contest winner card styles */
.submission-card.winner-card {
  border: 2px solid var(--gold) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25) !important;
  transform: translateY(-4px);
}

