/* ============================================
   Black LTD — design system (visuel uniquement)
   ============================================ */

:root {
    --bm-bg-deep: #06060a;
    --bm-surface: rgba(14, 12, 18, 0.78);
    --bm-surface-2: rgba(22, 14, 18, 0.88);
    --bm-border: rgba(255, 55, 55, 0.14);
    --bm-border-strong: rgba(255, 70, 70, 0.35);
    --bm-red: #ff3b3b;
    --bm-red-dim: #c42a2a;
    --bm-red-glow: rgba(255, 50, 50, 0.45);
    --bm-text: #f0eef2;
    --bm-muted: #a8a4b8;
    --bm-radius: 18px;
    --bm-radius-sm: 12px;
    --bm-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 40, 40, 0.06);
    --bm-shadow-hover: 0 28px 56px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 30, 30, 0.12);
    --bm-blur: blur(20px);
    --bm-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------
   RESET
------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "DM Sans", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--bm-text);
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background:
        linear-gradient(165deg, rgba(8, 4, 8, 0.88) 0%, rgba(6, 6, 14, 0.82) 45%, rgba(4, 2, 8, 0.9) 100%),
        url("../img/background3.png") no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 40, 40, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(120, 20, 40, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(80, 20, 60, 0.06), transparent 45%);
}

body::after {
    content: "";
    position: fixed;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 60, 60, 0.08), transparent 68%);
    filter: blur(40px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    top: -120px;
    right: -80px;
}

::selection {
    background: rgba(255, 55, 55, 0.35);
    color: #fff;
}

/* Links */
a {
    color: var(--bm-text);
    text-decoration: none;
    transition: color 0.2s var(--bm-ease), opacity 0.2s var(--bm-ease);
}

a:hover {
    color: #fff;
    opacity: 0.92;
}

a:focus-visible {
    outline: 2px solid var(--bm-red);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   HEADER
============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: var(--bm-blur);
    -webkit-backdrop-filter: var(--bm-blur);
    background: linear-gradient(180deg, rgba(8, 8, 14, 0.94), rgba(10, 8, 14, 0.88));
    border-bottom: 1px solid var(--bm-border);
    padding: 16px clamp(16px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.logo {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bm-red);
    text-shadow: 0 0 20px var(--bm-red-glow);
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 45, 45, 0.06);
    border: 1px solid rgba(255, 60, 60, 0.22);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    transition: transform 0.2s var(--bm-ease), box-shadow 0.2s var(--bm-ease), border-color 0.2s var(--bm-ease), background 0.2s var(--bm-ease);
    box-shadow: 0 0 0 transparent;
}

.nav a:hover {
    border-color: rgba(255, 90, 90, 0.55);
    background: rgba(255, 55, 55, 0.14);
    box-shadow: 0 0 22px rgba(255, 30, 30, 0.25);
    transform: translateY(-2px);
    opacity: 1;
}

.nav a:last-child {
    background: linear-gradient(135deg, var(--bm-red), #7a0000);
    color: #fff;
    font-weight: 600;
    border-color: rgba(255, 100, 100, 0.35);
    box-shadow: 0 6px 22px rgba(255, 40, 40, 0.35);
}

.nav a:last-child:hover {
    box-shadow: 0 8px 28px rgba(255, 60, 60, 0.5);
}

/* Layout */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 28px auto 48px;
    padding: 0 clamp(14px, 3vw, 22px) 48px;
}

/* Footer */
.main-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 16px 28px;
    font-size: 0.8rem;
    color: var(--bm-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

/* ------------------------------
   CARDS & TYPO
------------------------------ */
.section-title {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--bm-muted);
    margin-bottom: 18px;
    line-height: 1.55;
}

