@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #5a6c7d;
  --text-muted: #8a9aab;
  --accent-cyan: #4f46e5;
  --accent-coral: #ec4899;
  --accent-violet: #8b5cf6;
  --accent-gold: #ffd700;
  --border-color: #e1e8ed;
  --border-light: #d1d9e0;
  --gradient-cyan: linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-coral: linear-gradient(135deg, #ec4899, #f43f5e);
  --gradient-violet: linear-gradient(135deg, #8b5cf6, #a855f7);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.15);
  --shadow-glow-cyan: 0 0 40px rgba(79,70,229,0.2);
  --shadow-glow-coral: 0 0 40px rgba(236,72,153,0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --container-max: 1280px;
  --header-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent-cyan) var(--bg-tertiary); }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }
::selection { background: var(--accent-cyan); color: #ffffff; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }

body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; 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)' opacity='0.015'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; }

/* HEADER */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); z-index: 1000; transition: all var(--transition-smooth); }
.site-header.scrolled { background: rgba(255,255,255,0.98); box-shadow: var(--shadow-md); }
.header-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.logo-mark { width: 36px; height: 36px; background: var(--gradient-cyan); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 900; color: #ffffff; transform: rotate(-3deg); transition: transform var(--transition-spring); }
.logo:hover .logo-mark { transform: rotate(0deg) scale(1.05); }
.logo span { color: var(--accent-cyan); }
.nav-main { display: flex; align-items: center; gap: 20px; }
.nav-main a { font-size: 0.84rem; font-weight: 500; color: var(--text-secondary); position: relative; padding: 4px 0; transition: color var(--transition-fast); }
.nav-main a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--accent-cyan); transition: width var(--transition-smooth); }
.nav-main a:hover, .nav-main a.active { color: var(--text-primary); }
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; position: relative; overflow: hidden; }
.btn-primary { 
  background: linear-gradient(135deg, #4f46e5, #7c3aed); 
  color: #ffffff; 
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
  border: 2px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { color: #ffffff; }
.btn-primary:hover { 
  background: linear-gradient(135deg, #4338ca, #6d28d9); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(79,70,229,0.4);
}
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px 16px; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.btn-coral { background: var(--accent-coral); color: #ffffff; }
.btn-coral:hover { background: #db2777; transform: translateY(-1px); box-shadow: var(--shadow-glow-coral); }
.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); }

main { padding-top: var(--header-height); min-height: 100vh; }

/* HERO */
.hero { position: relative; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: orbFloat 8s ease-in-out infinite; }
.hero-bg .orb-1 { width: 400px; height: 400px; background: var(--accent-cyan); top: -100px; right: 10%; opacity: 0.03; }
.hero-bg .orb-2 { width: 300px; height: 300px; background: var(--accent-coral); bottom: -50px; left: 5%; opacity: 0.04; animation-delay: -3s; }
.hero-bg .orb-3 { width: 200px; height: 200px; background: var(--accent-violet); top: 30%; left: 40%; opacity: 0.03; animation-delay: -5s; }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -20px) scale(1.05); } 66% { transform: translate(-20px, 15px) scale(0.95); } }

.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-text { max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(79,70,229,0.08); border: 1px solid rgba(0,245,212,0.2); border-radius: 100px; font-size: 0.8rem; font-weight: 500; color: var(--accent-cyan); margin-bottom: 32px; animation: fadeInUp 0.6s ease-out; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent-cyan); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; animation: fadeInUp 0.6s ease-out 0.1s both; }
.hero h1 .highlight { position: relative; display: inline-block; }
.hero h1 .highlight::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 12px; background: var(--accent-cyan); opacity: 0.15; border-radius: 2px; z-index: -1; }
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 40px; animation: fadeInUp 0.6s ease-out 0.2s both; }
.hero-actions { display: flex; gap: 16px; animation: fadeInUp 0.6s ease-out 0.3s both; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border-color); animation: fadeInUp 0.6s ease-out 0.4s both; }
.stat-item .stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-item .stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.hero-visual { position: relative; animation: fadeInUp 0.8s ease-out 0.3s both; }
.hero-cards { position: relative; height: 420px; }
.floating-card { position: absolute; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; transition: all var(--transition-smooth); animation: cardFloat 6s ease-in-out infinite; }
.floating-card:hover { transform: translateY(-4px); border-color: var(--accent-cyan); box-shadow: 0 8px 24px rgba(79,70,229,0.12); }
.floating-card.card-1 { top: 0; left: 0; width: 280px; }
.floating-card.card-2 { top: 60px; right: 0; width: 260px; animation-delay: -2s; }
.floating-card.card-3 { bottom: 20px; left: 40px; width: 300px; animation-delay: -4s; }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floating-card .card-tag { display: inline-block; padding: 3px 10px; font-size: 0.7rem; font-weight: 600; border-radius: 100px; margin-bottom: 12px; }
.tag-dev { background: rgba(79,70,229,0.1); color: var(--accent-cyan); }
.tag-ai { background: rgba(139,92,246,0.1); color: var(--accent-violet); }
.floating-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.floating-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.floating-card .card-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-color); font-size: 0.75rem; color: var(--text-muted); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* SECTIONS */
.section { padding: 80px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.section-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.section-desc { color: var(--text-secondary); font-size: 0.95rem; max-width: 480px; margin-top: 12px; }

/* CATEGORIES */
.categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.category-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 48px; overflow: hidden; transition: all var(--transition-smooth); cursor: pointer; }
.category-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; transition: all var(--transition-smooth); }
.category-card.dev::before { background: var(--gradient-cyan); }
.category-card.ai::before { background: var(--gradient-violet); }
.category-card:hover { transform: translateY(-4px); border-color: transparent; }
.category-card.dev:hover { box-shadow: var(--shadow-glow-cyan); border-color: rgba(0,245,212,0.3); }
.category-card.ai:hover { box-shadow: var(--shadow-glow-coral); border-color: rgba(179,136,255,0.3); }
.category-icon { width: 64px; height: 64px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 24px; transition: transform var(--transition-spring); }
.category-card:hover .category-icon { transform: scale(1.1) rotate(-3deg); }
.category-card.dev .category-icon { background: rgba(79,70,229,0.1); }
.category-card.ai .category-icon { background: rgba(139,92,246,0.1); }
.category-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.category-card .category-desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; margin-bottom: 24px; }
.category-meta { display: flex; gap: 24px; }
.category-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.category-meta-item strong { color: var(--text-primary); font-weight: 600; }
.category-arrow { position: absolute; bottom: 48px; right: 48px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all var(--transition-smooth); }
.category-card:hover .category-arrow { background: var(--accent-cyan); border-color: var(--accent-cyan); color: #ffffff; transform: translateX(4px); }
.category-card.ai:hover .category-arrow { background: var(--accent-violet); border-color: var(--accent-violet); }

/* LISTINGS */
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px; transition: all var(--transition-smooth); cursor: pointer; position: relative; }
.listing-card:hover { transform: translateY(-3px); border-color: rgba(79,70,229,0.2); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.listing-card .listing-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.listing-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; font-size: 0.72rem; font-weight: 600; border-radius: 100px; }
.listing-tag.dev { background: rgba(79,70,229,0.08); color: var(--accent-cyan); }
.listing-tag.ai { background: rgba(139,92,246,0.08); color: var(--accent-violet); }
.listing-type { font-size: 0.72rem; color: var(--text-muted); padding: 3px 10px; background: var(--bg-tertiary); border-radius: 100px; }
.listing-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; transition: color var(--transition-fast); }
.listing-card:hover h3 { color: #4338ca; }
.listing-card .listing-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-color); }
.listing-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #7c3aed); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; color: #ffffff; }
.author-name { font-size: 0.8rem; font-weight: 500; }
.listing-date { font-size: 0.75rem; color: var(--text-muted); }
.listing-price { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: var(--accent-coral); }

