/* ═══════════════════════════════════════════════════════
   ArtHub — Main Stylesheet
   Dark glassmorphism design system | RTL Persian
═══════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────── */
:root {
  /* Colors */
  --c-bg:          #05050f;
  --c-bg2:         #0a0a1a;
  --c-surface:     rgba(255,255,255,.04);
  --c-surface-2:   rgba(255,255,255,.07);
  --c-surface-3:   rgba(255,255,255,.10);
  --c-border:      rgba(255,255,255,.08);
  --c-border-2:    rgba(255,255,255,.14);

  --c-purple:      #7c3aed;
  --c-purple-light:#a78bfa;
  --c-purple-glow: rgba(124,58,237,.35);
  --c-pink:        #ec4899;
  --c-pink-glow:   rgba(236,72,153,.25);
  --c-cyan:        #06b6d4;
  --c-green:       #10b981;
  --c-amber:       #f59e0b;
  --c-red:         #ef4444;

  --c-text:        #f1f5f9;
  --c-text-2:      #94a3b8;
  --c-text-3:      #64748b;

  /* Gradients */
  --grad-main:     linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --grad-card:     linear-gradient(145deg, rgba(124,58,237,.12) 0%, rgba(236,72,153,.06) 100%);
  --grad-glow:     radial-gradient(circle at 50% 0%, rgba(124,58,237,.18) 0%, transparent 70%);

  /* Typography */
  --font:          'Vazirmatn', system-ui, -apple-system, sans-serif;
  --fs-xs:         .75rem;
  --fs-sm:         .875rem;
  --fs-base:       1rem;
  --fs-lg:         1.125rem;
  --fs-xl:         1.25rem;
  --fs-2xl:        1.5rem;
  --fs-3xl:        1.875rem;
  --fs-4xl:        2.25rem;
  --fs-5xl:        3rem;
  --fw-light:      300;
  --fw-normal:     400;
  --fw-medium:     500;
  --fw-semi:       600;
  --fw-bold:       700;
  --fw-black:      900;

  /* Spacing */
  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.25rem;--sp-6: 1.5rem; --sp-8: 2rem;   --sp-10: 2.5rem;
  --sp-12: 3rem;  --sp-16: 4rem;  --sp-20: 5rem;  --sp-24: 6rem;

  /* Radii */
  --r-sm:   6px;  --r-md:  10px; --r-lg:  16px;
  --r-xl:  24px;  --r-2xl: 32px; --r-full: 9999px;

  /* Shadows */
  --sh-sm:  0 1px 3px rgba(0,0,0,.4),  0 1px 2px rgba(0,0,0,.5);
  --sh-md:  0 4px 16px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --sh-lg:  0 12px 40px rgba(0,0,0,.6),0 4px 12px rgba(0,0,0,.4);
  --sh-xl:  0 24px 64px rgba(0,0,0,.7);
  --sh-glow:0 0 32px var(--c-purple-glow), 0 0 64px rgba(124,58,237,.15);

  /* Transitions */
  --dur-fast: .15s;
  --dur-base: .25s;
  --dur-slow: .4s;
  --ease: cubic-bezier(.4,0,.2,1);

  /* Layout */
  --nav-h: 72px;
  --container: 1280px;
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* ── Page Loader ─────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--dur-slow) var(--ease),
              visibility var(--dur-slow) var(--ease);
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-purple);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ── Background Effects ──────────────────────────────── */
.bg-effects {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .45;
  animation: float 8s ease-in-out infinite;
}
.bg-orb--1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}
.bg-orb--2 {
  width: 500px; height: 500px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation-delay: -4s; opacity: .3;
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--sp-6);
}
.main-content {
  position: relative; z-index: 1;
  padding-top: calc(var(--nav-h) + var(--sp-8));
  min-height: 100vh;
}
.section { padding: var(--sp-16) 0; }
.section--sm { padding: var(--sp-10) 0; }

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: rgba(5,5,15,.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.navbar.scrolled {
  background: rgba(5,5,15,.88);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.navbar-inner {
  height: 100%; display: flex;
  align-items: center; gap: var(--sp-6);
}
.navbar-brand {
  display: flex; align-items: center; gap: var(--sp-2);
  text-decoration: none; flex-shrink: 0;
}
.brand-icon { font-size: 1.6rem; }
.brand-name {
  font-size: var(--fs-xl); font-weight: var(--fw-black);
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-nav {
  display: flex; align-items: center; gap: var(--sp-1);
  flex: 1; justify-content: center;
}
.nav-link {
  padding: var(--sp-2) var(--sp-4);
  color: var(--c-text-2); text-decoration: none;
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  border-radius: var(--r-full);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--c-text);
  background: var(--c-surface-2);
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-purple);
}
.navbar-actions {
  display: flex; align-items: center;
  gap: var(--sp-2); flex-shrink: 0;
}
.nav-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-2); text-decoration: none;
  border-radius: var(--r-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: all var(--dur-fast) var(--ease);
}
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn:hover {
  color: var(--c-text);
  background: var(--c-surface-2);
  border-color: var(--c-border-2);
}
.badge-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--c-pink);
  color: white; font-size: 10px; font-weight: var(--fw-bold);
  border-radius: var(--r-full); border: 2px solid var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}