.card {
    background:
        linear-gradient(155deg, rgba(255, 45, 45, 0.04) 0%, transparent 42%),
        linear-gradient(145deg, rgba(18, 14, 20, 0.94), rgba(8, 8, 14, 0.96));
    border-radius: var(--bm-radius);
    padding: 22px 22px 24px;
    border: 1px solid var(--bm-border);
    box-shadow: var(--bm-shadow);
    margin-bottom: 20px;
    animation: fadeInUp 0.45s var(--bm-ease) forwards;
    transform-origin: top;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card + .card {
    animation-delay: 0.04s;
}

.card h2,
.card h3 {
    letter-spacing: -0.02em;
}

.card h2:first-child {
    margin-bottom: 6px;
}

.card .card {
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.06);
}

.order-actions-form {
    margin-top: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.card-title {
    font-size: 1.08rem;
    font-weight: 600;
}

.card-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 60, 60, 0.45);
    color: #ff6b6b;
    background: rgba(255, 40, 40, 0.08);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Admin hub */
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
}

.admin-actions a {
    text-decoration: none;
}

/* ------------------------------
   FORMS & BUTTONS
------------------------------ */
form {
    margin-top: 8px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #c8c4d4;
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: var(--bm-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(6, 6, 12, 0.92));
    color: var(--bm-text);
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s var(--bm-ease), box-shadow 0.2s var(--bm-ease), transform 0.1s var(--bm-ease);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255, 60, 60, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 40, 40, 0.15);
    transform: translateY(-1px);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--bm-red), #8a0505);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(255, 30, 30, 0.25);
    transition: transform 0.15s var(--bm-ease), box-shadow 0.15s var(--bm-ease), filter 0.15s var(--bm-ease);
}

button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(255, 40, 40, 0.35);
}

button:active,
input[type="submit"]:active {
    transform: translateY(1px) scale(0.98);
}

button:disabled,
input[type="submit"]:disabled,
input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.15);
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--bm-text);
    box-shadow: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.83rem;
    color: #c4c4d4;
}

.form-inline input[type="checkbox"] {
    width: auto;
    accent-color: var(--bm-red);
}

.cart-remove-form {
    display: inline;
}

