/* ==========================================================================
   Sparrow Aura — Admin UI
   A single design system for the login screen, admin shell, tables & modals.
   Palette is drawn from the brand mark: antique gold, crystal lilac,
   soft teal, on a deep charcoal ground.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Ground */
    --aura-bg: #0b0c10;
    --aura-bg-soft: #101219;
    --aura-surface: #14161f;
    --aura-surface-2: #1a1d28;
    --aura-surface-3: #212533;
    --aura-border: rgba(255, 255, 255, 0.08);
    --aura-border-strong: rgba(255, 255, 255, 0.14);

    /* Brand */
    --aura-gold: #c9a227;
    --aura-gold-light: #e9ce7a;
    --aura-gold-dark: #9b7a17;
    --aura-gold-grad: linear-gradient(135deg, #e9ce7a 0%, #c9a227 55%, #a9821c 100%);
    --aura-lilac: #b9a0e3;
    --aura-teal: #6fa8a1;
    --aura-rose: #e8a0a8;

    /* Text */
    --aura-text: #eceef4;
    --aura-text-soft: #b9bdcc;
    --aura-text-muted: #838a9e;

    /* Feedback */
    --aura-success: #4ade80;
    --aura-warning: #fbbf24;
    --aura-danger: #f87171;
    --aura-info: #7dd3fc;

    /* Geometry */
    --aura-radius-sm: 10px;
    --aura-radius: 14px;
    --aura-radius-lg: 20px;
    --aura-sidebar-w: 264px;
    --aura-shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.85);
    --aura-shadow-soft: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --aura-ring: 0 0 0 3px rgba(201, 162, 39, 0.22);

    --aura-font: "Inter", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --aura-font-display: "Cormorant Garamond", "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--aura-bg);
    color: var(--aura-text);
    font-family: var(--aura-font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--aura-text);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 0;
}

a {
    color: var(--aura-gold-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--aura-gold);
}

::selection {
    background: rgba(201, 162, 39, 0.35);
    color: #fff;
}

/* Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 20px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 39, 0.5);
}

/* Shared helpers */
.aura-gold-text {
    background: var(--aura-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aura-display {
    font-family: var(--aura-font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.aura-muted {
    color: var(--aura-text-muted);
}

.aura-soft {
    color: var(--aura-text-soft);
}

/* --------------------------------------------------------------------------
   3. Auth screens (login, password reset, verify)
   -------------------------------------------------------------------------- */
.auth-body {
    min-height: 100vh;
    background: var(--aura-bg);
    overflow-x: hidden;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* --- Brand panel --- */
.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 15% 10%, rgba(201, 162, 39, 0.16) 0%, transparent 55%),
        radial-gradient(90% 80% at 85% 90%, rgba(185, 160, 227, 0.14) 0%, transparent 60%),
        linear-gradient(160deg, #101219 0%, #0b0c10 60%, #0d0f15 100%);
    border-right: 1px solid var(--aura-border);
}

/* Floating aura orbs */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    animation: aura-float 14s ease-in-out infinite;
}

.auth-orb--gold {
    width: 340px;
    height: 340px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(233, 206, 122, 0.55), transparent 70%);
}

.auth-orb--lilac {
    width: 300px;
    height: 300px;
    bottom: -70px;
    left: -50px;
    background: radial-gradient(circle, rgba(185, 160, 227, 0.5), transparent 70%);
    animation-delay: -5s;
}

.auth-orb--teal {
    width: 220px;
    height: 220px;
    top: 45%;
    left: 55%;
    background: radial-gradient(circle, rgba(111, 168, 161, 0.4), transparent 70%);
    animation-delay: -9s;
}

@keyframes aura-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(0, -26px, 0) scale(1.07); }
}

.auth-brand__inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-brand__logo {
    width: 210px;
    max-width: 60%;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 8px 28px rgba(201, 162, 39, 0.25));
}