/* ── User Menu ───────────────────────────────────────── */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  cursor: pointer; color: var(--c-text);
  font-family: var(--font); font-size: var(--fs-sm);
  transition: all var(--dur-fast) var(--ease);
}
.user-menu-trigger:hover, .user-menu-trigger[aria-expanded="true"] {
  background: var(--c-surface-2);
  border-color: var(--c-border-2);
}
.user-avatar-sm {
  width: 30px; height: 30px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--c-border-2);
}
.user-name-sm {
  max-width: 120px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.chevron { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.user-menu-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: rgba(15,15,35,.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  padding: var(--sp-2);
  z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--dur-fast) var(--ease);
}
.user-dropdown.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-header {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2); margin-bottom: var(--sp-1);
}
.dropdown-header img {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover;
}
.dropdown-header strong { display: block; font-size: var(--fs-sm); }
.dropdown-header span { font-size: var(--fs-xs); color: var(--c-text-2); }
.dropdown-divider { height: 1px; background: var(--c-border); margin: var(--sp-1) 0; }
.dropdown-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--c-text-2); text-decoration: none;
  font-size: var(--fs-sm);
  transition: all var(--dur-fast) var(--ease);
}
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-item:hover { color: var(--c-text); background: var(--c-surface-2); }
.dropdown-item--admin { color: var(--c-purple-light); }
.dropdown-item--danger { color: var(--c-red); }
.dropdown-item--danger:hover { background: rgba(239,68,68,.1); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font); font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--r-md); border: none;
  cursor: pointer; text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap; user-select: none;
  position: relative; overflow: hidden;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}
.btn:hover::after { background: rgba(255,255,255,.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 16px var(--c-purple-glow);
}
.btn-primary:hover { box-shadow: 0 6px 24px var(--c-purple-glow), var(--sh-glow); }

.btn-secondary {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-2);
  color: var(--c-text);
}
.btn-secondary:hover { background: var(--c-surface-3); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
}
.btn-ghost:hover { color: var(--c-text); border-color: var(--c-border-2); }

.btn-danger {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--c-red);
}
.btn-danger:hover { background: rgba(239,68,68,.25); }

.btn-success {
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--c-green);
}
.btn-success:hover { background: rgba(16,185,129,.25); }

.btn-sm { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-base); }
.btn-xl { padding: var(--sp-5) var(--sp-10); font-size: var(--fs-lg); border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-loading { pointer-events: none; }
.btn-loading::before {
  content: ''; width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
  margin-left: var(--sp-2);
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease);
}
.card:hover {
  border-color: var(--c-border-2);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(124,58,237,.15);
}
.card-body { padding: var(--sp-6); }
.card-header { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--c-border); }
.card-footer { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--c-border); }

/* ── Artwork Cards ───────────────────────────────────── */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}
.artwork-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}
.artwork-card:hover {
  border-color: rgba(124,58,237,.4);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--sh-lg), 0 0 40px rgba(124,58,237,.2);
}
.artwork-thumbnail {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--c-bg2);
}
.artwork-thumbnail img,
.artwork-thumbnail video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.artwork-card:hover .artwork-thumbnail img { transform: scale(1.06); }
.artwork-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,15,.9) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--dur-base) var(--ease);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: var(--sp-4);
  gap: var(--sp-2);
}
.artwork-card:hover .artwork-overlay { opacity: 1; }
.overlay-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: white; text-decoration: none; cursor: pointer;
  transition: all var(--dur-fast);
}
.overlay-btn:hover { background: rgba(255,255,255,.3); transform: scale(1.1); }
.overlay-btn svg { width: 15px; height: 15px; }
.artwork-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  padding: 3px var(--sp-2); border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  backdrop-filter: blur(10px);
}
.artwork-badge--category {
  background: rgba(124,58,237,.7); color: white;
  border: 1px solid rgba(124,58,237,.5);
}
.artwork-badge--video {
  background: rgba(239,68,68,.7); color: white;
}
.artwork-info { padding: var(--sp-4); }
.artwork-title {
  font-size: var(--fs-base); font-weight: var(--fw-semi);
  color: var(--c-text); margin-bottom: var(--sp-2);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-decoration: none; line-height: 1.4;
}
.artwork-meta {
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--c-text-2); font-size: var(--fs-xs);
}
.artwork-meta-item { display: flex; align-items: center; gap: 4px; }
.artwork-meta-item svg { width: 13px; height: 13px; }
.artwork-artist {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
  text-decoration: none;
  transition: opacity var(--dur-fast);
}
.artwork-artist:hover { opacity: .8; }
.artwork-artist img {
  width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover;
}
.artwork-artist span { font-size: var(--fs-xs); color: var(--c-text-2); }

/* ── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--c-text-2);
}
.form-label .required { color: var(--c-pink); margin-right: 3px; }
.form-control {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-family: var(--font); font-size: var(--fs-base);
  transition: all var(--dur-fast) var(--ease);
  outline: none; direction: rtl;
}
.form-control::placeholder { color: var(--c-text-3); }
.form-control:focus {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px var(--c-purple-glow);
  background: var(--c-surface-2);
}
.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--c-red);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  appearance: none; -webkit-appearance: none;
  background-color: #0d0d1f;
  color: var(--c-text);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left var(--sp-3) center;
  background-size: 16px;
  padding-left: var(--sp-8);
}
select.form-control option {
  background-color: #0d0d1f;
  color: var(--c-text);
}
.form-hint { font-size: var(--fs-xs); color: var(--c-text-3); margin-top: var(--sp-1); }
.form-error { font-size: var(--fs-xs); color: var(--c-red); margin-top: var(--sp-1); }
.form-control.is-invalid { border-color: var(--c-red); }
.form-control.is-valid { border-color: var(--c-green); }

/* Input with icon */
.input-group { position: relative; }
.input-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: var(--sp-4); width: 18px; height: 18px;
  color: var(--c-text-3); pointer-events: none;
}
.input-group .form-control { padding-right: calc(var(--sp-4)*2 + 18px); }