.form-inline-block {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.btn-delete-icon {
    padding: 7px 12px !important;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #8a0000, #c01010) !important;
    box-shadow: 0 4px 12px rgba(180, 0, 0, 0.35) !important;
}

.admin-img-thumb {
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-img-cell {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.label-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-row-spaced {
    margin-top: 10px;
}

.email-suffix {
    opacity: 0.75;
    font-size: 0.88rem;
}

.input-readonly-dim {
    opacity: 0.72;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-row input[type="text"] {
    flex: 1;
    text-transform: lowercase;
    margin-bottom: 0;
}

/* Alerts */
.alert {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: var(--bm-radius-sm);
    font-size: 0.88rem;
    line-height: 1.45;
}

.alert-error {
    background: linear-gradient(135deg, rgba(120, 20, 30, 0.35), rgba(40, 8, 12, 0.9));
    border: 1px solid rgba(255, 100, 120, 0.45);
    color: #ffc9c9;
}

.alert-success {
    background: linear-gradient(135deg, rgba(30, 90, 45, 0.25), rgba(8, 40, 22, 0.92));
    border: 1px solid rgba(120, 200, 140, 0.45);
    color: #c8f0d0;
}

/* ------------------------------
   TABLES
------------------------------ */
.table-wrap {
    overflow-x: auto;
    margin-top: 12px;
    border-radius: var(--bm-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.86rem;
}

.table-wrap table {
    margin-top: 0;
}

th,
td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

th {
    background: linear-gradient(180deg, rgba(20, 18, 28, 0.98), rgba(14, 12, 20, 0.95));
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c4c0d0;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(255, 50, 50, 0.04);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ------------------------------
   CATALOGUE
------------------------------ */
.catalog-filter {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: var(--bm-radius-sm);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-filter label {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 0;
}

.catalog-filter select {
    max-width: 320px;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.product-card {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 40, 40, 0.1), transparent 50%),
        linear-gradient(165deg, rgba(18, 14, 20, 0.95), rgba(8, 8, 14, 0.98));
    border-radius: var(--bm-radius);
    padding: 22px;
    text-align: center;
    border: 1px solid rgba(255, 50, 50, 0.18);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(255, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.28s var(--bm-ease), box-shadow 0.28s var(--bm-ease), border-color 0.28s var(--bm-ease);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 80, 80, 0.45);
    box-shadow: var(--bm-shadow-hover);
}

.product-card img {
    width: 168px;
    height: 168px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 16px auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 24px rgba(255, 0, 0, 0.08);
}

.product-card h3 {
    color: #ff5a5a;
    font-size: 1.12rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 0 16px rgba(255, 0, 0, 0.25);
}

.category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bm-muted);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.82rem;
    color: #b8b4c4;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: left;
}

.product-card .price {
    color: #ff9a9a;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.product-card input[type="number"] {
    width: 88px;
    margin: 0 auto 14px auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 50, 50, 0.28);
    border-radius: 10px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.product-card button {
    width: 100%;
    padding: 12px 0;
    border-radius: 999px;
    margin-top: 6px;
    background: linear-gradient(90deg, var(--bm-red), #7a0000);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow:
        0 10px 24px rgba(255, 0, 0, 0.3),
        inset 0 0 12px rgba(0, 0, 0, 0.25);
}

.product-card button:hover {
    transform: translateY(-2px) scale(1.01);
}

/* ------------------------------
   LOGIN / REGISTER
------------------------------ */
.login-wrapper {
    max-width: 400px;
    margin: 48px auto 0;
    animation: fadeInUp 0.5s var(--bm-ease) forwards;
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
}

.login-title h1 {
    font-size: 1.45rem;
    font-weight: 600;
}

.login-title p {
    font-size: 0.88rem;
    color: var(--bm-muted);
    margin-top: 6px;
}

.login-container-red {
    max-width: 440px;
    margin: 48px auto 0;
    text-align: center;
    animation: fadeInUp 0.55s var(--bm-ease) forwards;
}

.login-header-red h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--bm-red);
    text-shadow: 0 0 24px rgba(255, 50, 50, 0.45);
    letter-spacing: -0.02em;
}

.login-header-red p {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #e8b8b8;
    opacity: 0.95;
}

.login-box-red {
    background: linear-gradient(165deg, rgba(30, 8, 12, 0.55), rgba(8, 6, 14, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--bm-radius);
    padding: 28px 26px;
    margin-top: 22px;
    border: 1px solid rgba(255, 55, 55, 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-box-red input[type="email"],
.login-box-red input[type="password"],
.login-box-red input[type="text"] {
    width: 100%;
    background: rgba(12, 4, 8, 0.65);
    border: 1px solid rgba(255, 55, 55, 0.22);
    color: #fff;
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: var(--bm-radius-sm);
}

.login-box-red input:focus {
    border-color: var(--bm-red);
    box-shadow: 0 0 18px rgba(255, 50, 50, 0.25);
}

.btn-login-red {
    width: 100%;
    padding: 13px 0;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(90deg, #7a0000, var(--bm-red));
    box-shadow: 0 8px 28px rgba(255, 0, 0, 0.35);
    color: #fff;
    letter-spacing: 0.03em;
}

.btn-login-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 0, 0, 0.45);
}

.login-box-red .form-inline span {
    color: #ffcdcd;
}

.login-footer-link {
    margin-top: 18px;
    text-align: center;
}

.login-footer-link a {
    color: #ff7a7a;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.login-footer-link a:hover {
    color: #ffb0b0;
    border-bottom-color: rgba(255, 100, 100, 0.5);
    opacity: 1;
}

.login-hint-text {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--bm-muted);
    line-height: 1.5;
}

/* ------------------------------
   DASHBOARD & CRIME THEME
------------------------------ */
.dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 32px auto;
    text-align: center;
}

.dash-header {
    text-align: center;
    margin-bottom: 28px;
}

.dash-logo {
    width: 210px;
    height: 210px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.35));
}

.dash-sub {
    opacity: 0.75;
    margin-top: -4px;
}

.dash-intro {
    text-align: center;
    font-size: 1rem;
    padding: 28px;
    margin-bottom: 36px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.dash-box {
    transition: transform 0.3s var(--bm-ease), box-shadow 0.3s var(--bm-ease), border-color 0.3s var(--bm-ease);
}

.dash-box:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 0, 0, 0.35) !important;
    box-shadow: var(--bm-shadow-hover);
}