.auth-brand__title {
    font-family: var(--aura-font-display);
    font-size: clamp(2.4rem, 3.4vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}

.auth-brand__lede {
    max-width: 42ch;
    color: var(--aura-text-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.auth-brand__list {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.auth-brand__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    color: var(--aura-text-soft);
    font-size: 0.94rem;
}

.auth-brand__list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.28);
    color: var(--aura-gold-light);
    font-size: 13px;
}

.auth-brand__footer {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--aura-text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

/* --- Form panel --- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--aura-bg);
}

.auth-card {
    width: 100%;
    max-width: 428px;
    padding: 40px 38px 34px;
    background: linear-gradient(180deg, rgba(26, 29, 40, 0.95) 0%, rgba(20, 22, 31, 0.95) 100%);
    border: 1px solid var(--aura-border);
    border-radius: var(--aura-radius-lg);
    box-shadow: var(--aura-shadow);
    position: relative;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(233, 206, 122, 0.5), transparent 42%, transparent 62%, rgba(185, 160, 227, 0.28));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-card__mobile-logo {
    display: none;
    width: 150px;
    margin: 0 auto 24px;
}

.auth-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--aura-gold-light);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-card__title {
    font-family: var(--aura-font-display);
    font-size: 2.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-card__sub {
    color: var(--aura-text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.auth-card__footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--aura-border);
    text-align: center;
    color: var(--aura-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-panel {
        padding: 32px 20px;
        background:
            radial-gradient(100% 55% at 50% 0%, rgba(201, 162, 39, 0.14) 0%, transparent 60%),
            var(--aura-bg);
    }

    .auth-card__mobile-logo {
        display: block;
    }
}

@media (max-width: 420px) {
    .auth-card {
        padding: 30px 22px 26px;
    }
}

/* --------------------------------------------------------------------------
   4. Forms
   -------------------------------------------------------------------------- */
.aura-field {
    margin-bottom: 18px;
}

.aura-label {
    display: block;
    margin-bottom: 8px;
    color: var(--aura-text-soft);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.aura-label .req {
    color: var(--aura-gold);
}

.aura-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.aura-input-group > .aura-input-icon {
    position: absolute;
    left: 15px;
    color: var(--aura-text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.aura-input-group:focus-within > .aura-input-icon {
    color: var(--aura-gold);
}

.aura-input,
.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(11, 12, 16, 0.6);
    border: 1px solid var(--aura-border-strong);
    border-radius: var(--aura-radius-sm);
    color: var(--aura-text);
    font-family: inherit;
    font-size: 0.94rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
}

.aura-input-group .aura-input,
.aura-input-group .form-control {
    padding-left: 42px;
}

.aura-input-group.has-action .aura-input,
.aura-input-group.has-action .form-control {
    padding-right: 46px;
}

.aura-input::placeholder,
.form-control::placeholder {
    color: #5f667a;
}

.aura-input:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    background: rgba(11, 12, 16, 0.85);
    border-color: rgba(201, 162, 39, 0.65);
    box-shadow: var(--aura-ring);
    color: var(--aura-text);
}

.aura-input:disabled,
.form-control:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.aura-input.is-invalid,
.form-control.is-invalid {
    border-color: rgba(248, 113, 113, 0.7);
}

.aura-input.is-invalid:focus,
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23838a9e'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 38px;
}

.form-select option {
    background: var(--aura-surface-2);
    color: var(--aura-text);
}

/* Password reveal button */
.aura-input-action {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--aura-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.aura-input-action:hover {
    color: var(--aura-gold-light);
    background: rgba(255, 255, 255, 0.06);
}

.aura-error {
    display: block;
    margin-top: 7px;
    color: var(--aura-danger);
    font-size: 0.82rem;
}

.aura-form-hint {
    margin-top: 7px;
    color: var(--aura-text-muted);
    font-size: 0.8rem;
}

/* Check / radio */
.form-check-input {
    background-color: rgba(11, 12, 16, 0.7);
    border-color: var(--aura-border-strong);
}

.form-check-input:checked {
    background-color: var(--aura-gold);
    border-color: var(--aura-gold);
}

.form-check-input:focus {
    box-shadow: var(--aura-ring);
    border-color: rgba(201, 162, 39, 0.6);
}

.form-check-label {
    color: var(--aura-text-soft);
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--aura-radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--aura-ring);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Primary — gold */
.btn-primary,
.btn-gold {
    background: var(--aura-gold-grad);
    border-color: transparent;
    color: #1a1405;
    box-shadow: 0 10px 26px -12px rgba(201, 162, 39, 0.85);
}

.btn-primary:hover,
.btn-gold:hover {
    color: #1a1405;
    box-shadow: 0 14px 32px -12px rgba(201, 162, 39, 1);
    filter: brightness(1.06);
}

/* Secondary — ghost */
.btn-secondary,
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--aura-border-strong);
    color: var(--aura-text-soft);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--aura-text);
}

