:root {
    --customer-primary: #8b5cf6;
    --customer-primary-dark: #7442e8;
    --customer-primary-soft: #f2edff;
    --customer-bg: #f7f8fc;
    --customer-card: #ffffff;
    --customer-text: #20232d;
    --customer-muted: #737887;
    --customer-border: #ececf3;
    --customer-shadow: 0 12px 32px rgba(52, 44, 92, 0.08);
    --customer-radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.customer-body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.07), transparent 30%),
        var(--customer-bg);
    color: var(--customer-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.customer-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    min-height: 74px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--customer-border);
    backdrop-filter: blur(14px);
}

.customer-header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.customer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--customer-text);
    font-size: 18px;
    font-weight: 800;
}

.customer-brand-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--customer-primary);
    background: var(--customer-primary-soft);
    border-radius: 12px;
    font-size: 20px;
}

.customer-brand-logo {
    display: block;
    width: auto;
    max-width: 190px;
    height: 44px;
    object-fit: contain;
}

.customer-main-nav {
    align-items: center;
    gap: 34px;
}

.customer-main-nav a {
    color: #555a68;
    font-size: 14px;
    font-weight: 600;
}

.customer-main-nav a:hover {
    color: var(--customer-primary);
}

.customer-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon-button,
.mobile-menu-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #4f5360;
    font-size: 20px;
}

.header-icon-button:hover,
.mobile-menu-button:hover {
    background: var(--customer-primary-soft);
    color: var(--customer-primary);
}

.notification-dot {
    position: absolute;
    top: 4px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    background: var(--customer-primary);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

.header-user {
    align-items: center;
    gap: 9px;
    color: #343743;
    font-size: 14px;
    font-weight: 700;
}

.header-user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #b794f4);
    border-radius: 50%;
    font-size: 12px;
}

.customer-page {
    padding: 30px 0 38px;
}

.customer-sidebar {
    position: sticky;
    top: 104px;
    min-height: calc(100vh - 135px);
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(236, 236, 243, 0.8);
    border-radius: var(--customer-radius);
}

.customer-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.customer-sidebar-nav a,
.sidebar-logout {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    color: #454956;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.customer-sidebar-nav a i,
.sidebar-logout i {
    width: 20px;
    font-size: 18px;
}

.customer-sidebar-nav a:hover,
.customer-sidebar-nav a.active {
    color: var(--customer-primary);
    background: linear-gradient(90deg, #f0eaff, #f7f4ff);
}

.sidebar-counter {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--customer-primary);
    background: var(--customer-primary-soft);
    border-radius: 50%;
    font-size: 11px;
}

.sidebar-divider {
    height: 1px;
    margin: 16px 0;
    background: var(--customer-border);
}

.sidebar-logout {
    color: #ee4b55;
}

.sidebar-logout:hover {
    color: #d93742;
    background: #fff1f2;
}

.invite-card {
    margin-top: auto;
    padding: 17px;
    border: 1px solid #ded2ff;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff, #faf7ff);
}

.invite-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.invite-card-title i {
    color: var(--customer-primary);
    font-size: 20px;
}

.invite-card p {
    margin-bottom: 14px;
    color: var(--customer-muted);
    font-size: 12px;
    line-height: 1.6;
}

.customer-card {
    padding: 24px;
    background: var(--customer-card);
    border: 1px solid var(--customer-border);
    border-radius: var(--customer-radius);
    box-shadow: var(--customer-shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.customer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--customer-primary);
    font-size: 13px;
    font-weight: 700;
}

.customer-link:hover {
    color: var(--customer-primary-dark);
}

.customer-btn-primary {
    color: #fff;
    background: var(--customer-primary);
    border-color: var(--customer-primary);
}

.customer-btn-primary:hover,
.customer-btn-primary:focus {
    color: #fff;
    background: var(--customer-primary-dark);
    border-color: var(--customer-primary-dark);
}

.customer-btn-outline {
    color: var(--customer-primary);
    background: #fff;
    border: 1px solid #b99dfd;
}

.customer-btn-outline:hover,
.customer-btn-outline:focus {
    color: #fff;
    background: var(--customer-primary);
    border-color: var(--customer-primary);
}

.customer-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: var(--customer-muted);
    text-align: center;
}

.customer-empty-state i {
    color: #c3b1f8;
    font-size: 36px;
}

.customer-empty-state p {
    margin: 0;
}

.customer-footer {
    padding: 0 0 28px;
    color: var(--customer-muted);
    text-align: center;
    font-size: 13px;
}

.customer-modal {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(36, 28, 72, 0.18);
}

.customer-modal .modal-header,
.customer-modal .modal-footer {
    border-color: var(--customer-border);
}

.profile-image-preview-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-image-preview {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
}

.profile-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-control {
    min-height: 46px;
    border-color: #e1e2e9;
    border-radius: 11px;
}

.form-control:focus {
    border-color: #b89efc;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.12);
}

.customer-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 44px);
    padding: 14px 18px;
    color: #fff;
    background: #252835;
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: 0.25s ease;
}

.customer-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.customer-toast i {
    color: #7ee2a8;
}

@media (max-width: 991.98px) {
    .customer-sidebar {
        position: fixed;
        top: 74px;
        left: 0;
        z-index: 1035;
        width: min(320px, 88vw);
        min-height: calc(100vh - 74px);
        border-radius: 0 18px 18px 0;
        box-shadow: 20px 0 60px rgba(25, 19, 54, 0.14);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .customer-sidebar.is-open {
        transform: translateX(0);
    }

    body.customer-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 575.98px) {
    .customer-page {
        padding-top: 18px;
    }

    .customer-card {
        padding: 18px;
    }

    .customer-brand span:last-child {
        display: none;
    }

    .customer-brand-logo {
        max-width: 145px;
        height: 38px;
    }
}