/* FEATURES BAR */
.features-bar { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 48px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature-item { text-align: center; }
.feature-icon { font-size: 1.6rem; margin-bottom: 16px; }
.feature-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.feature-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* LIST PAGE */
.page-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border-color); }
.page-header .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb .sep { color: var(--text-muted); }
.page-header h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.page-header .page-desc { color: var(--text-secondary); margin-top: 8px; font-size: 0.95rem; }
.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0 80px; }
.filter-sidebar { position: sticky; top: calc(var(--header-height) + 24px); align-self: start; }
.filter-group { margin-bottom: 32px; }
.filter-group h4 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); transition: color var(--transition-fast); }
.filter-option:hover { color: var(--text-primary); }
.filter-checkbox { width: 18px; height: 18px; border: 1.5px solid var(--border-light); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); flex-shrink: 0; }
.filter-option.active .filter-checkbox { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.filter-option.active .filter-checkbox::after { content: '\2713'; font-size: 0.7rem; color: #ffffff; font-weight: 700; }
.filter-count { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }

/* DETAIL PAGE */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 48px 0 80px; }
.detail-content { max-width: 720px; }
.detail-content .detail-tag { margin-bottom: 16px; }
.detail-content h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px; }
.detail-meta { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 32px; }
.detail-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.detail-body { font-size: 1rem; line-height: 1.9; color: var(--text-secondary); }
.detail-body p { margin-bottom: 20px; }
.detail-body h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 40px 0 16px; }
.detail-body ul { margin: 16px 0; padding-left: 24px; }
.detail-body li { margin-bottom: 8px; }
.detail-body code { background: var(--bg-tertiary); font-family: var(--font-mono); font-size: 0.88rem; background: var(--bg-tertiary); padding: 2px 8px; border-radius: 4px; color: var(--accent-cyan); }
.detail-sidebar { position: sticky; top: calc(var(--header-height) + 24px); align-self: start; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 20px; }
.author-card { text-align: center; }
.author-card .author-avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 600; color: var(--text-secondary); margin: 0 auto 16px; }
.author-card .author-name-lg { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.author-card .author-bio { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.info-list { list-style: none; }
.info-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--text-muted); }
.info-list .value { font-weight: 500; }