.btn-success {
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(74, 222, 128, 0.4);
    color: var(--aura-success);
}

.btn-success:hover {
    background: rgba(74, 222, 128, 0.22);
    border-color: rgba(74, 222, 128, 0.6);
    color: #86efac;
}

.btn-danger {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.42);
    color: var(--aura-danger);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.24);
    border-color: rgba(248, 113, 113, 0.65);
    color: #fca5a5;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 0.98rem;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
}

.btn-link {
    background: transparent;
    border: 0;
    color: var(--aura-gold-light);
    padding: 0;
}

/* Icon-only action button used in table rows */
.aura-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--aura-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--aura-text-soft);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.aura-icon-btn:hover {
    background: rgba(201, 162, 39, 0.14);
    border-color: rgba(201, 162, 39, 0.45);
    color: var(--aura-gold-light);
    transform: translateY(-1px);
}

.aura-icon-btn--danger:hover {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.5);
    color: var(--aura-danger);
}

/* Button loading state */
.btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: aura-spin 0.7s linear infinite;
    color: #1a1405;
}

.btn-secondary.is-loading::after,
.btn-ghost.is-loading::after {
    border-color: rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
}

@keyframes aura-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   6. Admin shell — sidebar
   -------------------------------------------------------------------------- */
.aura-app {
    min-height: 100vh;
    background:
        radial-gradient(90% 55% at 82% -5%, rgba(201, 162, 39, 0.08) 0%, transparent 55%),
        radial-gradient(70% 50% at 5% 100%, rgba(185, 160, 227, 0.06) 0%, transparent 60%),
        var(--aura-bg);
}

.aura-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--aura-sidebar-w);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #12141c 0%, #0d0e14 100%);
    border-right: 1px solid var(--aura-border);
    z-index: 1045;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.aura-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--aura-border);
}

.aura-sidebar__brand img {
    width: 100%;
    max-width: 178px;
    height: auto;
    object-fit: contain;
}

.aura-sidebar__section {
    padding: 20px 18px 8px;
    color: var(--aura-text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.aura-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aura-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--aura-text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.aura-nav__link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--aura-border);
    font-size: 13px;
    transition: all 0.2s ease;
}

.aura-nav__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--aura-text);
}

.aura-nav__link:hover i {
    color: var(--aura-gold-light);
    border-color: rgba(201, 162, 39, 0.3);
}

.aura-nav__link.active {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.18) 0%, rgba(201, 162, 39, 0.03) 100%);
    color: #fff;
    font-weight: 600;
}

.aura-nav__link.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    border-radius: 0 4px 4px 0;
    background: var(--aura-gold-grad);
    box-shadow: 0 0 14px rgba(201, 162, 39, 0.8);
}

.aura-nav__link.active i {
    background: var(--aura-gold-grad);
    border-color: transparent;
    color: #1a1405;
}

.aura-nav__badge {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--aura-border);
    color: var(--aura-text-soft);
    font-size: 0.72rem;
    font-weight: 600;
}

.aura-sidebar__foot {
    padding: 16px;
    border-top: 1px solid var(--aura-border);
}

.aura-sidebar__user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--aura-border);
}

.aura-sidebar__user .aura-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.82rem;
}

.aura-sidebar__user-meta {
    min-width: 0;
}