/* ── Upload Zone ─────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--c-border-2);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  background: var(--c-surface);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--c-purple);
  background: rgba(124,58,237,.06);
  box-shadow: 0 0 0 1px var(--c-purple), var(--sh-glow);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload-icon {
  width: 64px; height: 64px; margin: 0 auto var(--sp-4);
  color: var(--c-purple);
  background: var(--c-purple-glow);
  border-radius: var(--r-xl); padding: var(--sp-4);
}
.upload-zone h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.upload-zone p { color: var(--c-text-2); font-size: var(--fs-sm); }
.upload-progress {
  margin-top: var(--sp-4);
  display: none;
}
.upload-progress-bar {
  height: 6px; background: var(--c-surface-3);
  border-radius: var(--r-full); overflow: hidden;
}
.upload-progress-fill {
  height: 100%; width: 0%; border-radius: var(--r-full);
  background: var(--grad-main);
  transition: width .3s var(--ease);
}
.upload-file-info {
  display: none; margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  border-radius: var(--r-md);
  text-align: right;
}

/* ── Artist Card ─────────────────────────────────────── */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}
.artist-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.artist-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-main);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-base) var(--ease);
}
.artist-card:hover {
  border-color: rgba(124,58,237,.3);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.artist-card:hover::before { transform: scaleX(1); }
.artist-avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--c-border-2);
  margin: 0 auto var(--sp-4);
  display: block;
  transition: border-color var(--dur-base);
}
.artist-card:hover .artist-avatar { border-color: var(--c-purple); }
.artist-name {
  font-size: var(--fs-base); font-weight: var(--fw-semi);
  color: var(--c-text); margin-bottom: var(--sp-1);
}
.artist-province {
  font-size: var(--fs-xs); color: var(--c-text-2);
  margin-bottom: var(--sp-3);
}
.artist-stats {
  display: flex; justify-content: center; gap: var(--sp-4);
  padding-top: var(--sp-3); border-top: 1px solid var(--c-border);
}
.artist-stat { text-align: center; }
.artist-stat-value {
  display: block; font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--c-text);
}
.artist-stat-label { font-size: 11px; color: var(--c-text-3); }
.artist-badges {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}
.badge-pill {
  font-size: var(--fs-xs); padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  background: var(--c-surface-3);
  color: var(--c-text-2);
  border: 1px solid var(--c-border-2);
}
.rank-badge {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
}
.rank-badge--1 { background: linear-gradient(135deg,#ffd700,#ff9500); color: #000; }
.rank-badge--2 { background: linear-gradient(135deg,#e5e5e5,#aaa); color: #000; }
.rank-badge--3 { background: linear-gradient(135deg,#cd7f32,#8b4513); color: #fff; }

/* ── Status Badges ───────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px var(--sp-3); border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
}
.status-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-badge--pending  { background: rgba(245,158,11,.15); color: var(--c-amber); }
.status-badge--approved { background: rgba(16,185,129,.15);  color: var(--c-green); }
.status-badge--rejected { background: rgba(239,68,68,.15);   color: var(--c-red); }
.status-badge--revision { background: rgba(6,182,212,.15);   color: var(--c-cyan); }
.status-badge--draft    { background: rgba(100,116,139,.15); color: var(--c-text-3); }

/* ── Hero Section ────────────────────────────────────── */
.hero {
  min-height: clamp(520px, 74vh, 740px);
  display: flex; align-items: center;
  padding: var(--sp-12) 0;
  position: relative; overflow: hidden;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-purple-glow);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: var(--r-full);
  font-size: var(--fs-sm); color: var(--c-purple-light);
  margin-bottom: var(--sp-6);
}
.hero-title {
  font-size: clamp(var(--fs-4xl), 5vw, 4rem);
  font-weight: var(--fw-black);
  line-height: 1.2; margin-bottom: var(--sp-6);
  color: var(--c-text);
}
.hero-title span {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: var(--fs-lg); color: var(--c-text-2);
  margin-bottom: var(--sp-7); line-height: 1.85;
}
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.hero-metrics{
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}
.hero-metrics span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-stats {
  display: flex; gap: var(--sp-8); margin-top: var(--sp-12);
  padding-top: var(--sp-8); border-top: 1px solid var(--c-border);
}
.hero-stat-value {
  display: block; font-size: var(--fs-3xl); font-weight: var(--fw-black);
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: var(--fs-sm); color: var(--c-text-2); }
.hero-visual {
  position: absolute; left: 5%; top: 50%;
  transform: translateY(-50%);
  width: 45%; max-width: 600px;
  opacity: .96;
  filter: saturate(1.05) contrast(1.02);
}

/* Marquee visual */
.hero-visual--marquee { pointer-events: none; }
.hero-marquee {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  height: 520px;
  padding: var(--sp-2);
  border-radius: var(--r-xl);
  background: rgba(10,10,20,.25);
  border: 1px solid rgba(124,58,237,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.hero-marquee.is-paused .hero-track-inner,
.hero-marquee.is-paused .hero-row-inner,
.hero-marquee:hover .hero-track-inner { animation-play-state: paused; }

.hero-track { overflow: hidden; border-radius: calc(var(--r-xl) - 10px); }
.hero-track-inner { display: grid; gap: var(--sp-4); }
.hero-track-inner--a { animation: heroMarquee 26s linear infinite; }
.hero-track-inner--b { animation: heroMarquee 30s linear infinite; animation-delay: -6s; }

@keyframes heroMarquee {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.hero-tile{
  display: block;
  text-decoration: none;
  background: var(--c-surface);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.hero-tile:hover{
  border-color: rgba(124,58,237,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.22), 0 0 30px rgba(124,58,237,.14);
}
.hero-tile img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease), filter .35s var(--ease);
  filter: saturate(1.05);
}
.hero-tile:hover img{ transform: scale(1.06); filter: saturate(1.15) contrast(1.05); }
.hero-tile-cap{
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 12px;
  background: linear-gradient(to top, rgba(5,5,15,.92) 0%, rgba(5,5,15,.0) 70%);
}
.hero-tile-title{
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-tile-sub{
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile hero visual */
.hero-visual-mobile { display: none; }
.hero-mobile-scroll{
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding: 2px var(--sp-4) 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.hero-mobile-scroll::-webkit-scrollbar { height: 8px; }
.hero-mobile-scroll::-webkit-scrollbar-thumb { background: rgba(124,58,237,.22); border-radius: 999px; }

.hero-row { overflow: hidden; border-radius: calc(var(--r-xl) - 10px); }
.hero-row-inner {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.hero-row-inner--m { animation: heroMarqueeX 22s linear infinite; }

@keyframes heroMarqueeX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


.hero-row-set{
  display: flex;
  gap: var(--hero-gap, var(--sp-4));
  padding-inline-end: var(--hero-gap, var(--sp-4));
  flex: 0 0 auto;
}

.artwork-card--hero{
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
}
.artwork-card--hero .artwork-thumbnail{ aspect-ratio: 16/10; }
.artwork-card--hero .artwork-info{ padding: 12px; }
.artwork-card--hero .artwork-title{ font-size: 13px; margin-bottom: 8px; -webkit-line-clamp: 1; }
.artwork-card--hero .artwork-artist{ margin-top: 0; padding-top: 0; border-top: 0; }
.artwork-card--hero .artwork-artist img{ width: 22px; height: 22px; }
.artwork-card--hero .artwork-artist span{ font-size: 11px; }

/* ── Section Header ──────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-8);
}
.section-title {
  font-size: var(--fs-2xl); font-weight: var(--fw-bold);
  position: relative; padding-right: var(--sp-4);
}
.section-title::before {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 24px;
  background: var(--grad-main); border-radius: 2px;
}

/* ── Tabs ────────────────────────────────────────────── */
.tabs { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.tab {
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  color: var(--c-text-2);
  font-family: var(--font); font-size: var(--fs-sm);
  cursor: pointer; text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.tab:hover { color: var(--c-text); border-color: var(--c-border-2); }
.tab.active {
  background: var(--grad-main); color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--c-purple-glow);
}

.form-grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

/* ── Stats Widgets ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.stat-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-6);
  display: flex; align-items: center; gap: var(--sp-4);
  position: relative; overflow: hidden;
}
.stat-widget::before {
  content: ''; position: absolute;
  top: 0; right: 0; width: 80px; height: 80px;
  border-radius: 50%;
  transform: translate(20px, -20px);
  opacity: .15;
}
.stat-widget--purple::before { background: var(--c-purple); }
.stat-widget--pink::before   { background: var(--c-pink); }
.stat-widget--cyan::before   { background: var(--c-cyan); }
.stat-widget--green::before  { background: var(--c-green); }
.stat-widget--amber::before  { background: var(--c-amber); }

.stat-icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon--purple { background: rgba(124,58,237,.2); color: var(--c-purple-light); }
.stat-icon--pink   { background: rgba(236,72,153,.2); color: var(--c-pink); }
.stat-icon--cyan   { background: rgba(6,182,212,.2);  color: var(--c-cyan); }
.stat-icon--green  { background: rgba(16,185,129,.2); color: var(--c-green); }
.stat-icon--amber  { background: rgba(245,158,11,.2); color: var(--c-amber); }

.stat-info { flex: 1; min-width: 0; }
.stat-value {
  font-size: var(--fs-2xl); font-weight: var(--fw-black);
  color: var(--c-text); line-height: 1;
}
.stat-label { font-size: var(--fs-xs); color: var(--c-text-2); margin-top: 3px; }

/* ── Alert / Flash Messages ──────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg); border: 1px solid;
  margin-bottom: var(--sp-5); font-size: var(--fs-sm);
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert--success { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.3);  color: #6ee7b7; }
.alert--danger  { background: rgba(239,68,68,.1);   border-color: rgba(239,68,68,.3);   color: #fca5a5; }
.alert--warning { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.3);  color: #fcd34d; }
.alert--info    { background: rgba(6,182,212,.1);   border-color: rgba(6,182,212,.3);   color: #67e8f9; }

/* ── Toast ───────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: var(--sp-6); left: var(--sp-6);
  z-index: 10000; display: flex; flex-direction: column; gap: var(--sp-3);
}
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: rgba(15,15,35,.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  min-width: 280px; max-width: 380px;
  animation: slideInToast var(--dur-base) var(--ease);
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.toast.hide { opacity: 0; transform: translateX(-20px); }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast-body { flex: 1; font-size: var(--fs-sm); }
.toast-body strong { display: block; }
.toast-body span { color: var(--c-text-2); font-size: var(--fs-xs); }
.toast--success .toast-icon { color: var(--c-green); }
.toast--error   .toast-icon { color: var(--c-red); }
.toast--info    .toast-icon { color: var(--c-cyan); }
.toast--warning .toast-icon { color: var(--c-amber); }
.toast-close {
  background: none; border: none; cursor: pointer;
  color: var(--c-text-3); padding: 2px;
  transition: color var(--dur-fast);
}
.toast-close:hover { color: var(--c-text); }

/* ── Pagination ──────────────────────────────────────── */
.pagination { margin-top: var(--sp-10); display: flex; justify-content: center; }
.pagination-list {
  display: flex; gap: var(--sp-1); list-style: none;
  flex-wrap: wrap; justify-content: center;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 var(--sp-3);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text-2);
  text-decoration: none; font-size: var(--fs-sm);
  transition: all var(--dur-fast) var(--ease);
}
.page-btn:hover { color: var(--c-text); border-color: var(--c-border-2); }
.page-btn.active {
  background: var(--grad-main); color: white;
  border-color: transparent;
}
.page-ellipsis { display: flex; align-items: center; color: var(--c-text-3); }

/* ── Empty State ─────────────────────────────────────── */
.empty-state {
  text-align: center; padding: var(--sp-16) var(--sp-8);
}
.empty-state-icon {
  font-size: 4rem; margin-bottom: var(--sp-4);
  display: block;
}
.empty-state h3 {
  font-size: var(--fs-xl); margin-bottom: var(--sp-3);
}
.empty-state p { color: var(--c-text-2); margin-bottom: var(--sp-6); }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-16) 0 var(--sp-8);
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-10);
}
.footer-logo {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xl); font-weight: var(--fw-black);
  text-decoration: none; color: var(--c-text);
  margin-bottom: var(--sp-4);
}
.footer-desc { color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.8; }
.footer-links h4 {
  font-size: var(--fs-sm); font-weight: var(--fw-semi);
  color: var(--c-text); margin-bottom: var(--sp-4);
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: var(--sp-2); }
.footer-links ul li a {
  color: var(--c-text-2); text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--dur-fast);
}
.footer-links ul li a:hover { color: var(--c-purple-light); }
.footer-bottom {
  padding-top: var(--sp-6); border-top: 1px solid var(--c-border);
  text-align: center; color: var(--c-text-3); font-size: var(--fs-xs);
}

/* ── Nav Mobile Toggle ───────────────────────────────── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: var(--sp-2);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); cursor: pointer;
  justify-content: center; align-items: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--c-text-2); border-radius: 1px;
  transition: all var(--dur-base) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Artwork Detail Page ──────────────────────────────── */
.artwork-detail { max-width: 1000px; margin: 0 auto; }
.artwork-viewer {
  background: var(--c-bg2);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  border: 1px solid var(--c-border);
}
.artwork-viewer img, .artwork-viewer video {
  width: 100%; max-height: 70vh; object-fit: contain;
  display: block;
}
.artwork-actions-bar {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.like-btn {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--r-full); cursor: pointer;
  color: var(--c-text-2); font-family: var(--font);
  font-size: var(--fs-sm); transition: all var(--dur-fast);
}
.like-btn svg { width: 18px; height: 18px; }
.like-btn:hover, .like-btn.liked {
  background: rgba(236,72,153,.15);
  border-color: rgba(236,72,153,.4);
  color: var(--c-pink);
}
.like-btn.liked svg { fill: var(--c-pink); }

/* ── Profile Page ────────────────────────────────────── */
.profile-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(124,58,237,.15) 0%, transparent 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-8);
  margin-bottom: var(--sp-8);
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-glow);
}
.profile-header-inner { position: relative; z-index: 1; }
.profile-avatar-wrap {
  position: relative; display: inline-block; margin-bottom: var(--sp-4);
}
.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--c-border-2);
  display: block;
  box-shadow: var(--sh-md);
}
.profile-name {
  font-size: var(--fs-3xl); font-weight: var(--fw-black);
  margin-bottom: var(--sp-1);
}
.profile-username { color: var(--c-text-2); font-size: var(--fs-base); }
.profile-bio {
  margin-top: var(--sp-4); color: var(--c-text-2);
  max-width: 600px; line-height: 1.8;
}
.profile-meta {
  display: flex; gap: var(--sp-6);
  margin-top: var(--sp-5); flex-wrap: wrap;
}
.profile-meta-item {
  display: flex; align-items: center; gap: var(--sp-2);
  color: var(--c-text-2); font-size: var(--fs-sm);
}
.profile-meta-item svg { width: 16px; height: 16px; }
.profile-stats {
  display: flex; gap: var(--sp-6); margin-top: var(--sp-6);
  padding-top: var(--sp-6); border-top: 1px solid var(--c-border);
}
.profile-stat-item { text-align: center; }
.profile-stat-value {
  font-size: var(--fs-2xl); font-weight: var(--fw-black); display: block;
}
.profile-stat-label { font-size: var(--fs-xs); color: var(--c-text-2); }

/* ── Ranking Table ────────────────────────────────────── */
.ranking-table { width: 100%; border-collapse: separate; border-spacing: 0 var(--sp-2); }
.ranking-table thead th {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  color: var(--c-text-3); text-align: right;
}
.ranking-row {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  transition: background var(--dur-fast);
}
.ranking-row:hover { background: var(--c-surface-2); }
.ranking-row td {
  padding: var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.ranking-row td:first-child {
  border-right: 1px solid var(--c-border);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.ranking-row td:last-child {
  border-left: 1px solid var(--c-border);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.ranking-num {
  font-size: var(--fs-xl); font-weight: var(--fw-black);
  color: var(--c-text-3); text-align: center;
}
.ranking-num--gold   { color: #ffd700; }
.ranking-num--silver { color: #aaa; }
.ranking-num--bronze { color: #cd7f32; }
.ranking-user {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none;
}
.ranking-user img {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover;
}
.ranking-user-name { font-weight: var(--fw-semi); color: var(--c-text); }
.ranking-user-province { font-size: var(--fs-xs); color: var(--c-text-3); }
.ranking-score {
  font-size: var(--fs-lg); font-weight: var(--fw-bold);
  color: var(--c-purple-light);
}

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  opacity: 0; visibility: hidden;
  transition: all var(--dur-base) var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: rgba(10,10,25,.95);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  max-width: 560px; width: 100%;
  transform: scale(.96) translateY(10px);
  transition: transform var(--dur-base) var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: var(--sp-6);
}
.modal-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.modal-close {
  width: 32px; height: 32px;
  background: var(--c-surface-2); border: none;
  border-radius: var(--r-full); cursor: pointer;
  color: var(--c-text-2); font-size: var(--fs-xl);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.modal-close:hover { background: var(--c-surface-3); color: var(--c-text); }

/* ── Search Bar ──────────────────────────────────────── */
.search-bar {
  display: flex; gap: var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
  transition: all var(--dur-fast);
}
.search-bar:focus-within {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px var(--c-purple-glow);
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--c-text); font-family: var(--font);
  font-size: var(--fs-base); direction: rtl;
}
.search-bar input::placeholder { color: var(--c-text-3); }

/* ── Filter Sidebar ──────────────────────────────────── */
.filter-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.filter-sidebar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  position: sticky; top: calc(var(--nav-h) + var(--sp-4));
}
.filter-group { margin-bottom: var(--sp-5); }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title {
  font-size: var(--fs-sm); font-weight: var(--fw-semi);
  color: var(--c-text-2); margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--c-border);
}
.filter-checkboxes { display: flex; flex-direction: column; gap: var(--sp-2); }
.filter-checkbox {
  display: flex; align-items: center; gap: var(--sp-2);
  cursor: pointer; font-size: var(--fs-sm); color: var(--c-text-2);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm); transition: background var(--dur-fast);
}
.filter-checkbox:hover { background: var(--c-surface-2); color: var(--c-text); }
.filter-checkbox input { cursor: pointer; accent-color: var(--c-purple); }

/* ── Notification List ────────────────────────────────── */
.notification-item {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur-fast);
  position: relative; cursor: pointer;
}
.notification-item:hover { background: var(--c-surface); }
.notification-item.unread { background: rgba(124,58,237,.05); }
.notification-item.unread::before {
  content: '';
  position: absolute; right: var(--sp-4); top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--c-purple);
}
.notif-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-lg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.notif-text  { font-size: var(--fs-xs); color: var(--c-text-2); margin-top: 2px; }
.notif-time  { font-size: var(--fs-xs); color: var(--c-text-3); margin-top: var(--sp-1); }

/* ── Utility Classes ─────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--c-text-2); }
.text-sm      { font-size: var(--fs-sm); }
.text-xs      { font-size: var(--fs-xs); }
.text-purple  { color: var(--c-purple-light); }
.text-pink    { color: var(--c-pink); }
.text-green   { color: var(--c-green); }
.text-amber   { color: var(--c-amber); }
.text-red     { color: var(--c-red); }
.fw-bold      { font-weight: var(--fw-bold); }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-3        { gap: var(--sp-3); }
.gap-4        { gap: var(--sp-4); }
.mb-4         { margin-bottom: var(--sp-4); }

/* ── Missions UI ─────────────────────────────────────── */
.mission-section {
  position: relative;
  isolation: isolate;
}
.mission-section::before {
  content: '';
  position: absolute; inset: -40px 0 -40px 0;
  background:
    radial-gradient(900px 260px at 85% 30%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(700px 240px at 10% 70%, rgba(236,72,153,.22), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 60%);
  filter: blur(0px);
  z-index: -1;
  pointer-events: none;
}

.mission-spotlight {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-6);
  align-items: stretch;
  margin-top: var(--sp-3);
}
.mission-spotlight .mission-hero-card {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid rgba(124,58,237,.28);
  background: rgba(18,18,35,.55);
  box-shadow: 0 18px 80px rgba(0,0,0,.45);
}
.mission-hero-media {
  position: absolute; inset: 0;
  background: var(--c-bg2);
}
.mission-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); transform: scale(1.02); }
.mission-hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 360px at 75% 40%, rgba(124,58,237,.28), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.25) 55%, rgba(0,0,0,.55));
}
.mission-hero-body {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-4);
}
.mission-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-full);
  background: rgba(124,58,237,.14);
  border: 1px solid rgba(124,58,237,.25);
  color: var(--c-purple-light);
  font-size: var(--fs-xs);
  width: fit-content;
}
.mission-hero-title {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: var(--fw-black);
  line-height: 1.25;
  letter-spacing: -.2px;
}
.mission-hero-desc {
  color: rgba(255,255,255,.78);
  line-height: 1.9;
  max-width: 56ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mission-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.mission-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  font-size: var(--fs-xs);
}
.mission-chip--time { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.22); color: var(--c-purple-light); }
.mission-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mission-hero-actions .btn { backdrop-filter: blur(6px); }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.mission-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(18,18,35,.55);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.mission-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,.28);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.mission-card.is-ended { opacity: .72; }
.mission-card-media { aspect-ratio: 16/9; background: var(--c-bg2); position: relative; overflow: hidden; }
.mission-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.mission-card:hover .mission-card-media img { transform: scale(1.06); }
.mission-card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 60%);
}
.mission-card-body { padding: var(--sp-5); position: relative; }
.mission-card-title { font-weight: var(--fw-black); font-size: var(--fs-lg); line-height: 1.4; }
.mission-card-desc { margin-top: 8px; color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.9; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; overflow:hidden; }
.mission-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  white-space: nowrap;
}
.mission-badge--active { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.12); color: rgba(16,185,129,.95); }
.mission-badge--ended  { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.12); color: rgba(245,158,11,.95); }
.mission-countdown { margin-top: 10px; color: var(--c-purple-light); font-weight: 800; font-size: var(--fs-xs); }