/* AUTH */
.auth-page { min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-container { width: 100%; max-width: 440px; }
.auth-header { text-align: center; margin-bottom: 40px; }
.auth-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 0.92rem; }
.auth-form { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.92rem; transition: all var(--transition-fast); outline: none; }
.form-input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-select { width: 100%; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.92rem; outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-textarea { width: 100%; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.92rem; outline: none; resize: vertical; min-height: 120px; transition: all var(--transition-fast); }
.form-textarea:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-cyan); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent-cyan); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 28px 0; color: var(--text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); }
.social-btn:hover { border-color: var(--border-light); color: var(--text-primary); background: var(--bg-tertiary); }

/* PUBLISH */
.publish-page { padding: 48px 0 80px; }
.publish-container { max-width: 720px; margin: 0 auto; }
.publish-header { margin-bottom: 40px; }
.publish-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.publish-header p { color: var(--text-secondary); font-size: 0.95rem; }
.publish-form { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 48px; }
.form-section { margin-bottom: 40px; }
.form-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; }
.form-section-title .step-num { width: 24px; height: 24px; background: var(--accent-cyan); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.tag-selector { display: flex; gap: 12px; flex-wrap: wrap; }
.tag-option { padding: 8px 20px; border: 1px solid var(--border-color); border-radius: 100px; font-size: 0.85rem; cursor: pointer; transition: all var(--transition-fast); color: var(--text-secondary); }
.tag-option:hover { border-color: var(--border-light); color: var(--text-primary); }
.tag-option.active { background: var(--accent-cyan); border-color: var(--accent-cyan); color: #ffffff; font-weight: 600; }
.tag-option.active.ai { background: var(--accent-violet); border-color: var(--accent-violet); }
.image-upload { border: 2px dashed var(--border-color); border-radius: var(--radius-md); padding: 40px; text-align: center; cursor: pointer; transition: all var(--transition-fast); }
.image-upload:hover { border-color: var(--accent-cyan); background: rgba(0,245,212,0.02); }
.image-upload .upload-icon { font-size: 2rem; margin-bottom: 12px; }
.image-upload p { font-size: 0.88rem; color: var(--text-secondary); }
.image-upload .upload-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }
.publish-actions { display: flex; gap: 16px; justify-content: flex-end; padding-top: 24px; border-top: 1px solid var(--border-color); }

/* FOOTER */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.88rem; color: var(--text-secondary); transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--text-muted); }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); background: transparent; }
.page-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.page-btn.active { background: var(--accent-cyan); border-color: var(--accent-cyan); color: #ffffff; font-weight: 600; }

/* TOOLBAR */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.list-toolbar .result-count { font-size: 0.88rem; color: var(--text-muted); }
.list-toolbar .result-count strong { color: var(--text-primary); }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.sort-select { padding: 8px 32px 8px 12px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.82rem; font-family: var(--font-body); appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; outline: none; }
.view-toggle { display: flex; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.view-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); }
.view-btn.active { background: var(--bg-tertiary); color: var(--accent-cyan); }