.aura-sidebar__user-name {
    display: block;
    color: var(--aura-text);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aura-sidebar__user-role {
    display: block;
    color: var(--aura-text-muted);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Backdrop for mobile drawer */
.aura-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1040;
}

body.sidebar-open .aura-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   7. Admin shell — content & topbar
   -------------------------------------------------------------------------- */
.aura-main {
    margin-left: var(--aura-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.aura-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 26px;
    background: rgba(16, 18, 25, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--aura-border);
}

.aura-topbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--aura-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--aura-text-soft);
    cursor: pointer;
}

.aura-topbar__toggle:hover {
    color: var(--aura-gold-light);
    border-color: rgba(201, 162, 39, 0.35);
}

.aura-topbar__titles {
    min-width: 0;
    flex: 1;
}

.aura-topbar__crumb {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--aura-text-muted);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.aura-topbar__crumb i {
    font-size: 8px;
    opacity: 0.5;
}

.aura-topbar__title {
    margin: 2px 0 0;
    font-family: var(--aura-font-display);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}

.aura-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Avatar with initials fallback */
.aura-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--aura-gold-grad);
    color: #1a1405;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-transform: uppercase;
}

.aura-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User dropdown */
.aura-user-menu {
    position: relative;
}

.aura-user-menu__btn {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--aura-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--aura-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.aura-user-menu__btn:hover,
.aura-user-menu__btn[aria-expanded="true"] {
    border-color: rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.08);
}

.aura-user-menu__name {
    font-size: 0.88rem;
    font-weight: 600;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aura-user-menu__btn .caret {
    color: var(--aura-text-muted);
    font-size: 10px;
    transition: transform 0.25s ease;
}

.aura-user-menu__btn[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.dropdown-menu {
    min-width: 220px;
    padding: 8px;
    margin-top: 10px !important;
    background: var(--aura-surface-2);
    border: 1px solid var(--aura-border-strong);
    border-radius: var(--aura-radius);
    box-shadow: var(--aura-shadow);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--aura-text-soft);
    font-size: 0.88rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--aura-text-muted);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--aura-text);
}

.dropdown-item.is-danger:hover {
    background: rgba(248, 113, 113, 0.12);
    color: var(--aura-danger);
}

.dropdown-item.is-danger:hover i {
    color: var(--aura-danger);
}

.dropdown-header {
    padding: 8px 12px 4px;
    color: var(--aura-text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dropdown-divider {
    margin: 6px 4px;
    border-top: 1px solid var(--aura-border);
}

/* Page canvas */
.aura-page {
    flex: 1;
    padding: 26px;
}

@media (max-width: 1199.98px) {
    .aura-page { padding: 22px 20px; }
    .aura-topbar { padding: 13px 20px; }
}

@media (max-width: 991.98px) {
    .aura-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--aura-shadow);
    }

    body.sidebar-open .aura-sidebar {
        transform: translateX(0);
    }

    .aura-main {
        margin-left: 0;
    }

    .aura-topbar__toggle {
        display: inline-flex;
    }

    .aura-topbar__title {
        font-size: 1.28rem;
    }

    .aura-user-menu__name {
        display: none;
    }

    .aura-user-menu__btn {
        padding: 6px;
    }

    .aura-user-menu__btn .caret {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .aura-page { padding: 18px 14px; }
    .aura-topbar { padding: 12px 14px; gap: 12px; }
}

/* --------------------------------------------------------------------------
   8. Cards & stat tiles
   -------------------------------------------------------------------------- */
.aura-card {
    background: linear-gradient(180deg, rgba(26, 29, 40, 0.85) 0%, rgba(20, 22, 31, 0.85) 100%);
    border: 1px solid var(--aura-border);
    border-radius: var(--aura-radius-lg);
    box-shadow: var(--aura-shadow-soft);
    overflow: hidden;
}

.aura-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-bottom: 1px solid var(--aura-border);
}

.aura-card__title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
}

.aura-card__title i {
    color: var(--aura-gold);
    font-size: 0.95rem;
}