@media (max-width: 980px) {
  .mission-spotlight { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-hero-body { min-height: 280px; }
}

/* ── Explore Page ───────────────────────────────────── */
.explore{
  max-width: 1320px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--sp-6)) var(--sp-6) var(--sp-14);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--sp-8);
}
.explore-sidebar{
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.explore-side-card{
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  background: rgba(18,18,35,.55);
  border: 1px solid rgba(124,58,237,.18);
  box-shadow: 0 18px 70px rgba(0,0,0,.28);
}
.explore-side-title{ font-weight: var(--fw-black); font-size: var(--fs-xl); }
.explore-side-sub{ margin-top: 6px; color: var(--c-text-2); font-size: var(--fs-sm); line-height: 1.9; }
.explore-filters{
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  background: rgba(18,18,35,.55);
  border: 1px solid rgba(255,255,255,.08);
}
.explore-filter{ margin-top: var(--sp-5); }
.explore-filter-title{
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  letter-spacing: .3px;
  margin-bottom: var(--sp-2);
}
.explore-radio{
  display: grid;
  gap: 10px;
}
.explore-radio label{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  color: var(--c-text-2);
}
.explore-radio input{ accent-color: var(--c-purple); }
.explore-actions{
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.explore-main{ min-width: 0; }
.explore-top{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.explore-title{
  font-weight: var(--fw-black);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -.2px;
}
.explore-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.explore-chip{
  padding: 6px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--c-text-2);
  font-size: 11px;
}
.explore-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}
.explore-more{
  display: flex;
  justify-content: center;
  margin-top: var(--sp-10);
}

@media (max-width: 1200px){
  .explore-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px){
  .explore{ grid-template-columns: 1fr; }
  .explore-sidebar{ position: static; }
  .explore-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-top{ flex-direction: column; align-items: flex-start; }
  .explore-chip-row{ justify-content: flex-start; }
}
@media (max-width: 520px){
  .explore{ padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .explore-grid{ grid-template-columns: 1fr; }
}

/* ── Comments ───────────────────────────────────────── */
.comments-card .card-header{ border-bottom: 1px solid var(--c-border); }
.comment-form-title{
  font-weight: 900;
  margin-bottom: 10px;
}
.comment-form--expert{
  border: 1px solid rgba(124,58,237,.28);
  background: linear-gradient(145deg, rgba(124,58,237,.10), rgba(236,72,153,.06));
  padding: var(--sp-5);
  border-radius: var(--r-xl);
}
.comment-list, .expert-opinion-list{
  display:flex;
  flex-direction:column;
  gap: var(--sp-4);
}
.comment-item{
  display:flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.comment-item--expert{
  border-color: rgba(124,58,237,.26);
  background: rgba(124,58,237,.08);
}
.comment-avatar{
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink:0;
}
.comment-body{ flex:1; min-width:0; }
.comment-top{
  display:flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}
.comment-name{
  font-weight: 800;
  font-size: var(--fs-sm);
  display:flex;
  gap: 8px;
  align-items:center;
}
.comment-time{
  font-size: 11px;
  color: var(--c-text-3);
  white-space: nowrap;
}
.comment-badge{
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid rgba(124,58,237,.25);
  background: rgba(124,58,237,.10);
  color: var(--c-purple-light);
}
.comment-text{
  margin-top: 6px;
  color: rgba(255,255,255,.82);
  line-height: 1.9;
  font-size: var(--fs-sm);
  word-break: break-word;
}
.expert-opinion{
  border: 1px solid rgba(124,58,237,.18);
  background: radial-gradient(700px 220px at 85% 0%, rgba(124,58,237,.18), transparent 60%),
              rgba(255,255,255,.02);
  padding: var(--sp-5);
  border-radius: var(--r-2xl);
  margin-bottom: var(--sp-5);
}
.expert-opinion-title{
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--c-purple-light);
}
.mb-6         { margin-bottom: var(--sp-6); }
.mb-8         { margin-bottom: var(--sp-8); }
.mt-4         { margin-top: var(--sp-4); }
.mt-6         { margin-top: var(--sp-6); }
.hidden       { display: none !important; }
.overflow-hidden { overflow: hidden; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { height: 1px; background: var(--c-border); margin: var(--sp-6) 0; }

/* ── Animations ──────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}
@keyframes slideInToast {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg,
    var(--c-surface) 0%, var(--c-surface-2) 50%, var(--c-surface) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--r-sm);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: all .6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { display: block; }
  .hero-content { max-width: none; }
  .hero-visual { display: none; }
  .hero-visual-mobile { display: block; margin-top: var(--sp-8); }
  .filter-wrap { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 var(--sp-4); }
  .nav-toggle { display: flex; }
  .navbar-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,5,15,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column; padding: var(--sp-4);
    gap: var(--sp-2); z-index: 99;
    transform: translateY(-100%); opacity: 0;
    transition: transform var(--dur-base) var(--ease), opacity var(--dur-base);
    visibility: hidden;
  }
  .navbar-nav.open {
    transform: translateY(0); opacity: 1; visibility: visible;
  }
  .nav-link { text-align: right; padding: var(--sp-3) var(--sp-4); }
  .user-name-sm { display: none; }
  .hero { padding: var(--sp-9) 0; min-height: auto; }
  .hero-eyebrow { margin-bottom: var(--sp-5); }
  .hero-subtitle { margin-bottom: var(--sp-6); }
  .hero-visual-mobile { margin-top: var(--sp-7); }
  .artwork-card--hero{ width: 68vw; max-width: 380px; }
  .hero-stats { gap: var(--sp-4); }
  .artwork-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-4); }
  .artist-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-4); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .section-header { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .profile-stats { gap: var(--sp-4); }
  .profile-meta { gap: var(--sp-3); }
  .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-xl { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
  .hero-title { font-size: var(--fs-3xl); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-metrics { font-size: var(--fs-xs); }
  .artwork-card--hero{ width: 84vw; max-width: 420px; }
  .stats-grid { grid-template-columns: 1fr; }
  .artwork-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .artwork-info { padding: var(--sp-3); }
  .artist-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Auth Pages ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: var(--sp-6);
}
.auth-card {
  width: 100%; max-width: 480px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-main);
}
.auth-logo { text-align: center; margin-bottom: var(--sp-8); }
.auth-logo .brand-icon { font-size: 2.5rem; display: block; margin-bottom: var(--sp-2); }
.auth-logo .brand-name { font-size: var(--fs-2xl); }
.auth-title {
  font-size: var(--fs-2xl); font-weight: var(--fw-bold);
  text-align: center; margin-bottom: var(--sp-2);
}
.auth-subtitle { text-align: center; color: var(--c-text-2); margin-bottom: var(--sp-8); }
.auth-footer {
  text-align: center; margin-top: var(--sp-6);
  font-size: var(--fs-sm); color: var(--c-text-2);
}
.auth-footer a { color: var(--c-purple-light); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
  display: flex; align-items: center; gap: var(--sp-4);
  margin: var(--sp-6) 0; color: var(--c-text-3); font-size: var(--fs-xs);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--c-border);
}

/* ── Dashboard ───────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.dashboard-sidebar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  position: sticky; top: calc(var(--nav-h) + var(--sp-4));
}
.sidebar-nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.sidebar-link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: var(--c-text-2); text-decoration: none;
  font-size: var(--fs-sm); transition: all var(--dur-fast);
}
.sidebar-link svg { width: 18px; height: 18px; }
.sidebar-link:hover { color: var(--c-text); background: var(--c-surface-2); }
.sidebar-link.active {
  color: var(--c-purple-light);
  background: rgba(124,58,237,.15);
}
.sidebar-divider { height: 1px; background: var(--c-border); margin: var(--sp-2) 0; }

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

/* ── Tag / Category Chips ────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 3px var(--sp-3); border-radius: var(--r-full);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  color: var(--c-text-2); font-size: var(--fs-xs);
  text-decoration: none; transition: all var(--dur-fast);
  white-space: nowrap;
}
.tag:hover { color: var(--c-purple-light); border-color: rgba(124,58,237,.3); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ── Range Input ─────────────────────────────────────── */
.form-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--c-surface-3); border-radius: 2px; outline: none;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-purple); cursor: pointer;
  box-shadow: 0 0 8px var(--c-purple-glow);
}

