:root {
    --primary: #0b1f3a;
    --secondary: #d4af37;
    --bg: #f5f7fb;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    opacity: 0.85;
}

.topbar {
    background: var(--primary);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    font-size: 14px;
}

.wrap {
    padding: 24px;
}

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
    border: 1px solid var(--border);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.btn-secondary {
    background: var(--secondary);
    color: #111827;
}

.btn-danger {
    background: #7f1d1d;
    color: #fff;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 6px;
    margin-bottom: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}

th {
    background: var(--primary);
    color: #fff;
}

.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge.active,
.badge.paid,
.badge.released,
.badge.approved {
    background: #d4edda;
    color: #155724;
}

.badge.pending {
    background: #fff3cd;
    color: #856404;
}

.badge.inactive,
.badge.cancelled,
.badge.rejected,
.badge.blocked {
    background: #f8d7da;
    color: #721c24;
}

.footer {
    margin-top: 40px;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 900px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .topbar {
        align-items: flex-start;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .wrap {
        padding: 16px;
    }
}
.user-menu {
    display:flex;
    align-items:center;
    gap:10px;
}

.points-pill {
    background:var(--secondary);
    color:#111827;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}

.dropdown {
    position:relative;
}

.dropdown summary {
    list-style:none;
    cursor:pointer;
    background:#fff;
    color:#111827;
    padding:8px 12px;
    border-radius:8px;
    font-size:13px;
    font-weight:bold;
}

.dropdown summary::-webkit-details-marker {
    display:none;
}

.dropdown-menu {
    position:absolute;
    right:0;
    top:42px;
    min-width:180px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    overflow:hidden;
    z-index:999;
}

.dropdown-menu a {
    display:block;
    padding:12px 14px;
    color:#111827;
    border-bottom:1px solid #f3f4f6;
}

.dropdown-menu a:hover {
    background:#f9fafb;
}

.product-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:18px;
}

.product-card {
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,.06);
    transition:.2s ease;
}

.product-card:hover {
    transform:translateY(-3px);
}

.product-image {
    width:100%;
    height:220px;
    object-fit:cover;
    background:#f3f4f6;
}

.product-body {
    padding:16px;
}

.product-title {
    font-size:16px;
    font-weight:700;
    margin-bottom:8px;
}

.product-price {
    font-size:18px;
    font-weight:bold;
    color:var(--primary);
    margin-bottom:10px;
}