:root {
    --primary: #0b1f3a;
    --secondary: #d4af37;
    --bg: #f5f7fb;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    --danger: #7f1d1d;
    --success-bg: #d4edda;
    --success-text: #155724;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    opacity: .85;
}

/* ===== TOPBAR ===== */

.topbar {
    background: var(--primary);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    font-size: 14px;
}

/* ===== LAYOUT ===== */

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 20px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-head h1,
.page-head h2 {
    margin: 0;
}

.section {
    margin-bottom: 24px;
}

.card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:20px;
    box-shadow:0 8px 25px rgba(15,23,42,.05);
    transition:.25s;
}

.card:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 35px rgba(15,23,42,.10);
}

.card h3{
    margin-top:0;
    color:var(--primary);
}

.card p{
    min-height:50px;
}

/* ===== GRIDS ===== */

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.stat-card{
    background:#fff;
    border-radius:22px;
    padding:22px;
    border:1px solid #e5e7eb;
    box-shadow:0 12px 35px rgba(15,23,42,.06);
    transition:.25s;
    position:relative;
    overflow:hidden;
}

.stat-card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    width:5px;
    height:100%;
    background:var(--secondary);
}

.stat-card:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 45px rgba(15,23,42,.10);
}

.stat-card small{
    display:block;
    color:#6b7280;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.stat-card strong{
    display:block;
    margin-top:8px;
    font-size:32px;
    color:var(--primary);
}

/* ===== BUTTONS / FORMS ===== */

.btn,
button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.btn:hover,
button:hover {
    opacity: .9;
}

.btn-secondary {
    background: var(--secondary);
    color: #111827;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    background: #fff;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(212,175,55,.35);
    border-color: var(--secondary);
}

/* ===== TABLES ===== */

.table-wrap {
    background: #fff;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

th {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

tr:hover td {
    background: #fafafa;
}

/* ===== BADGES ===== */

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge.active,
.badge.paid,
.badge.released,
.badge.approved,
.badge.fulfilled,
.badge.delivered {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge.pending,
.badge.confirmed,
.badge.preparing,
.badge.shipped {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.badge.inactive,
.badge.cancelled,
.badge.rejected,
.badge.blocked {
    background: var(--danger-bg);
    color: var(--danger-text);
}

/* ===== USER MENU ===== */

.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: 800;
}

.dropdown {
    position: relative;
}

.dropdown summary {
    list-style: none;
    cursor: pointer;
    background: #fff;
    color: #111827;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 42px;
    min-width: 190px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
    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 UI ===== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    border: 1px solid var(--border);
    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: 800;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */

.footer {
    margin-top: 40px;
    padding: 22px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .topbar {
        align-items: flex-start;
    }

    .nav {
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .wrap {
        padding: 18px 14px;
    }

    .page-head {
        align-items: flex-start;
    }

    th,
    td {
        padding: 10px;
    }
}
code{
    background:#f3f4f6;
    padding:4px 8px;
    border-radius:6px;
}
.dashboard-hero {
    background: linear-gradient(135deg, var(--primary), #111827);
    color: #fff;
    padding: 26px;
    border-radius: 24px;
    margin-bottom: 22px;
    box-shadow: 0 18px 45px rgba(15,23,42,.18);
}

.dashboard-hero h1,
.dashboard-hero h2 {
    margin: 0 0 8px;
    color: #fff;
}

.dashboard-hero p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
    transition: .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15,23,42,.10);
}

.stat-card small {
    display: block;
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 13px;
}

.stat-card strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
}

.action-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.action-card h3 {
    margin-top: 0;
}

.action-card p {
    color: #6b7280;
}
.panel{
    background:#fff;
    border-radius:24px;
    border:1px solid #e5e7eb;
    overflow:hidden;
    box-shadow:0 12px 35px rgba(15,23,42,.05);
}

.panel-head{
    background:#f8fafc;
    border-bottom:1px solid #e5e7eb;
    padding:18px 22px;
    font-weight:700;
    color:var(--primary);
    font-size:18px;
}

.panel-body{
    padding:22px;
}
.highlight-card{
    border-left:4px solid #d4af37;
}
