:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --dark: #111827;
    --dark-2: #0f172a;
    --gold: #f2b400;
    --gold-dark: #d69d00;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d8dee9;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.bd-swal-popup {
    border-radius: 20px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.bd-swal-confirm {
    background: var(--gold) !important;
    color: #111 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

a {
    text-decoration: none;
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f7f7f7 0%, #eef2f7 100%);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.wide-auth .auth-card {
    max-width: 760px;
}

.auth-card {
    width: 100%;
    max-width: 510px;
    background: var(--panel);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.auth-card h1,
.auth-card h2,
.hero-content h1,
.page-head h1,
.section-title {
    color: #0f2747;
    font-weight: 700;
}

.auth-card p,
.page-head p,
.muted-copy {
    color: var(--muted);
}

.auth-input,
.form-control,
.form-select {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d5dcea;
}

.auth-input-focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(242, 180, 0, 0.15);
}

.auth-link,
.text-gold {
    color: var(--gold-dark);
}

.btn-gold {
    background: var(--gold);
    color: #111;
    border: none;
    font-weight: 700;
}

.btn-gold:hover,
.btn-gold:focus {
    background: var(--gold-dark);
    color: #111;
}

.topbar {
    background: #000;
    padding: 1rem 0;
}

.dark-topbar {
    background: var(--dark-2);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #fff;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}

.nav-links a.active {
    color: var(--gold);
}

.nav-button {
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    color: #111 !important;
}

.hero-section {
    background: #000;
    color: #fff;
    padding: 3rem 0 4rem;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 1.35rem;
}

.hero-badge {
    color: var(--gold);
    font-weight: 700;
}

.main-shell {
    min-height: calc(100vh - 72px);
}

.glass-card,
.panel-card,
.filter-card,
.product-card,
.customer-card,
.profile-card,
.profile-panel,
.developer-card {
    background: var(--panel);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.glass-card,
.filter-card,
.panel-card,
.profile-panel,
.developer-card {
    padding: 1.5rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.mini-panel {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
}

.landing-overview-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.landing-overview-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
}

.landing-overview-item strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #0f172a;
    font-size: 1rem;
}

.landing-overview-item span {
    color: #475569;
    line-height: 1.65;
}

.landing-footer {
    margin-top: 3rem;
    background: #2d2d2d;
    color: #f8fafc;
    padding: 3rem 0;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 0.8fr;
    gap: 2rem;
}

.landing-footer h3,
.landing-footer h4 {
    margin: 0 0 1rem;
    color: #fff;
    font-weight: 700;
}

.landing-footer h3 {
    font-size: 2rem;
}

.landing-footer h4 {
    font-size: 1.05rem;
    text-transform: uppercase;
}

.landing-footer p {
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.landing-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.landing-footer-list li,
.landing-footer-list a {
    color: rgba(255, 255, 255, 0.88);
}

.landing-footer-list a:hover {
    color: #fff;
}

.landing-footer-socials {
    display: flex;
    gap: 0.8rem;
}

.landing-footer-socials a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
}

.landing-footer-socials a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.mini-panel strong {
    display: block;
    margin-bottom: 0.35rem;
}

.featured-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.featured-item img,
.table-thumb,
.product-card img {
    border-radius: 14px;
    object-fit: cover;
}

.featured-item img {
    width: 90px;
    height: 90px;
}

.filter-card h3,
.panel-card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f2747;
}

.live-search-wrap {
    position: relative;
}

.live-search-results {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d5dcea;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    padding: 0.45rem;
    z-index: 30;
    display: none;
}

.live-search-results.is-visible {
    display: block;
}

.live-search-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #0f172a;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-weight: 500;
}

.live-search-item:hover {
    background: #fff7db;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-card {
    overflow: hidden;
    height: 100%;
}

.product-card-trigger,
.product-title-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    text-align: inherit;
    color: inherit;
}

.product-card-trigger {
    display: block;
}

.product-title-trigger {
    font: inherit;
    font-weight: inherit;
}

.product-card img {
    width: 100%;
    height: 230px;
}

.product-card-body {
    padding: 1rem;
}

.brand-badge {
    display: inline-block;
    background: var(--gold);
    color: #111;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    margin-bottom: 0.7rem;
}

.product-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-title-trigger:hover {
    color: #0f2747;
}