.aura-card__subtitle {
    margin: 3px 0 0;
    color: var(--aura-text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.aura-card__body {
    padding: 20px 24px 24px;
}

.aura-card__body--flush {
    padding: 6px 14px 14px;
}

/* Stat grid */
.aura-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.aura-stat {
    position: relative;
    display: block;
    padding: 22px;
    border-radius: var(--aura-radius-lg);
    background: linear-gradient(150deg, rgba(26, 29, 40, 0.92) 0%, rgba(18, 20, 28, 0.92) 100%);
    border: 1px solid var(--aura-border);
    box-shadow: var(--aura-shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.aura-stat::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.14), transparent 68%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.aura-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 22px 48px -20px rgba(201, 162, 39, 0.4);
}

.aura-stat:hover::after {
    opacity: 1;
}

.aura-stat__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.aura-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 17px;
}

.aura-stat__icon--gold {
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.32);
    color: var(--aura-gold-light);
}

.aura-stat__icon--lilac {
    background: rgba(185, 160, 227, 0.14);
    border: 1px solid rgba(185, 160, 227, 0.32);
    color: var(--aura-lilac);
}

.aura-stat__icon--teal {
    background: rgba(111, 168, 161, 0.14);
    border: 1px solid rgba(111, 168, 161, 0.32);
    color: var(--aura-teal);
}

.aura-stat__icon--rose {
    background: rgba(232, 160, 168, 0.14);
    border: 1px solid rgba(232, 160, 168, 0.32);
    color: var(--aura-rose);
}

.aura-stat__arrow {
    color: var(--aura-text-muted);
    font-size: 12px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.aura-stat:hover .aura-stat__arrow {
    transform: translate(3px, -3px);
    color: var(--aura-gold);
}

.aura-stat__label {
    display: block;
    color: var(--aura-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.aura-stat__value {
    display: block;
    margin-top: 4px;
    font-family: var(--aura-font-display);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.aura-stat__value small {
    font-size: 1.1rem;
    color: var(--aura-text-muted);
    font-weight: 500;
}

.aura-stat__foot {
    margin-top: 8px;
    color: var(--aura-text-muted);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   9. Badges & pills
   -------------------------------------------------------------------------- */
.aura-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.aura-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.aura-badge--placed {
    background: rgba(251, 191, 36, 0.13);
    border-color: rgba(251, 191, 36, 0.32);
    color: var(--aura-warning);
}

.aura-badge--approved {
    background: rgba(125, 211, 252, 0.13);
    border-color: rgba(125, 211, 252, 0.32);
    color: var(--aura-info);
}

.aura-badge--dispatched {
    background: rgba(185, 160, 227, 0.14);
    border-color: rgba(185, 160, 227, 0.34);
    color: var(--aura-lilac);
}

.aura-badge--completed {
    background: rgba(74, 222, 128, 0.13);
    border-color: rgba(74, 222, 128, 0.32);
    color: var(--aura-success);
}

.aura-badge--danger {
    background: rgba(248, 113, 113, 0.13);
    border-color: rgba(248, 113, 113, 0.32);
    color: var(--aura-danger);
}

.aura-badge--neutral {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--aura-border-strong);
    color: var(--aura-text-soft);
}

.aura-badge--gold {
    background: rgba(201, 162, 39, 0.14);
    border-color: rgba(201, 162, 39, 0.34);
    color: var(--aura-gold-light);
}

/* --------------------------------------------------------------------------
   10. Tables (incl. DataTables overrides)
   -------------------------------------------------------------------------- */
.aura-table-wrap {
    width: 100%;
    overflow-x: auto;
}

table.dataTable,
.aura-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
    margin: 0 !important;
}

table.dataTable thead th,
.aura-table thead th {
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 0;
    border-bottom: 1px solid var(--aura-border-strong) !important;
    color: var(--aura-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: left;
}

table.dataTable tbody td,
.aura-table tbody td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--aura-text-soft);
    font-size: 0.88rem;
    vertical-align: middle;
    background: transparent;
}

table.dataTable tbody tr,
.aura-table tbody tr {
    transition: background 0.15s ease;
}

table.dataTable tbody tr:hover,
.aura-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

table.dataTable tbody tr:last-child td,
.aura-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.aura-cell-strong {
    color: var(--aura-text);
    font-weight: 600;
}

.aura-cell-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 0.84rem;
    color: var(--aura-gold-light);
}

.aura-cell-sub {
    display: block;
    color: var(--aura-text-muted);
    font-size: 0.78rem;
}

.aura-strike {
    color: var(--aura-text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.aura-cell-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Person cell */
.aura-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.aura-person .aura-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.74rem;
}

/* Product thumbnail */
.aura-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--aura-surface-3);
    border: 1px solid var(--aura-border);
}

