* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }

.topbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
    position: sticky; top: 0; z-index: 10;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; text-decoration: none; }
.nav a { color: rgba(255,255,255,0.7); margin-left: 20px; text-decoration: none; }
.nav a:hover { color: #f1f5f9; }

main.container { flex: 1; padding-top: 40px; padding-bottom: 60px; }

.hero { margin-bottom: 30px; }
.hero h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 6px;
}
.hero p { color: rgba(255,255,255,0.65); }

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

.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: #f1f5f9;
    transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.5); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.price { color: #a5b4fc; font-weight: 600; font-size: 1.1rem; }
.meta { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-top: 4px; }

.empty { color: rgba(255,255,255,0.6); }
.empty a { color: #a5b4fc; }

.alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    color: #fecaca;
}
.alert small { display: block; margin-top: 6px; font-family: monospace; font-size: 0.8rem; color: rgba(254, 202, 202, 0.6); }
.alert code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 4px; }

.footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

form { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
form label { font-weight: 500; }
form input, form textarea, form select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #f1f5f9;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
}
form textarea { min-height: 100px; resize: vertical; }
button, .btn {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
button:hover, .btn:hover { opacity: 0.9; }
.btn-secondary { background: rgba(255,255,255,0.08); }