.product-card p {
    color: var(--muted);
    min-height: 48px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-action-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.75rem;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-input {
    width: 72px;
    min-width: 72px;
    text-align: center;
}

.order-detail-cell {
    background: #f8fafc;
    color: var(--muted);
}

.quick-view-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.quick-view-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0.75rem;
}

.quick-view-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
    min-height: 560px;
}

.quick-view-media {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-media img {
    width: 100%;
    max-width: 460px;
    max-height: 460px;
    object-fit: contain;
}

.quick-view-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-view-brand {
    display: inline-flex;
    align-self: flex-start;
    background: #fff7db;
    color: #8b5e00;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.quick-view-content h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 1rem;
}

.quick-view-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.quick-view-meta strong {
    font-size: 1.6rem;
    color: #0f2747;
}

.quick-view-meta span {
    color: #64748b;
    font-weight: 600;
}

.quick-view-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quick-view-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 320px;
}

.quick-view-qty-block .form-label {
    color: #334155;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
}

.quick-view-qty-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0.5rem;
}

.quick-view-qty-btn {
    border: 1px solid #d5dcea;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 700;
}

.quick-view-qty-input {
    text-align: center;
    font-weight: 700;
}

.quick-view-submit {
    min-height: 52px;
    border-radius: 14px;
    font-weight: 700;
}

.flash-toast-wrap {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1085;
    width: min(340px, calc(100vw - 32px));
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.flash-toast {
    min-width: min(240px, calc(100vw - 32px));
    max-width: 340px;
    pointer-events: auto;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.95rem;
    padding: 1rem 1rem 1.1rem;
    overflow: hidden;
    border-radius: 24px;
    opacity: 0.92;
    background-color: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(191, 219, 254, 0.45);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    transition: opacity 0.25s ease, transform 0.25s ease;
    color: #0f172a;
    animation: toast-slide-in 0.38s cubic-bezier(.22, 1, .36, 1);
}

.flash-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
}

.flash-toast.success {
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.24), transparent 36%),
        linear-gradient(135deg, rgba(242, 255, 247, 0.95), rgba(224, 255, 238, 0.92));
}

.flash-toast.error {
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.22), transparent 36%),
        linear-gradient(135deg, rgba(255, 241, 241, 0.96), rgba(255, 228, 228, 0.93));
}

.flash-toast-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 24px 0 0 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(15, 23, 42, 0.12));
}

.flash-toast.success .flash-toast-accent {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.flash-toast.error .flash-toast-accent {
    background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.flash-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.flash-toast.success .flash-toast-icon {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(21, 128, 61, 0.12));
    color: #15803d;
}

.flash-toast.error .flash-toast-icon {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.12));
    color: #b91c1c;
}

.flash-toast-body {
    min-width: 0;
    padding-top: 0.1rem;
}

.flash-toast-eyebrow {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.58);
}

.flash-toast-title {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
    line-height: 1.2;
    color: #0f172a;
}

.flash-toast-message {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.35;
    color: rgba(15, 23, 42, 0.84);
}