.aura-thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aura-text-muted);
    font-size: 15px;
}

/* DataTables chrome */
.dataTables_wrapper {
    padding: 0;
}

/* The custom `dom` wraps controls in flex rows — space them out here. */
.dataTables_wrapper > .aura-row-gap {
    padding: 14px 10px;
    justify-content: flex-start;
}

.dataTables_wrapper > .aura-row-gap > .dataTables_filter,
.dataTables_wrapper > .aura-row-gap > .dataTables_paginate {
    margin-left: auto;
}

.dataTables_wrapper > .aura-row-gap > .dataTables_filter,
.dataTables_wrapper > .aura-row-gap > .dataTables_info,
.dataTables_wrapper > .aura-row-gap > .dataTables_paginate,
.dataTables_wrapper > .aura-row-gap > .dt-buttons {
    float: none;
    margin-bottom: 0;
    padding-top: 0;
}

@media (max-width: 767.98px) {
    .dataTables_wrapper > .aura-row-gap {
        flex-direction: column;
        align-items: stretch;
    }

    .dataTables_wrapper > .aura-row-gap > .dataTables_filter,
    .dataTables_wrapper > .aura-row-gap > .dataTables_paginate {
        margin-left: 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        max-width: none;
    }
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--aura-text-muted) !important;
    font-size: 0.84rem;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_filter label {
    font-size: 0;
    margin: 0;
}

.dataTables_wrapper .dataTables_filter input {
    width: 250px;
    max-width: 60vw;
    margin: 0;
    padding: 9px 14px 9px 36px;
    background: rgba(11, 12, 16, 0.65)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23838a9e'%3E%3Cpath d='M11.7 10.3a6 6 0 1 0-1.4 1.4l3 3a1 1 0 0 0 1.4-1.4zM7 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8'/%3E%3C/svg%3E")
        no-repeat 13px center;
    background-size: 14px;
    border: 1px solid var(--aura-border-strong);
    border-radius: 10px;
    color: var(--aura-text);
    font-size: 0.86rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.6);
    box-shadow: var(--aura-ring);
}

.dataTables_wrapper .dataTables_length {
    float: left;
    margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_length select {
    margin: 0 6px;
    padding: 8px 10px;
    background: rgba(11, 12, 16, 0.65);
    border: 1px solid var(--aura-border-strong);
    border-radius: 9px;
    color: var(--aura-text);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 18px;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    height: 34px;
    margin: 0 3px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--aura-border) !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--aura-text-soft) !important;
    font-size: 0.84rem;
    transition: all 0.18s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--aura-border-strong) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--aura-gold-grad) !important;
    border-color: transparent !important;
    color: #1a1405 !important;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent !important;
    border-color: var(--aura-border) !important;
    color: #4b5162 !important;
    cursor: not-allowed;
}

/* Sort arrows */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 28px;
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    right: 10px !important;
    opacity: 0.35;
    color: var(--aura-gold-light);
}

table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:after {
    opacity: 1;
}

/* Export buttons */
.dt-buttons {
    float: left;
    margin: 0 12px 14px 0;
    display: flex;
    gap: 8px;
}

.dt-button,
.buttons-html5,
.buttons-print {
    padding: 9px 16px !important;
    background: rgba(201, 162, 39, 0.1) !important;
    border: 1px solid rgba(201, 162, 39, 0.3) !important;
    border-radius: 10px !important;
    color: var(--aura-gold-light) !important;
    font-family: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    transition: all 0.18s ease;
}