a.dash-btn,
.dash-btn {
    display: inline-block !important;
    margin-top: 12px !important;
    background: linear-gradient(90deg, #e01008, #ff2a2a) !important;
    padding: 11px 24px !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(255, 40, 40, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.dash-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: 0 12px 28px rgba(255, 50, 50, 0.4);
}

.btn-luxe-delete {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, var(--bm-red), #7a0000);
    box-shadow: 0 8px 22px rgba(255, 80, 100, 0.25);
    transition: all 0.2s ease;
}

.btn-luxe-delete:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(255, 100, 120, 0.4);
    opacity: 0.95;
}

.pagination {
    margin-top: 28px;
    text-align: center;
}

.page-btn {
    display: inline-block;
    padding: 9px 18px;
    margin: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: 0.2s var(--bm-ease);
}

.page-btn:hover {
    background: linear-gradient(90deg, var(--bm-red), #7a0000);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.35);
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(90deg, var(--bm-red), #7a0000);
    color: #fff;
    border-color: rgba(255, 200, 120, 0.25);
    box-shadow: 0 8px 22px rgba(255, 0, 0, 0.35);
}

/* XP card (dashboard) */
.xp-card {
    position: absolute;
    top: 100px;
    left: clamp(12px, 4vw, 48px);
    width: min(280px, calc(100% - 24px));
    background: linear-gradient(145deg, rgba(12, 6, 10, 0.92), rgba(6, 4, 10, 0.95));
    padding: 18px 20px;
    border-radius: var(--bm-radius-sm);
    border: 1px solid rgba(200, 30, 30, 0.45);
    color: #fff;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 0, 0, 0.12);
    z-index: 20;
    text-align: left;
    backdrop-filter: blur(10px);
}

.xp-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ff5a5a;
    letter-spacing: -0.02em;
}

.xp-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
    border: 1px solid rgba(255, 50, 50, 0.2);
}

.xp-bar-fill {
    height: 100%;
    width: var(--xp-pct, 0%);
    background: linear-gradient(90deg, #ff4040, #900000);
    border-radius: 999px;
    transition: width 0.55s var(--bm-ease);
    box-shadow: 0 0 14px rgba(255, 50, 50, 0.45);
}

.xp-info {
    font-size: 0.86rem;
    opacity: 0.88;
}

.grade-badge {
    display: inline-block;
    padding: 12px 26px;
    font-size: 22px;
    font-weight: 600;
    border-radius: 40px;
    text-align: center;
    color: #fff;
    margin: 20px auto;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
    transition: 0.25s ease-in-out;
}

.grade-badge:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(255, 255, 255, 0.12);
}

.criminal-theme {
    padding-top: 32px;
    position: relative;
}

.dash-header-crime {
    text-align: center;
    margin-bottom: 24px;
}

.dash-logo-crime {
    width: 110px;
    opacity: 0.9;
    filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.2));
}

.title-crime {
    margin-top: 12px;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e85050;
    text-shadow: 0 0 18px rgba(255, 0, 0, 0.3);
    font-weight: 700;
}

.grade-badge-crime {
    margin: 20px auto;
    display: inline-block;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid;
    border-radius: 8px;
    text-transform: uppercase;
    background: rgba(12, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 18px currentColor;
}

.intro-crime {
    background: rgba(24, 8, 10, 0.35);
    border: 1px solid rgba(255, 60, 60, 0.22);
    box-shadow: 0 0 28px rgba(255, 0, 0, 0.08);
    text-align: center;
}

.dash-grid-crime {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.crime-box {
    background: linear-gradient(155deg, rgba(22, 20, 24, 0.95), rgba(10, 10, 14, 0.98));
    border-left: 4px solid #d13a3a;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: rotate(-0.35deg);
    transition: transform 0.25s var(--bm-ease), box-shadow 0.25s var(--bm-ease);
    border: 1px solid rgba(255, 50, 50, 0.1);
}

.crime-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 40, 40, 0.06), transparent 55%);
    pointer-events: none;
}