.flash-toast-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: rgba(15, 23, 42, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.flash-toast-close:hover {
    background: rgba(255, 255, 255, 0.82);
    transform: rotate(90deg);
}

.flash-toast-progress {
    position: absolute;
    right: 14px;
    bottom: 10px;
    left: 14px;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.flash-toast-progress::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left center;
    animation: toast-progress 2.6s linear forwards;
}

.flash-toast.success .flash-toast-progress::after {
    background: linear-gradient(90deg, #22c55e, #15803d);
}

.flash-toast.error .flash-toast-progress::after {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.flash-toast.is-hiding {
    animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translate3d(0, -14px, 0) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(0.98);
    }
}

@keyframes toast-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.page-head {
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--panel);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.summary-card span {
    color: #475569;
}

.summary-card h3 {
    font-size: 2rem;
    margin-top: 1rem;
    color: #0f2747;
}

.summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.summary-icon.blue {
    background: #3b82f6;
}

.summary-icon.red {
    background: #ef4444;
}

.summary-icon.green {
    background: #22c55e;
}

.summary-icon.gold {
    background: var(--gold);
    color: #111;
}

.status-pill {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.status-pending {
    background: #fff3cd;
    color: #8a6d00;
}

.status-processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-completed {
    background: #dcfce7;
    color: #15803d;
}

.status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.status-good-risk {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.status-warning-risk {
    background: #fff3cd;
    color: #a16207;
    border: 1px solid #facc15;
}

.status-high-risk {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.table-thumb {
    width: 64px;
    height: 64px;
}

.customer-card {
    padding: 1.4rem;
    height: 100%;
}

.customer-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.customer-card p {
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.mini-avatar,
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar.small {
    width: 88px;
    height: 88px;
}

.profile-card,
.profile-panel {
    padding: 1.25rem;
}

.verification-banner {
    border: 2px solid var(--gold);
    background: #fff9e6;
    border-radius: 18px;
    padding: 1.5rem;
}

.verification-banner h5 {
    color: #9a6700;
    font-weight: 700;
}

.profile-hero,
.profile-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    background: #000;
    color: #fff;
    border-radius: 18px;
    padding: 1.4rem;
    margin-bottom: 1.25rem;
}

.profile-hero p,
.profile-summary p,
.profile-summary span {
    margin: 0;
    color: #cbd5e1;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.photo-edit-trigger {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: #111;
    font-weight: 700;
}

.photo-edit-trigger.mini {
    width: 32px;
    height: 32px;
}

.profile-info-grid {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
}

.profile-info-grid.two-col {
    background: transparent;
    padding: 0;
}

.profile-info-grid span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.profile-info-grid strong {
    color: #0f172a;
}

.info-card-grid {
    display: grid;
    gap: 1rem;
}

.chat-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1rem;
}

.chat-sidebar,
.chat-window {
    background: var(--panel);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.chat-sidebar {
    padding: 1rem;
}

.chat-user {
    display: block;
    padding: 0.9rem 1rem;
    color: var(--text);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.chat-user span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.chat-user.active {
    background: #111827;
    color: #fff;
}

.chat-window {
    padding: 1rem;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 320px;
    margin-bottom: 1rem;
}

.chat-bubble {
    max-width: 75%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
}

.chat-bubble p {
    margin: 0.4rem 0;
}

.customer-bubble {
    background: #f3f4f6;
}

.staff-bubble {
    background: #fff7db;
    margin-left: auto;
}

.developer-card {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.developer-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.protected-row {
    background: #f8fafc;
}

.protected-row td {
    background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%);
}

.monitoring-table td,
.monitoring-table th {
    vertical-align: middle;
}

.risk-row {
    background: #fff7f7;
}

.view-button {
    min-width: 90px;
    border-radius: 12px;
    font-weight: 600;
}

.customer-detail-panel {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.customer-detail-panel h3,
.history-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f2747;
    margin-bottom: 1rem;
}

.detail-grid {
    background: transparent;
    padding: 0;
}

.detail-stat {
    background: #fff;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid #dbe3ef;
    height: 100%;
}

.detail-stat span {
    display: block;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.detail-stat strong {
    font-size: 2rem;
    color: #0f2747;
}

.blue-border {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.green-border {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.gold-border {
    border-color: #fde68a;
    background: #fffbeb;
}

.history-section {
    margin-top: 1.5rem;
}

.detail-history-table {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.cancelled-history .detail-history-table {
    border-color: #fca5a5;
    background: #fff7f7;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.report-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
}

.developer-profile-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    background: var(--panel);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    gap: 1.75rem;
    align-items: start;
}

.developer-profile-media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.developer-profile-media img {
    width: 200px;
    height: 200px;
    min-height: 200px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    border: 6px solid #f8fafc;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.developer-profile-body {
    padding: 0.25rem 0 0;
}

.developer-profile-body h2 {
    margin: 0;
    color: #0f2747;
    font-size: 2rem;
    font-weight: 700;
}

.developer-profile-subtitle {
    margin: 0.45rem 0 1.4rem;
    color: #475569;
    font-size: 1.2rem;
}

.developer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.developer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #334155;
}

.developer-contact-item i {
    color: #64748b;
    font-size: 1.1rem;
}

.developer-social-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #1877f2;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.developer-social-link:hover {
    color: #0f5fd7;
    background: #dbeafe;
}

.developer-section + .developer-section {
    margin-top: 1.7rem;
}

.developer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.developer-section p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.developer-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.developer-skill-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-management-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.user-management-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-management-head .page-head p {
    margin-bottom: 0;
}

.user-management-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #0f172a;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.user-management-add-btn:hover,
.user-management-add-btn:focus {
    background: #111827;
    color: #fff;
}

.user-management-card {
    padding: 0;
    overflow: hidden;
}

.user-management-card .table-responsive {
    padding: 0.85rem 1.1rem 0;
    overflow-x: auto;
}

.user-management-card .dataTables_wrapper {
    width: 100%;
}

.user-management-card table.dataTable,
.user-management-card table.dataTable.table {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.user-management-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.user-management-table thead th {
    background: #f8fafc;
}

.user-management-table th {
    padding: 1.05rem 1.1rem;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom-color: #e5edf6;
    white-space: nowrap;
}

.user-management-table td {
    padding: 1rem 1.1rem;
    vertical-align: middle;
    border-bottom-color: #edf2f7;
}

.user-management-table th:last-child,
.user-management-table td:last-child {
    white-space: nowrap;
}

.user-management-card table.dataTable thead th,
.user-management-card table.dataTable thead td {
    vertical-align: middle;
    line-height: 1.2;
}

.user-management-card table.dataTable tbody td {
    vertical-align: middle;
}

.user-management-table th:nth-child(1),
.user-management-table td:nth-child(1) {
    width: 39%;
}

.user-management-table th:nth-child(2),
.user-management-table td:nth-child(2) {
    width: 14%;
}

.user-management-table th:nth-child(3),
.user-management-table td:nth-child(3) {
    width: 11%;
}

.user-management-table th:nth-child(4),
.user-management-table td:nth-child(4) {
    width: 10%;
}

.user-management-table th:nth-child(5),
.user-management-table td:nth-child(5) {
    width: 11%;
}

.user-management-table th:nth-child(6),
.user-management-table td:nth-child(6) {
    width: 15%;
}

.user-management-table tbody tr:last-child td {
    border-bottom: 0;
}

.user-management-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.user-management-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2f7;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-management-user strong {
    display: block;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.25;
}

.user-management-identity {
    min-width: 0;
}

.user-management-name,
.user-management-email {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-management-name {
    max-width: 100%;
}

.user-management-email {
    max-width: 100%;
}

.user-management-user span,
.user-management-contact,
.user-management-date,
.user-management-note {
    color: #64748b;
    font-size: 0.92rem;
}

.user-role-badge,
.user-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-admin {
    background: #fee2e2;
    color: #b91c1c;
}

.role-staff {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-customer {
    background: #dcfce7;
    color: #15803d;
}

.role-superadmin {
    background: #ede9fe;
    color: #6d28d9;
}

.role-neutral {
    background: #e5e7eb;
    color: #334155;
}

.status-active-lite {
    background: #dcfce7;
    color: #15803d;
}

.status-inactive-lite {
    background: #f1f5f9;
    color: #334155;
}

.status-pending-lite {
    background: #fef3c7;
    color: #a16207;
}

.user-management-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.user-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dde8;
    background: #fff;
    color: #111827;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.user-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.user-action-btn.delete {
    border-color: #fca5a5;
    color: #ef4444;
}

.user-management-note {
    min-width: 210px;
    line-height: 1.55;
}

.user-restricted-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.datatable-table {
    width: 100% !important;
}

.dataTables_wrapper {
    padding-bottom: 1.1rem;
    width: 100%;
}

.datatable-toolbar,
.datatable-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.datatable-toolbar {
    padding: 0 0 0.85rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid #eef2f7;
}

.datatable-footer {
    padding: 1rem 0 0;
}

.datatable-toolbar-left,
.datatable-toolbar-right,
.datatable-footer-left,
.datatable-footer-right {
    display: flex;
    align-items: center;
}

.datatable-toolbar-right,
.datatable-footer-right {
    justify-content: flex-end;
}

.user-management-card .dataTables_wrapper .dataTables_length,
.user-management-card .dataTables_wrapper .dataTables_filter,
.user-management-card .dataTables_wrapper .dataTables_info,
.user-management-card .dataTables_wrapper .dataTables_paginate {
    margin: 0;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

div.dataTables_wrapper div.dataTables_filter input {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #d5dcea;
    padding: 0.55rem 0.85rem;
    margin-left: 0;
    min-width: 220px;
    background: #fff;
}

div.dataTables_wrapper div.dataTables_length select {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #d5dcea;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: #475569;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    font-weight: 600;
}

.dataTables_wrapper .dataTables_length {
    display: inline-flex;
    align-items: center;
}

.dataTables_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.user-management-card .dataTables_wrapper .dataTables_filter {
    margin-left: auto;
}

.dataTables_wrapper .pagination {
    gap: 0.4rem;
    margin-bottom: 0;
}

.dataTables_wrapper .page-link {
    border-radius: 10px !important;
    border: 1px solid #d8dee9;
    color: #0f172a;
    min-width: 40px;
    text-align: center;
}

.dataTables_wrapper .page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 0;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 0;
}

.approval-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.approval-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.approval-head p {
    margin: 0.35rem 0 0;
    color: #64748b;
}

.approval-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #d9e1ee;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #334155;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.approval-table-card {
    padding: 0;
    overflow: hidden;
}

.approval-table {
    margin: 0;
}

.approval-table th {
    color: #334155;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 1rem 1.1rem;
    border-bottom-color: #e5edf6;
    white-space: nowrap;
}

.approval-table td {
    padding: 1rem 1.1rem;
    vertical-align: middle;
    border-bottom-color: #edf2f7;
}

.approval-table tbody tr:last-child td {
    border-bottom: 0;
}

.approval-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 240px;
}

.approval-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2f7;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.approval-user strong,
.approval-detail strong {
    display: block;
    color: #0f172a;
    font-weight: 700;
}

.approval-user span,
.approval-detail span,
.approval-muted {
    color: #64748b;
    font-size: 0.92rem;
}

.approval-detail {
    min-width: 140px;
}

.approval-notes {
    min-width: 220px;
    color: #334155;
}

.approval-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 170px;
}

.approval-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 1rem;
}

.approval-action-icon.approve {
    background: #16a34a;
    color: #fff;
}

.approval-action-icon.reject {
    background: #fff;
    color: #ef4444;
    border-color: #fca5a5;
}

.approval-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.approval-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.approval-meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
}

.approval-meta-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
}

.staff-login-brand .brand-icon {
    display: inline-flex;
}

@media (max-width: 991px) {

    .nav-shell,
    .profile-hero,
    .profile-summary,
    .chat-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-info-grid,
    .role-grid,
    .landing-footer-grid,
    .quick-view-layout {
        grid-template-columns: 1fr;
    }

    .developer-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .developer-profile-card {
        grid-template-columns: 1fr;
    }

    .developer-profile-media {
        justify-content: flex-start;
    }

    .developer-profile-media img {
        width: 180px;
        height: 180px;
        min-height: 180px;
    }

    .approval-head {
        align-items: stretch;
    }

    .user-management-head {
        align-items: stretch;
    }

    .approval-actions {
        justify-content: flex-start;
    }

    .approval-meta-grid {
        grid-template-columns: 1fr;
    }

    .user-management-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .auth-card,
    .glass-card,
    .panel-card,
    .filter-card,
    .profile-card,
    .profile-panel,
    .developer-card {
        padding: 1rem;
    }

    .developer-profile-card {
        padding: 1rem;
        gap: 1rem;
    }

    .product-card img {
        height: 200px;
    }

    .quick-view-media {
        padding: 1.5rem;
    }

    .quick-view-content {
        padding: 1.5rem;
    }

    .quick-view-content h2 {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .cart-action-row,
    .cart-qty-form {
        grid-template-columns: 1fr;
        flex-wrap: wrap;
    }

    .flash-toast-wrap {
        bottom: 12px;
        left: 12px;
        width: calc(100vw - 24px);
    }

    .flash-toast {
        min-width: 100%;
        max-width: 100%;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .user-management-add-btn {
        width: 100%;
        justify-content: center;
    }

    .user-management-user {
        min-width: 0;
    }

    .user-management-card .table-responsive {
        padding: 1rem 1rem 0;
    }

    .datatable-toolbar,
    .datatable-footer {
        align-items: stretch;
    }

    .datatable-toolbar-left,
    .datatable-toolbar-right,
    .datatable-footer-left,
    .datatable-footer-right {
        width: 100%;
    }

    div.dataTables_wrapper div.dataTables_filter input {
        width: 100%;
        min-width: 0;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
    }

    .user-management-card .dataTables_wrapper .dataTables_filter {
        margin-left: 0;
    }

    .user-management-table {
        table-layout: auto;
    }
}