.dt-button:hover,
.buttons-html5:hover,
.buttons-print:hover {
    background: rgba(201, 162, 39, 0.2) !important;
    border-color: rgba(201, 162, 39, 0.55) !important;
    color: #fff !important;
}

.dataTables_empty {
    padding: 42px 16px !important;
    color: var(--aura-text-muted) !important;
    text-align: center;
}

/* Empty state */
.aura-empty {
    padding: 56px 24px;
    text-align: center;
}

.aura-empty > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--aura-border);
    color: var(--aura-text-muted);
    font-size: 22px;
}

.aura-empty h6 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.aura-empty p {
    margin: 0;
    color: var(--aura-text-muted);
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   11. Modals
   -------------------------------------------------------------------------- */
.modal-backdrop.show {
    background: #05060a;
    opacity: 0.78;
}

.modal-content {
    background: linear-gradient(180deg, #1b1e28 0%, #14161f 100%);
    border: 1px solid var(--aura-border-strong);
    border-radius: var(--aura-radius-lg);
    box-shadow: var(--aura-shadow);
    color: var(--aura-text);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--aura-border);
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--aura-text);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.aura-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.32);
    color: var(--aura-gold-light);
    font-size: 15px;
}

.aura-modal-icon--danger {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.35);
    color: var(--aura-danger);
}

.aura-modal-icon--success {
    background: rgba(74, 222, 128, 0.14);
    border-color: rgba(74, 222, 128, 0.35);
    color: var(--aura-success);
}

.aura-modal-close,
.modal-header .close,
.modal-header .btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--aura-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--aura-text-muted);
    font-size: 18px;
    line-height: 1;
    opacity: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.aura-modal-close:hover,
.modal-header .close:hover,
.modal-header .btn-close:hover {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.4);
    color: var(--aura-danger);
    opacity: 1;
}

.modal-body {
    padding: 24px;
    border: 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--aura-border);
}

.modal-footer > * {
    margin: 0;
}

.modal-footer--split {
    justify-content: space-between;
}

.modal p {
    color: var(--aura-text-soft);
}

/* Detail grid used inside view modals */
.aura-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.aura-detail-block {
    padding: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--aura-border);
    border-radius: var(--aura-radius);
}

.aura-detail-block--full {
    grid-column: 1 / -1;
}

.aura-detail-block h6 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--aura-border);
    color: var(--aura-gold-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.aura-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
}

.aura-detail-row dt,
.aura-detail-row .k {
    flex-shrink: 0;
    color: var(--aura-text-muted);
    font-size: 0.83rem;
    font-weight: 500;
}

.aura-detail-row dd,
.aura-detail-row .v {
    margin: 0;
    color: var(--aura-text);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.aura-detail-row .v a {
    color: var(--aura-gold-light);
}

/* Line-items table inside the order modal */
.aura-lines {
    width: 100%;
    border-collapse: collapse;
}

.aura-lines th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--aura-border);
    color: var(--aura-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
}

.aura-lines td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--aura-text-soft);
    font-size: 0.88rem;
}

.aura-lines tfoot td,
.aura-lines tfoot th {
    padding-top: 14px;
    border-bottom: 0;
    color: var(--aura-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.aura-lines tfoot .total {
    color: var(--aura-gold-light);
    font-family: var(--aura-font-display);
    font-size: 1.2rem;
}

.text-end { text-align: right !important; }
.text-center { text-align: center !important; }

/* Modal loader overlay */
.aura-modal-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(11, 12, 16, 0.72);
    backdrop-filter: blur(3px);
    border-radius: var(--aura-radius-lg);
    z-index: 10;
}

.aura-modal-loader.is-active {
    display: flex;
}

.aura-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(201, 162, 39, 0.2);
    border-top-color: var(--aura-gold);
    border-radius: 50%;
    animation: aura-spin 0.75s linear infinite;
}

/* Order status timeline */
.aura-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--aura-border);
    border-radius: var(--aura-radius);
}

.aura-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    text-align: center;
}