.crime-box:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 16px 40px rgba(255, 30, 30, 0.18);
}

.crime-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.35));
}

.crime-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #f0e8ec;
}

.crime-box p {
    font-size: 0.88rem;
    color: var(--bm-muted);
    line-height: 1.5;
}

.crime-btn {
    display: inline-block;
    margin-top: 16px;
    background: linear-gradient(135deg, #e04040, #7a1515);
    padding: 11px 22px;
    font-weight: 600;
    border-radius: 999px;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 18px rgba(255, 40, 40, 0.25);
}

.crime-btn:hover {
    background: linear-gradient(135deg, #ff5555, #9a2020);
    transform: scale(1.04);
    opacity: 1;
}

.dashboard-hero {
    position: relative;
    display: inline-block;
    padding: 36px 48px;
}

.dashboard-hero h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: -48px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 0, 0, 0.22) 0%,
        rgba(255, 0, 0, 0.06) 55%,
        transparent 78%
    );
    filter: blur(36px);
    animation: pulseGlow 4.5s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulseGlow {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

.dash-sub-banner {
    margin: 24px auto 40px;
    padding: 18px 26px;
    max-width: 900px;
    backdrop-filter: blur(12px);
    background: rgba(10, 0, 0, 0.4);
    border-radius: 14px;
    border: 1px solid rgba(255, 0, 0, 0.22);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.12);
    font-size: 0.95rem;
    line-height: 1.55;
}

.info-banner {
    width: min(920px, 92%);
    margin: 44px auto 0;
    background: linear-gradient(165deg, rgba(0, 0, 0, 0.55), rgba(12, 4, 8, 0.65));
    border: 1px solid rgba(255, 0, 0, 0.22);
    border-radius: var(--bm-radius);
    padding: 26px 32px;
    text-align: center;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 32px rgba(255, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    transition: transform 0.25s var(--bm-ease), box-shadow 0.25s var(--bm-ease);
}

.info-banner h3 {
    color: var(--bm-red);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.35);
}

.info-banner p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.55;
}

.info-banner:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(255, 0, 0, 0.2);
}

.notif-banner {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.55);
    border-left: 4px solid #ff2b2b;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(255, 0, 0, 0.15);
    color: #fff;
    font-size: 0.92rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    border: 1px solid rgba(255, 50, 50, 0.12);
    border-left-width: 4px;
}

.notif-header {
    margin-bottom: 6px;
}

.notif-title {
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #ff6b6b;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.notif-text {
    opacity: 0.92;
    line-height: 1.45;
}

.notif-close {
    margin-top: 10px;
    text-align: right;
}

.notif-close button {
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ff7a7a;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 8px;
    padding: 4px 12px;
    line-height: 1;
}

.notif-close button:hover {
    transform: scale(1.05);
    color: #fff;
    background: rgba(255, 40, 40, 0.35);
}

.btn-del-panier {
    background: linear-gradient(135deg, #6a0000, #a01010);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25);
}

.btn-del-panier:hover {
    background: linear-gradient(135deg, #ff2f2f, #c01010);
    transform: scale(1.06);
}

.profile-summary-box {
    margin: 18px 0 22px;
    padding: 18px 20px;
    border-radius: var(--bm-radius-sm);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.profile-summary-box p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.profile-summary-box p:last-child {
    margin-bottom: 0;
}

/* ------------------------------
   SELECT (global)
------------------------------ */
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--bm-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(16, 14, 24, 0.92);
    color: #fff;
    font-size: 0.92rem;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: 0.2s var(--bm-ease);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.02);
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.516 7.548a.625.625 0 01.884-.884l3.6 3.6 3.6-3.6a.625.625 0 11.884.884l-4.042 4.042a.625.625 0 01-.884 0L5.516 7.548z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 42px;
}

select:hover {
    border-color: rgba(245, 200, 120, 0.35);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.15);
}

