/* Blockworkz Store — eigen dark theme */
:root {
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --bg: #090b14;
    --bg-2: #0e1120;
    --surface: #131729;
    --surface-2: #1a1f36;
    --border: rgba(255, 255, 255, .07);
    --border-strong: rgba(255, 255, 255, .14);
    --text: #e9ebf8;
    --muted: #8b91b3;
    --success: #22c55e;
    --danger: #f43f5e;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --font: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { padding-top: 40px; padding-bottom: 40px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { margin-bottom: .2em; }
.section-head a:hover { color: var(--accent); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
    cursor: pointer; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
    white-space: nowrap; color: var(--text);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2)));
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
    color: #fff;
}
.btn-primary:hover { box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface-2) 80%, #fff 4%); }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.icon-btn {
    display: inline-grid; place-items: center; width: 32px; height: 32px;
    background: transparent; border: 1px solid var(--border); border-radius: 8px;
    color: var(--muted); cursor: pointer; font: inherit;
}
.icon-btn:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; text-decoration: underline; padding: 0; }
.link-btn:hover { color: var(--danger); }
.inline-form { display: inline; margin: 0; }

/* ---- Topbar & navbar ------------------------------------------------- */
.topbar { background: rgba(0, 0, 0, .3); border-bottom: 1px solid var(--border); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.ip-copy {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; padding: 0;
}
.ip-copy .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }
.ip-hint { color: var(--muted); font-weight: 400; }
@media (max-width: 520px) { .ip-hint { display: none; } }
@keyframes pulse { 50% { opacity: .4; } }
.discord-link { display: inline-flex; align-items: center; gap: 6px; color: #a5b4fc; font-weight: 600; }
.discord-link:hover { color: #c7d2fe; }

.navbar {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.brand img { max-height: 44px; width: auto; }
.brand-mark {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; transition: .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.gm-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--gm, var(--accent)); box-shadow: 0 0 8px var(--gm, var(--accent)); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-chip {
    display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-weight: 600; font-size: .9rem;
}
.user-chip img { border-radius: 7px; image-rendering: pixelated; }
.user-chip > span { padding-right: 2px; }
.user-chip .icon-btn { width: 28px; height: 28px; border: 0; }
.user-chip-lg { padding: 10px; margin-bottom: 16px; }
.user-chip-lg img { width: 36px; height: 36px; }
.basket-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 700;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2)));
    color: #fff;
}
.basket-btn .badge {
    position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 10px;
    background: #fff; color: var(--bg); font-size: .72rem; font-weight: 800;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 960px) {
    .navbar-inner { flex-wrap: wrap; gap: 12px; }
    .nav-toggle { display: flex; order: 3; }
    .nav-actions { order: 2; }
    .nav-links {
        order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch;
        display: none; padding-bottom: 12px;
    }
    .nav-links.open { display: flex; }
    .basket-total { display: none; }
}
@media (max-width: 420px) { .user-chip > span, .brand-name { display: none; } .navbar-inner { gap: 8px; } }

/* ---- Flash ----------------------------------------------------------- */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash {
    padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); border-left: 4px solid var(--accent); transition: opacity .4s;
}
.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--danger); }

/* ---- Hero ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 72px 0 48px; text-align: center; }
.hero-glow {
    position: absolute; inset: -40% 10% auto; height: 420px; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
    filter: blur(20px);
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    background: linear-gradient(180deg, #fff, color-mix(in srgb, #fff 65%, var(--accent)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
    display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    color: color-mix(in srgb, var(--accent) 50%, #fff); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---- Gamemodes ------------------------------------------------------- */
.gm-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gm-card {
    position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end;
    border-radius: 18px; border: 1px solid var(--border); padding: 24px;
    background:
        radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--gm) 30%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--bg-2));
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.gm-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--gm) 55%, transparent);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--gm) 18%, transparent);
}
.gm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; transition: transform .5s, opacity .3s; }
.gm-card:hover .gm-bg { transform: scale(1.05); opacity: .5; }
.gm-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 11, 20, .9), transparent 70%); pointer-events: none; }
.gm-content { position: relative; z-index: 1; }
.gm-icon {
    display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px;
    background: color-mix(in srgb, var(--gm) 20%, transparent); border: 1px solid color-mix(in srgb, var(--gm) 45%, transparent);
    color: var(--gm); font-weight: 800; font-size: 1.3rem;
}
.gm-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.gm-card p { color: var(--muted); margin-bottom: 14px; }
.gm-meta { color: var(--gm); font-weight: 600; font-size: .9rem; }
.gm-meta .arrow { display: inline-block; transition: transform .2s; }
.gm-card:hover .arrow { transform: translateX(4px); }