.aura-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: rgba(255, 255, 255, 0.09);
}

.aura-step.is-done:not(:last-child)::after {
    background: var(--aura-gold-grad);
}

.aura-step__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--aura-border-strong);
    color: var(--aura-text-muted);
    font-size: 11px;
    z-index: 1;
}

.aura-step.is-done .aura-step__dot {
    background: var(--aura-gold-grad);
    border-color: transparent;
    color: #1a1405;
}

.aura-step.is-current .aura-step__dot {
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.aura-step__label {
    color: var(--aura-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.aura-step.is-done .aura-step__label {
    color: var(--aura-text);
}

@media (max-width: 575.98px) {
    .modal-body { padding: 18px; }
    .modal-header,
    .modal-footer { padding: 16px 18px; }
    .aura-steps { padding: 14px 8px; }
    .aura-step__label { font-size: 0.66rem; }
    .modal-footer { flex-wrap: wrap; }
    .modal-footer .btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   12. Alerts & toasts
   -------------------------------------------------------------------------- */
.aura-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: var(--aura-radius);
    border: 1px solid var(--aura-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--aura-text-soft);
    font-size: 0.9rem;
}

.aura-alert > i {
    margin-top: 2px;
    font-size: 15px;
}

.aura-alert--success {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: #bbf7d0;
}

.aura-alert--success > i { color: var(--aura-success); }

.aura-alert--danger {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.aura-alert--danger > i { color: var(--aura-danger); }

.aura-alert--warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fde68a;
}

.aura-alert--warning > i { color: var(--aura-warning); }

.aura-alert__close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.aura-alert__close:hover { opacity: 1; }

/* Toast stack */
.aura-toasts {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.aura-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 18px;
    background: var(--aura-surface-2);
    border: 1px solid var(--aura-border-strong);
    border-left: 3px solid var(--aura-gold);
    border-radius: var(--aura-radius);
    box-shadow: var(--aura-shadow);
    color: var(--aura-text);
    font-size: 0.88rem;
    pointer-events: auto;
    animation: aura-toast-in 0.32s cubic-bezier(0.21, 1.02, 0.73, 1);
}

.aura-toast.is-leaving {
    animation: aura-toast-out 0.28s ease forwards;
}

.aura-toast--success { border-left-color: var(--aura-success); }
.aura-toast--success i { color: var(--aura-success); }
.aura-toast--danger { border-left-color: var(--aura-danger); }
.aura-toast--danger i { color: var(--aura-danger); }
.aura-toast i { font-size: 15px; color: var(--aura-gold); }

@keyframes aura-toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes aura-toast-out {
    to { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 575.98px) {
    .aura-toasts {
        top: auto;
        bottom: 16px;
        left: 14px;
        right: 14px;
    }
    .aura-toast { min-width: 0; max-width: none; }
}

/* --------------------------------------------------------------------------
   13. Page loader
   -------------------------------------------------------------------------- */
.aura-page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aura-bg);
    z-index: 3000;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.aura-page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.aura-page-loader__mark {
    width: 54px;
    height: 54px;
    border: 3px solid rgba(201, 162, 39, 0.18);
    border-top-color: var(--aura-gold);
    border-radius: 50%;
    animation: aura-spin 0.8s linear infinite;
}

/* --------------------------------------------------------------------------
   14. Utilities used by the views
   -------------------------------------------------------------------------- */
.aura-row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.aura-mt-0 { margin-top: 0 !important; }
.aura-mb-0 { margin-bottom: 0 !important; }
.aura-mb-3 { margin-bottom: 18px !important; }
.aura-mb-4 { margin-bottom: 24px !important; }
.aura-w-100 { width: 100%; }
.aura-nowrap { white-space: nowrap; }

.aura-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 320px;
}

@media print {
    .aura-sidebar,
    .aura-topbar,
    .dt-buttons,
    .dataTables_filter,
    .dataTables_paginate,
    .aura-cell-actions { display: none !important; }
    .aura-main { margin-left: 0; }
    body { background: #fff; color: #000; }
}