/* USER MENU */
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 100px; cursor: pointer; transition: all var(--transition-fast); }
.user-trigger:hover { border-color: var(--border-light); }
.user-trigger .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-cyan); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #ffffff; }
.user-trigger .name { font-size: 0.82rem; font-weight: 500; }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 8px; min-width: 200px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition-fast); }
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary); transition: all var(--transition-fast); }
.user-dropdown a:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.user-dropdown .divider { height: 1px; background: var(--border-color); margin: 6px 0; }

/* SEARCH */
.search-bar { display: flex; align-items: center; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 4px; max-width: 560px; margin: 0 auto; transition: all var(--transition-fast); }
.search-bar:focus-within { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(79,70,229,0.08); }
.search-bar input { flex: 1; padding: 12px 20px; background: transparent; border: none; color: var(--text-primary); font-family: var(--font-body); font-size: 0.95rem; outline: none; }
.search-bar input::placeholder { color: var(--text-muted); }

/* TOAST */
.toast-container { position: fixed; top: calc(var(--header-height) + 16px); right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 24px; display: flex; align-items: center; gap: 12px; font-size: 0.88rem; box-shadow: var(--shadow-lg); animation: toastIn 0.4s ease-out; min-width: 280px; }
.toast.success { border-left: 3px solid var(--accent-cyan); }
.toast.error { border-left: 3px solid var(--accent-coral); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* MOBILE NAV */
.mobile-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: none; color: var(--text-primary); font-size: 1.2rem; cursor: pointer; }

/* SUCCESS */
.success-checkmark { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: rgba(79,70,229,0.1); display: flex; align-items: center; justify-content: center; animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.success-checkmark .check { font-size: 2rem; color: var(--accent-cyan); }
@keyframes successPop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* PAGE TRANSITIONS */
.page-enter { animation: pageEnter 0.5s ease-out; }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }
.stagger-in > * { opacity: 0; animation: fadeInUp 0.5s ease-out forwards; }
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(9) { animation-delay: 0.45s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-main { display: none; }
  .mobile-toggle { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .publish-form { padding: 28px; }
  .auth-form { padding: 28px; }
}

/* PROMINENT PUBLISH BUTTON */
.nav-publish {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
  transition: all var(--transition-fast) !important;
}
.nav-publish::after { display: none !important; }
.nav-publish:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4) !important;
  background: linear-gradient(135deg, #4338ca, #6d28d9) !important;
}
.nav-publish-btn {
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
  50% { box-shadow: 0 4px 24px rgba(79,70,229,0.5); }
}

/* MALL NAV BUTTON */
.nav-mall {
  background: linear-gradient(135deg, #ff6b35, #e63946) !important;
  color: #ffffff !important;
  padding: 6px 16px !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
  font-weight: 600 !important;
  animation: mallPulse 2.5s ease-in-out infinite;
}
.nav-mall::after { display: none !important; }
.nav-mall:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,53,0.4) !important;
}
@keyframes mallPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(255,107,53,0.3); }
  50% { box-shadow: 0 2px 16px rgba(255,107,53,0.5); }
}