/* ── Video Lazy Player ───────────────────────────────── */
.video-lazy-wrap {
  position: relative; aspect-ratio: 16/9;
  background: var(--c-bg2); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer;
}
.video-lazy-wrap .video-poster {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  border: none; cursor: pointer; color: white;
  transition: background var(--dur-fast); padding: 0;
}
.video-play-btn:hover { background: rgba(0,0,0,.65); }
.video-play-btn svg {
  width: 72px; height: 72px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
  transition: transform var(--dur-fast);
}
.video-play-btn:hover svg { transform: scale(1.1); }
.video-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--c-bg2); color: var(--c-text-2);
  gap: var(--sp-3); font-size: var(--fs-sm);
}
.video-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--c-surface-3);
  border-top-color: var(--c-purple); border-radius: 50%;
  animation: videoSpin .8s linear infinite;
}
@keyframes videoSpin { to { transform: rotate(360deg); } }

/* ── Responsive Layout Classes ───────────────────────── */

/* Artwork page: main + sidebar */
.artwork-page-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-8);
  align-items: start;
}

/* 4-column grid for "other works" */
.other-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

/* 2-column grid for ranking cards */
.ranking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

/* 2-column form grid */
.form-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* 3-column form grid */
.form-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-4);
}

/* Avatar upload section */
.avatar-upload-section {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

/* ── Mobile Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .artwork-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Artwork sidebar stacks */
  .artwork-page-grid { grid-template-columns: 1fr; gap: var(--sp-5); }

  /* Other works: 2 columns on mobile */
  .other-works-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }

  /* Ranking cards: stack */
  .ranking-grid { grid-template-columns: 1fr; gap: var(--sp-3); }

  /* Form grids: stack */
  .form-2col-grid { grid-template-columns: 1fr; }
  .form-3col-grid { grid-template-columns: 1fr 1fr; }

  /* Avatar section: stack on mobile */
  .avatar-upload-section { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }

  /* Toast container: full-width on mobile */
  .toast-container { left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); }
  .toast { min-width: 0; width: 100%; }

  /* Navbar improvements */
  .nav-links { gap: var(--sp-2); }
  .nav-link { font-size: var(--fs-xs); padding: var(--sp-1) var(--sp-2); }

  /* Container padding */
  .container { padding-inline: var(--sp-4); }

  /* Page hero font sizes */
  .hero-title { font-size: var(--fs-3xl) !important; }
  .hero-subtitle { font-size: var(--fs-base) !important; }
}

@media (max-width: 480px) {
  .other-works-grid { grid-template-columns: repeat(2, 1fr); }
  .form-3col-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
