* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f0f14;
    color: #f1f1f3;
    line-height: 1.5;
}

a { color: inherit; }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #16161d;
    border-bottom: 1px solid #2a2a35;
}

nav .brand {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: #ff5c8a;
}

nav .links a, nav .links button {
    margin-left: 1rem;
    text-decoration: none;
    color: #f1f1f3;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

nav .links a.cta, nav .links button.cta {
    background: #ff5c8a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; margin: 1.5rem 0 0.75rem; }
p.subtitle { color: #9b9ba8; margin-bottom: 2rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #1b1b24;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #2a2a35;
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: #9b9ba8; font-size: 0.9rem; flex-grow: 1; margin-bottom: 1rem; }

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff5c8a;
    margin-bottom: 0.75rem;
}

button.buy, a.buy {
    background: #ff5c8a;
    color: #fff;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

button.buy:hover, a.buy:hover { background: #ff3d75; }

.badge-owned {
    background: #2a2a35;
    color: #6ee7b7;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

form.auth {
    max-width: 360px;
    margin: 3rem auto;
    background: #1b1b24;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    padding: 2rem;
}

form.auth label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: #9b9ba8; }
form.auth input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    background: #0f0f14;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    color: #f1f1f3;
}

form.auth button {
    width: 100%;
    background: #ff5c8a;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.error { color: #ff6b6b; background: #2a1a1f; padding: 0.75rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.success { color: #6ee7b7; background: #1a2a22; padding: 0.75rem; border-radius: 6px; margin-bottom: 1rem; }

.link-box {
    background: #0f0f14;
    border: 1px solid #2a2a35;
    border-radius: 6px;
    padding: 0.75rem;
    word-break: break-all;
    font-family: monospace;
    margin-top: 0.5rem;
}

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.6rem; border-bottom: 1px solid #2a2a35; }
th { color: #9b9ba8; font-weight: 600; font-size: 0.85rem; }

.muted { color: #9b9ba8; }
