:root {
--primary: #7c3aed;
--primary-hover: #6d28d9;
--primary-glow: rgba(124,58,237,0.25);
--bg: #0a0a1a;
--bg-card: rgba(20,20,40,0.95);
--bg-card-hover: rgba(30,30,55,0.98);
--bg-surface: rgba(25,25,50,0.9);
--border: rgba(255,255,255,0.08);
--border-hover: rgba(124,58,237,0.4);
--text: #ffffff;
--text-muted: #9ca3af;
--text-dim: #94a3b8;
--success: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}
body::before {
content: '';
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 60%);
pointer-events: none;
z-index: 0;
}

/* Hero section — compact toolbar */
.vote-hero {
position: relative; z-index: 10;
padding: 20px 24px 0;
display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.vote-hero-left { display: flex; align-items: center; gap: 14px; }
.vote-hero h1 {
font-size: 1.2rem; font-weight: 800;
background: linear-gradient(135deg, #c4b5fd, #7c3aed);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text; white-space: nowrap;
}
.vote-hero p { display: none; }
.vote-hero-right { display: flex; align-items: center; gap: 10px; }
.vote-hero-search { position: relative; }
.vote-hero-search input {
padding: 7px 14px 7px 34px; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
border-radius: 8px; color: var(--text); font-size: 0.78rem; font-family: inherit; width: 360px; outline: none; transition: border-color 0.15s;
}
.vote-hero-search input:focus { border-color: rgba(124,58,237,0.4); }
.vote-hero-search input::placeholder { color: var(--text-muted); }
.vote-hero-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-muted); pointer-events: none; }
.vote-power {
display: inline-flex; align-items: center; gap: 6px;
padding: 7px 14px; background: rgba(124,58,237,0.1);
border: 1px solid rgba(124,58,237,0.2); border-radius: 8px;
font-size: 0.78rem; font-weight: 600; color: #c4b5fd; white-space: nowrap;
}
.vote-power .power-value { font-size: 0.95rem; font-weight: 800; color: #a78bfa; }
.vote-power-hidden { display: none; }

/* Sort bar */
.sort-bar {
display: flex; align-items: center; justify-content: space-between; gap: 16px;
padding: 0 24px 16px;
position: relative; z-index: 1;
}
.sort-bar-left { display: flex; align-items: center; gap: 10px; }
.sort-bar-right { display: flex; align-items: center; gap: 8px; }
.sort-bar .collection-count { font-size: 0.8rem; color: var(--text-muted); }
.sort-select {
padding: 6px 28px 6px 10px; background: #1a1a2e; border: 1px solid var(--border);
border-radius: 8px; color: var(--text); font-size: 0.8rem; outline: none; cursor: pointer;
appearance: none; font-family: inherit;
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='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 8px center;
}
.sort-select option { background: #1a1a2e; color: #fff; }

/* Collection grid — auto-fill at the same ~220px card width as the
   home-page voting strip (.vbanner-card flex-basis: 220px) so cards
   look consistent across both surfaces. */
.vote-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 12px;
padding: 0 24px 60px;
position: relative; z-index: 1;
}
@media (max-width: 550px) { .vote-grid { grid-template-columns: repeat(2, 1fr); } }

/* Vote card */
.vote-card {
background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
overflow: hidden; transition: all 0.2s; position: relative;
}
.vote-card:hover {
transform: translateY(-3px); border-color: var(--border-hover);
box-shadow: 0 8px 24px rgba(124,58,237,0.1);
}
.vote-card-img {
width: 100%; aspect-ratio: 1.2; object-fit: cover; display: block;
background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(59,130,246,0.1));
}
.vote-card-img-wrap { position: relative; overflow: hidden; }
.vote-pending-badge {
position: absolute; bottom: 6px; right: 6px;
padding: 3px 8px; border-radius: 4px;
background: rgba(0,0,0,0.7); border: 1px solid rgba(245,158,11,0.5);
font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
letter-spacing: 0.5px; color: #fbbf24;
}
.vote-card-body { padding: 10px 12px; }
.vote-card-name {
font-size: 0.82rem; font-weight: 700;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
margin-bottom: 4px;
}
.vote-card-meta {
display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.vote-card-meta span {
font-size: 0.65rem; color: var(--text-muted);
display: flex; align-items: center; gap: 3px;
}
.vote-card-meta a {
color: var(--text-muted); text-decoration: none; transition: color 0.15s;
display: flex; align-items: center; gap: 3px; font-size: 0.65rem;
}
.vote-card-meta a:hover { color: #c4b5fd; }

/* Vote bar */
.vote-bar {
display: flex; align-items: center; justify-content: space-between;
gap: 8px;
}
.vote-count {
display: flex; align-items: center; gap: 4px;
font-size: 0.78rem; font-weight: 700; color: #c4b5fd;
}
.vote-count svg { width: 14px; height: 14px; }
.voter-count { font-size: 0.7rem; color: var(--text-dim); font-weight: 500; }
.vote-btn {
display: flex; align-items: center; gap: 4px;
padding: 6px 14px; border-radius: 8px;
font-size: 0.72rem; font-weight: 700; font-family: inherit;
cursor: pointer; transition: all 0.2s;
border: 1px solid rgba(124,58,237,0.3);
background: linear-gradient(135deg, var(--primary), #6d28d9);
color: white;
}
.vote-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); }
.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.vote-btn.voted {
background: rgba(16,185,129,0.15);
border-color: rgba(16,185,129,0.3);
color: #6ee7b7;
}
.vote-btn.voted:hover {
background: rgba(16,185,129,0.25);
border-color: rgba(16,185,129,0.5);
color: #6ee7b7;
box-shadow: none; transform: none;
}
.vote-btn svg { width: 12px; height: 12px; }

/* Rank badge */
.vote-rank {
position: absolute; top: 12px; left: 12px;
background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px; padding: 4px 10px;
font-size: 0.72rem; font-weight: 800; color: var(--text-muted);
}
.vote-rank.top3 { color: #fbbf24; border-color: rgba(251,191,36,0.3); }

/* Empty state */
.empty-state {
text-align: center; padding: 60px 24px;
color: var(--text-muted); position: relative; z-index: 1;
}
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.empty-state p { margin-bottom: 20px; }
.empty-cta {
display: inline-flex; align-items: center; gap: 6px;
padding: 10px 24px; background: linear-gradient(135deg, var(--primary), #6d28d9);
border: none; border-radius: 10px; color: white; font-size: 0.85rem;
font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.empty-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow); }

/* Skeleton */
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.skeleton-img { aspect-ratio: 1; background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 100%); background-size: 400px 100%; animation: shimmer 1.5s infinite; }
.skeleton-body { padding: 14px 16px; }
.skeleton-line { height: 14px; border-radius: 6px; background: rgba(255,255,255,0.05); margin-bottom: 10px; animation: shimmer 1.5s infinite; background-size: 400px 100%; background-image: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 100%); }
.skeleton-line.short { width: 60%; }
.skeleton-line.btn { width: 40%; height: 32px; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 10px 16px; border-radius: 10px; font-size: 0.82rem; font-weight: 500; backdrop-filter: blur(12px); animation: toastIn 0.3s; }
.toast.success { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.toast.error { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Page tabs */
.page-tabs {
display: flex; align-items: center; gap: 4px;
padding: 12px 24px 16px; position: relative; z-index: 2;
}
.page-tab {
padding: 6px 16px; border-radius: 8px; font-size: 0.78rem; font-weight: 600;
font-family: inherit; cursor: pointer; transition: all 0.2s;
border: 1px solid var(--border); background: transparent; color: var(--text-muted);
}
.page-tab:hover { border-color: rgba(124,58,237,0.3); color: var(--text); }
.page-tab.active { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.4); color: #c4b5fd; }

/* Suggestions list */
.suggestions-panel { position: relative; z-index: 1; padding: 0 24px 60px; display: none; max-width: 700px; margin: 0 auto; }
.suggestion-row {
display: flex; align-items: center; gap: 14px; padding: 12px 16px;
background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
margin-bottom: 10px; transition: border-color 0.2s;
}
.suggestion-row:hover { border-color: rgba(124,58,237,0.3); }
.suggestion-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.05); }
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-name { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.suggestion-count {
display: flex; align-items: center; gap: 6px; font-size: 0.95rem; font-weight: 800;
color: #c4b5fd; min-width: 50px; justify-content: center;
}
.suggestion-count svg { width: 16px; height: 16px; opacity: 0.6; }
.upvote-btn {
padding: 7px 16px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;
font-family: inherit; cursor: pointer; transition: all 0.2s;
border: 1px solid rgba(124,58,237,0.3); background: linear-gradient(135deg, var(--primary), #6d28d9);
color: white; white-space: nowrap;
}
.upvote-btn:hover { box-shadow: 0 2px 12px var(--primary-glow); transform: translateY(-1px); }
.upvote-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; }
.upvote-btn.voted { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.suggestions-empty { text-align: center; padding: 40px 24px; color: var(--text-muted); font-size: 0.9rem; }

/* Suggest section */
.suggest-section { position: relative; z-index: 2; padding: 0 24px 24px; }
.suggest-card { background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.2); border-radius: 16px; padding: 20px 24px; max-width: 600px; margin: 0 auto; }
.suggest-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: #c4b5fd; }
.suggest-header h3 { font-size: 1rem; font-weight: 700; color: #c4b5fd; margin: 0; }
.suggest-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
.suggest-search-wrap { position: relative; }
.suggest-input { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; font-size: 0.88rem; font-family: inherit; outline: none; }
.suggest-input:focus { border-color: rgba(124,58,237,0.5); }
.suggest-input::placeholder { color: rgba(255,255,255,0.3); }
.suggest-results { position: absolute; top: calc(100% + 4px); left: 0; min-width: 360px; background: #1a1a2e; border: 1px solid rgba(124,58,237,0.3); border-radius: 12px; max-height: 360px; overflow-y: auto; z-index: 1000; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.suggest-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.suggest-result-item:last-child { border-bottom: none; }
.suggest-result-item:hover { background: rgba(124,58,237,0.1); }
.suggest-result-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,0.05); flex-shrink: 0; }
.suggest-result-info { flex: 1; min-width: 0; }
.suggest-result-name { font-size: 0.88rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-result-meta { font-size: 0.72rem; color: var(--text-muted); display: flex; gap: 10px; }
.suggest-result-btn { padding: 6px 14px; border-radius: 8px; font-size: 0.76rem; font-weight: 700; border: 1px solid rgba(124,58,237,0.3); background: linear-gradient(135deg, var(--primary), #6d28d9); color: white; cursor: pointer; font-family: inherit; white-space: nowrap; transition: all 0.2s; }
.suggest-result-btn:hover { box-shadow: 0 2px 12px var(--primary-glow); }
.suggest-result-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.suggest-no-results { padding: 16px; text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.suggest-login-hint { font-size: 0.8rem; color: var(--text-muted); text-align: center; padding: 8px 0 0; }

/* Mobile */
@media (max-width: 768px) {
.vote-hero { padding: 16px; flex-direction: column; align-items: flex-start; }
.vote-hero h1 { font-size: 1.1rem; }
.vote-hero-right { width: 100%; }
.vote-hero-search input { width: 100%; }
.sort-bar { padding: 0 16px 12px; flex-wrap: wrap; }
.vote-grid { padding: 0 16px 40px; gap: 10px; }
}