select:focus {
    border-color: rgba(245, 200, 120, 0.65);
    box-shadow: 0 0 22px rgba(255, 0, 0, 0.2);
}

select option {
    background: rgba(18, 16, 28, 0.98);
    color: #fff;
    padding: 12px;
}

select option:checked {
    background: linear-gradient(90deg, var(--bm-red), #7a0000);
    color: #fff;
}

/* Admin XP table */
.xp-admin-table {
    width: min(100%, 960px);
    margin: 28px auto;
    background: linear-gradient(165deg, rgba(14, 12, 18, 0.95), rgba(8, 6, 12, 0.98));
    color: #fff;
    border-radius: var(--bm-radius);
    padding: 26px 24px;
    border: 1px solid rgba(200, 30, 30, 0.35);
    box-shadow: var(--bm-shadow);
}

.xp-admin-table h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.35rem;
    font-weight: 600;
}

.xp-admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.xp-admin-table th,
.xp-admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.xp-admin-table tbody tr:hover {
    background: rgba(255, 40, 40, 0.05);
}

.xp-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #9a0000, var(--bm-red));
    color: #fff;
    border-radius: 10px;
    font-size: 0.86rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25);
}

.xp-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.xp-edit-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.xp-edit-form input[type="number"] {
    width: 100px;
    margin-bottom: 0;
    padding: 8px 10px;
}

.xp-edit-form select {
    width: auto;
    min-width: 130px;
    margin-bottom: 0;
    padding: 8px 32px 8px 10px;
    font-size: 0.82rem;
}

/* Orders copy button */
.copy-btn {
    cursor: pointer;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 500;
    transition: 0.2s var(--bm-ease);
}

.copy-btn:hover {
    background: rgba(255, 50, 50, 0.25);
    border-color: rgba(255, 80, 80, 0.45);
}

/* Chat */
.chat-button {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, #ff2a2a, #9a0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    box-shadow: 0 8px 28px rgba(255, 0, 0, 0.45);
    transition: transform 0.2s var(--bm-ease), box-shadow 0.2s var(--bm-ease);
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.chat-button:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(255, 0, 0, 0.55);
}

.chat-popup {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: min(360px, calc(100vw - 32px));
    height: min(460px, 70vh);
    background: linear-gradient(180deg, rgba(18, 14, 22, 0.98), rgba(8, 6, 14, 0.99));
    border: 1px solid rgba(255, 60, 60, 0.35);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 99999;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.12);
    overflow: hidden;
}

.chat-header {
    padding: 14px 16px;
    background: linear-gradient(90deg, #c01010, var(--bm-red));
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.04em;
}

.chat-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    padding: 14px;
    overflow-y: auto;
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
}

.chat-message {
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-left: 3px solid var(--bm-red);
    padding: 10px 12px;
    border-radius: 10px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.45;
    max-width: 100%;
    font-size: 0.86rem;
    border: 1px solid rgba(255, 50, 50, 0.08);
}

.chat-input-area {
    display: flex;
    padding: 12px;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
}

#chatInput {
    flex: 1;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0;
}

#chatInput:focus {
    border-color: rgba(255, 80, 80, 0.45);
}

.chat-input-area button {
    padding: 11px 16px;
    min-width: 48px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 720px) {
    .main-header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        justify-content: center;
    }

    .main-content {
        margin-top: 18px;
        padding: 0 14px 36px;
    }

    .xp-card {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-bottom: 20px;
    }

    .dashboard-hero {
        padding: 24px 16px;
    }

    .crime-box {
        transform: none;
    }

    .crime-box:hover {
        transform: translateY(-4px);
    }
}