/* ---- Page head & crumbs ---------------------------------------------- */
.page-head {
    padding: 40px 0 28px; border-bottom: 1px solid var(--border);
    background: radial-gradient(700px 220px at 0% 0%, color-mix(in srgb, var(--gm, var(--accent)) 22%, transparent), transparent 70%);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: .5; }

/* ---- Tabs ------------------------------------------------------------ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-block + .cat-block { margin-top: 44px; }
.cat-block[hidden] { display: none; }

/* ---- Packages -------------------------------------------------------- */
.pkg-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pkg-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pkg-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.pkg-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 22px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.pkg-img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45)); transition: transform .3s; }
.pkg-card:hover .pkg-img { transform: scale(1.06) rotate(-2deg); }
.pkg-img-fallback {
    width: 96px; height: 96px; border-radius: 20px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 2.4rem; font-weight: 800; color: #fff;
}
.pkg-tag {
    position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border-strong); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.tag-sale { background: var(--danger); border-color: var(--danger); color: #fff; }
.pkg-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-top: 1px solid var(--border); flex: 1; }
.pkg-name { margin: 0; font-size: 1.05rem; }
.pkg-name a:hover { color: var(--accent); }
.pkg-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 1.15rem; color: color-mix(in srgb, var(--accent) 35%, #fff); }
.price-old { color: var(--muted); font-size: .9rem; }
.pkg-price.big .price { font-size: 1.8rem; }
.pkg-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.pkg-actions .add-form { flex: 1; }
.pkg-actions .add-form .btn { width: 100%; }

.pkg-list { grid-template-columns: 1fr; }
.pkg-list .pkg-card { flex-direction: row; align-items: center; }
.pkg-list .pkg-media { width: 140px; flex-shrink: 0; aspect-ratio: 1; padding: 14px; }
.pkg-list .pkg-body { border-top: 0; border-left: 1px solid var(--border); flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.pkg-list .pkg-name { flex: 1; min-width: 160px; }
.pkg-list .pkg-actions { margin: 0; padding: 0; }
@media (max-width: 560px) {
    .pkg-list .pkg-card { flex-direction: column; align-items: stretch; }
    .pkg-list .pkg-media { width: 100%; aspect-ratio: 16 / 9; }
    .pkg-list .pkg-body { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---- Package detail -------------------------------------------------- */
.pkg-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .pkg-detail { grid-template-columns: 1fr; } }
.pkg-gallery {
    position: sticky; top: 92px; border-radius: 18px; border: 1px solid var(--border); padding: 32px;
    background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 22%, transparent), var(--bg-2) 70%);
}
@media (max-width: 860px) { .pkg-gallery { position: static; } }
.pkg-hero-img { margin: 0 auto; max-height: 340px; width: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.pkg-hero-img.pkg-img-fallback { width: 160px; height: 160px; font-size: 4rem; }
.thumbs { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.thumbs img:hover { border-color: var(--accent); }
.pkg-info .add-form { display: flex; gap: 10px; margin: 18px 0 24px; flex-wrap: wrap; }
.pkg-info .add-form .btn { flex: 1; min-width: 180px; }
.chip {
    display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
    color: var(--gm); background: color-mix(in srgb, var(--gm) 15%, transparent); border: 1px solid color-mix(in srgb, var(--gm) 40%, transparent);
}

/* ---- Cards & rich text ----------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.rich { overflow-wrap: anywhere; }
.rich > :last-child { margin-bottom: 0; }
.rich a { color: var(--accent); text-decoration: underline; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich img { border-radius: 8px; height: auto; }
.rich table { width: 100%; border-collapse: collapse; }
.rich td, .rich th { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; }
.description { border-top: 1px solid var(--border); padding-top: 20px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.prose { max-width: 820px; }

/* ---- Quantity -------------------------------------------------------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.qty button { width: 38px; background: none; border: 0; color: var(--text); font: inherit; font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input {
    width: 48px; text-align: center; background: none; border: 0; color: var(--text); font: inherit; font-weight: 700;
    -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 30px; }
.qty-sm input { width: 36px; }

/* ---- Basket ---------------------------------------------------------- */
.basket-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-top: 16px; }
@media (max-width: 900px) { .basket-layout { grid-template-columns: 1fr; } }
.basket-items { display: grid; gap: 12px; }
.basket-item { display: flex; align-items: center; gap: 16px; padding: 14px; flex-wrap: wrap; }
.basket-img { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.basket-img.pkg-img-fallback { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 12px; }
.basket-item-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.basket-item-name { font-weight: 700; }
.basket-item-name:hover { color: var(--accent); }
.basket-line { min-width: 90px; text-align: right; }
.basket-summary { position: sticky; top: 92px; }
.totals { margin: 0 0 16px; }
.totals div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals .total { border-bottom: 0; font-size: 1.2rem; }
.totals .total dt { color: var(--text); font-weight: 700; }
.totals .total dd { font-weight: 800; }
.applied {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 8px 12px; margin-bottom: 8px; border-radius: 8px; font-size: .9rem;
    background: color-mix(in srgb, var(--success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
}
.codes { margin: 8px 0 18px; }
.codes summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 6px 0; }
.codes summary:hover { color: var(--text); }
.code-form { display: flex; gap: 8px; margin-top: 8px; }
.code-form input {
    flex: 1; min-width: 0; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-2); color: var(--text); font: inherit;
}
.code-form input:focus { outline: none; border-color: var(--accent); }

/* ---- Empty / login / perks ------------------------------------------- */
.center-page { display: grid; place-items: center; min-height: 50vh; }
.empty-state { text-align: center; max-width: 520px; margin: 0 auto; padding: 40px 0; }
.empty-icon {
    width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px;
    background: var(--surface-2); border: 1px solid var(--border); font-size: 1.8rem; font-weight: 800;
}
.empty-icon.success { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.login-card { width: 100%; max-width: 420px; text-align: center; }
.login-options { display: grid; gap: 10px; margin-top: 20px; }
.perks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.perk { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }

/* ---- Footer ---------------------------------------------------------- */
.footer { margin-top: 40px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, .25); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 20px; flex-wrap: wrap; }
.footer-inner > div:first-child { max-width: 520px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-bottom: 24px; }

.demo-bar { background: #f59e0b; color: #1a1200; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px; }
.demo-bar code { background: rgba(0, 0, 0, .12); padding: 1px 6px; border-radius: 4px; }

.login-avatar { margin: 0 auto 16px; border-radius: 14px; image-rendering: pixelated; background: var(--surface-2); border: 1px solid var(--border); }
.login-form { display: grid; gap: 12px; margin: 20px 0 14px; }
.login-form input {
    padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2);
    color: var(--text); font: inherit; font-size: 1.05rem; text-align: center;
}
.login-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.login-card .flash { margin-top: 12px; text-align: left; }
.pkg-gm { font-size: .72rem; font-weight: 700; color: var(--gm); text-transform: uppercase; letter-spacing: .04em; }

/* ---- Stemmen --------------------------------------------------------- */
.vote-head { --gm: #22c55e; }
.vote-intro { max-width: 680px; }
.px { image-rendering: pixelated; border-radius: 4px; }
.vote-progress { margin-top: 24px; max-width: 680px; padding: 18px 20px; }
.vote-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.vote-progress-top strong { font-size: 1.1rem; }
.vote-bar { height: 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.vote-bar span {
    display: block; height: 100%; width: 0; border-radius: inherit; transition: width .5s ease;
    background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 50%, var(--accent-2)));
    box-shadow: 0 0 12px color-mix(in srgb, var(--success) 60%, transparent);
}
.vote-progress-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.vote-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vote-card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 22px; border-radius: 16px; border: 1px solid var(--border);
    background:
        radial-gradient(260px 140px at 100% 0%, color-mix(in srgb, var(--vc) 26%, transparent), transparent 70%),
        linear-gradient(180deg, var(--surface), var(--bg-2));
    transition: transform .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.vote-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--vc) 55%, transparent); box-shadow: 0 16px 32px color-mix(in srgb, var(--vc) 16%, transparent); }
.vote-num {
    position: absolute; top: 10px; right: 16px; font-size: 3.2rem; font-weight: 800; line-height: 1;
    color: color-mix(in srgb, var(--vc) 22%, transparent); pointer-events: none;
}
.vote-logo {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 14px;
    background: color-mix(in srgb, var(--vc) 16%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--vc) 40%, transparent);
}
.vote-logo:empty::before { content: "★"; color: var(--vc); font-size: 1.4rem; }
.vote-logo img { border-radius: 6px; }
.vote-name { font-weight: 700; font-size: 1.1rem; }
.vote-host { overflow-wrap: anywhere; }
.vote-cta { margin-top: 14px; font-weight: 700; color: var(--vc); }
.vote-cta-done { display: none; color: var(--success); }
.vote-card.voted { opacity: .65; }
.vote-card.voted .vote-cta-open { display: none; }
.vote-card.voted .vote-cta-done { display: inline; }
.vote-card.voted .vote-logo { background: color-mix(in srgb, var(--success) 15%, var(--surface-2)); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.vote-note { margin-top: 18px; }
.vote-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-num {
    display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 20%, transparent); color: color-mix(in srgb, var(--accent) 50%, #fff); font-weight: 800;
}
