.customer-area {
    min-height: 72vh;
    padding: 128px 0 84px;
    background:
        radial-gradient(circle at 8% 8%, rgba(92, 157, 245, 0.17), transparent 30%),
        radial-gradient(circle at 88% 92%, rgba(200, 243, 241, 0.4), transparent 34%),
        linear-gradient(180deg, #f8fcff 0%, #f4f8ff 100%);
}

.customer-area-wrap {
    position: relative;
}

.customer-content-surface {
    display: grid;
    gap: 22px;
}

.customer-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.customer-alert i {
    font-size: 1.08rem;
}

.customer-alert-success {
    color: #0f5132;
    background: rgba(35, 192, 131, 0.16);
    border: 1px solid rgba(35, 192, 131, 0.28);
}

.customer-alert-error {
    color: #9b2c2c;
    background: rgba(243, 108, 120, 0.14);
    border: 1px solid rgba(243, 108, 120, 0.24);
}

.customer-sidebar {
    position: sticky;
    top: 108px;
    border: 1px solid rgba(92, 157, 245, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 39, 74, 0.09);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.customer-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(92, 157, 245, 0.14);
}

.customer-sidebar-head strong {
    display: block;
    color: #303047;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.customer-sidebar-head small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.customer-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(92, 157, 245, 0.2);
    border-radius: 10px;
    color: #2f80ed;
    background: #f8fcff;
    font-size: 1.2rem;
}

.customer-sidebar-nav {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.customer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #344155;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.customer-link span:not(.customer-menu-badge) {
    min-width: 0;
}

.customer-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    background: #f36c78;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(243, 108, 120, 0.22);
}

.customer-link.active .customer-menu-badge {
    color: #2f80ed;
    background: #ffffff;
    box-shadow: none;
}

.customer-link i {
    font-size: 1rem;
}

.customer-link:hover {
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.12);
    transform: translateY(-1px);
}

.customer-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #5c9df5 0%, #2f80ed 100%);
    box-shadow: 0 14px 28px rgba(47, 128, 237, 0.28);
}

.customer-link.active i {
    color: #ffffff;
}

.customer-logout-form {
    padding: 0 14px 14px;
}

.customer-logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(243, 108, 120, 0.3);
    border-radius: 12px;
    color: #c53949;
    background: rgba(243, 108, 120, 0.1);
    font-size: 0.92rem;
    font-weight: 900;
    transition: transform 180ms ease, background 180ms ease;
}

.customer-logout-button:hover {
    transform: translateY(-1px);
    background: rgba(243, 108, 120, 0.16);
}

.customer-hero-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(140deg, #5c9df5 0%, #2f80ed 58%, #1d5fbd 100%);
    box-shadow: 0 24px 52px rgba(47, 128, 237, 0.24);
}

.customer-hero-eyebrow {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.customer-hero-card h2,
.customer-points-hero h2 {
    margin: 14px 0 0;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.12;
}

.customer-hero-card p,
.customer-points-hero p {
    max-width: 620px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    line-height: 1.56;
}

.customer-points-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.customer-points-pill i {
    font-size: 1.25rem;
}

.customer-points-pill small {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.customer-points-pill strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 900;
}

.customer-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.customer-metric-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(92, 157, 245, 0.14);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 39, 74, 0.06);
}

.customer-metric-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.14);
    font-size: 1.18rem;
}

.customer-metric-card strong {
    display: block;
    color: #2f3447;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
}

.customer-metric-card small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
}

.customer-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.customer-quick-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 122px;
    padding: 18px;
    border: 1px solid rgba(92, 157, 245, 0.15);
    border-radius: 18px;
    color: #2f3447;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 39, 74, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.customer-quick-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.14);
    font-size: 1.05rem;
}

.customer-quick-card strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    line-height: 1.2;
}

.customer-quick-card .customer-menu-badge {
    margin-left: 0;
}

.customer-quick-card p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
}

.customer-quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 128, 237, 0.34);
    box-shadow: 0 20px 34px rgba(15, 39, 74, 0.09);
}

.customer-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customer-panel-card {
    padding: 24px;
    border: 1px solid rgba(92, 157, 245, 0.14);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 39, 74, 0.06);
}

.customer-panel-card > header h3,
.customer-panel-head h3 {
    margin: 0;
    color: #303047;
    font-size: 1.2rem;
    font-weight: 900;
}

.customer-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.customer-panel-head p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
}

.customer-panel-head-stack {
    align-items: flex-start;
}

.customer-panel-head a {
    color: #2f80ed;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

.customer-next-service strong,
.customer-default-address strong {
    display: block;
    color: #303047;
    font-size: 1.03rem;
    font-weight: 900;
}

.customer-next-service p,
.customer-default-address p {
    margin: 8px 0 0;
    color: #6b7280;
    font-weight: 700;
    line-height: 1.5;
}

.customer-default-address small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
}

.customer-default-address a {
    display: inline-flex;
    margin-top: 10px;
    color: #2f80ed;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.customer-history-list {
    display: grid;
    gap: 10px;
}

.customer-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(92, 157, 245, 0.12);
    border-radius: 14px;
    background: #f8fcff;
}

.customer-history-item strong {
    color: #303047;
    font-weight: 900;
}

.customer-history-item p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 0.86rem;
    font-weight: 700;
}

.customer-history-meta {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.customer-table-wrap {
    overflow-x: auto;
}

.customer-table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
}

.customer-table th,
.customer-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(92, 157, 245, 0.12);
    color: #374151;
    font-size: 0.9rem;
    text-align: left;
    vertical-align: top;
}

.customer-table th {
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-table td strong {
    color: #2f3447;
    font-weight: 900;
}

.customer-table td small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 700;
}

.customer-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-pending {
    color: #925b00;
    background: rgba(255, 183, 43, 0.2);
}

.status-confirmed,
.status-in_process {
    color: #0d3f88;
    background: rgba(92, 157, 245, 0.22);
}

.status-completed {
    color: #0f5132;
    background: rgba(35, 192, 131, 0.18);
}

.status-cancelled {
    color: #9b2c2c;
    background: rgba(243, 108, 120, 0.2);
}

.payment-pending {
    color: #925b00;
    background: rgba(255, 183, 43, 0.2);
}

.payment-paid,
.payment-completed {
    color: #0f5132;
    background: rgba(35, 192, 131, 0.18);
}

.payment-failed {
    color: #9b2c2c;
    background: rgba(243, 108, 120, 0.2);
}

.customer-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(92, 157, 245, 0.24);
    border-radius: 999px;
    color: #2f80ed;
    background: #f8fcff;
    font-size: 0.8rem;
    font-weight: 900;
    transition: transform 180ms ease, background 180ms ease;
}

.customer-inline-button:hover {
    transform: translateY(-1px);
    background: rgba(92, 157, 245, 0.14);
}

.customer-inline-button.danger {
    border-color: rgba(243, 108, 120, 0.26);
    color: #c53949;
    background: rgba(243, 108, 120, 0.1);
}

.customer-inline-button.danger:hover {
    background: rgba(243, 108, 120, 0.16);
}

.customer-points-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(145deg, #5c9df5 0%, #2f80ed 50%, #1d5fbd 100%);
    box-shadow: 0 24px 50px rgba(47, 128, 237, 0.23);
}

.customer-points-hero > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 2rem;
}

.customer-positive {
    color: #0f8a5b;
    font-weight: 900;
}

.customer-negative {
    color: #c53949;
    font-weight: 900;
}

.customer-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 220px;
    padding: 30px 20px;
    border: 1px dashed rgba(92, 157, 245, 0.26);
    border-radius: 18px;
    background: #f8fcff;
    text-align: center;
}

.customer-empty-state > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.14);
    font-size: 1.6rem;
}

.customer-empty-state h3 {
    margin: 0;
    color: #303047;
    font-size: 1.06rem;
    font-weight: 900;
}

.customer-empty-state p {
    max-width: 480px;
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
}

.customer-empty-state-compact {
    min-height: 0;
    padding: 20px 18px;
}

.customer-address-form {
    display: grid;
    gap: 18px;
}

.customer-address-collapse {
    margin-top: 6px;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customer-form-field {
    display: grid;
    gap: 7px;
}

.customer-form-field-wide {
    grid-column: 1 / -1;
}

.customer-form-field label,
.customer-checkbox span {
    color: #3b4557;
    font-size: 0.86rem;
    font-weight: 900;
}

.customer-form-field input,
.customer-form-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid rgba(92, 157, 245, 0.24);
    border-radius: 12px;
    color: #2f3447;
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.customer-form-field .bootstrap-select,
.customer-form-field .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
}

.customer-form-field .bootstrap-select > .dropdown-toggle {
    min-height: 48px;
    border: 1px solid rgba(92, 157, 245, 0.24);
    border-radius: 12px;
    color: #2f3447;
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
}

.customer-form-field .bootstrap-select > .dropdown-toggle .filter-option {
    padding: 11px 10px;
}

.customer-form-field .bootstrap-select > .dropdown-toggle .filter-option-inner-inner {
    color: #2f3447;
    font-size: 0.92rem;
    font-weight: 700;
}

.customer-form-field .bootstrap-select .dropdown-menu {
    border: 1px solid rgba(92, 157, 245, 0.18);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 39, 74, 0.12);
    overflow: hidden;
}

.customer-form-field .bootstrap-select .bs-searchbox input {
    border: 1px solid rgba(92, 157, 245, 0.24);
    border-radius: 10px;
}

.customer-form-field .bootstrap-select .dropdown-item {
    color: #344155;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 10px 12px;
}

.customer-form-field .bootstrap-select .dropdown-item.active,
.customer-form-field .bootstrap-select .dropdown-item:active {
    color: #ffffff;
    background: linear-gradient(135deg, #5c9df5 0%, #2f80ed 100%);
}

.customer-form-field .bootstrap-select .dropdown-item:hover {
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.12);
}

.customer-form-field .bootstrap-select.disabled > .dropdown-toggle,
.customer-form-field .bootstrap-select > .dropdown-toggle[disabled] {
    background: rgba(248, 252, 255, 0.9);
    cursor: not-allowed;
}

.customer-premium-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #5c9df5 50%),
        linear-gradient(135deg, #5c9df5 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px !important;
}

.customer-form-field select.customer-address-select {
    appearance: none;
    width: 100%;
    min-height: 48px;
    padding: 11px 34px 11px 14px;
    border: 1px solid rgba(92, 157, 245, 0.24);
    border-radius: 12px;
    color: #2f3447;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #5c9df5 50%),
        linear-gradient(135deg, #5c9df5 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    font-size: 0.92rem;
    font-weight: 700;
}

.customer-form-field .bootstrap-select.customer-address-select {
    width: 100% !important;
}

.customer-form-field .bootstrap-select.customer-address-select > select {
    display: none !important;
}

body > .bootstrap-select .dropdown-menu,
.bootstrap-select .dropdown-menu.show {
    z-index: 2070;
}

.customer-coverage-feedback {
    display: none;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
}

.customer-coverage-feedback.is-visible {
    display: block;
}

.customer-coverage-feedback.is-success {
    color: #0f5132;
    background: rgba(35, 192, 131, 0.18);
}

.customer-coverage-feedback.is-error {
    color: #9b2c2c;
    background: rgba(243, 108, 120, 0.2);
}

.customer-form-field input:focus,
.customer-form-field select:focus {
    border-color: rgba(47, 128, 237, 0.54);
    box-shadow: 0 0 0 3px rgba(92, 157, 245, 0.14);
}

.customer-form-field .bootstrap-select > .dropdown-toggle:focus,
.customer-form-field .bootstrap-select.show > .dropdown-toggle {
    border-color: rgba(47, 128, 237, 0.54);
    box-shadow: 0 0 0 3px rgba(92, 157, 245, 0.14);
}

.customer-map-card {
    display: grid;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(92, 157, 245, 0.2);
    border-radius: 16px;
    background: #f8fcff;
}

.customer-map-head strong {
    display: block;
    color: #303047;
    font-size: 0.96rem;
    font-weight: 900;
}

.customer-map-head small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
}

.customer-map-surface {
    width: 100%;
    min-height: 330px;
    border-radius: 14px;
    border: 1px solid rgba(92, 157, 245, 0.2);
    overflow: hidden;
}

.customer-map-surface .leaflet-control-zoom a {
    color: #2f80ed;
}

.customer-map-microcopy {
    margin: 0;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.customer-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-map-feedback {
    display: none;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
}

.customer-map-feedback.is-visible {
    display: block;
}

.customer-map-feedback.is-success {
    color: #0f5132;
    background: rgba(35, 192, 131, 0.18);
}

.customer-map-feedback.is-error {
    color: #9b2c2c;
    background: rgba(243, 108, 120, 0.2);
}

.customer-map-feedback.is-info {
    color: #0d3f88;
    background: rgba(92, 157, 245, 0.18);
}

.customer-map-feedback.is-loading {
    color: #0d3f88;
    background: rgba(92, 157, 245, 0.2);
}

.customer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.customer-checkbox input {
    margin-top: 3px;
}

.customer-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customer-form-actions .cln-btn-primary,
.customer-form-actions .cln-btn-light {
    min-height: 44px;
    padding: 12px 18px;
}

.customer-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customer-address-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(92, 157, 245, 0.16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 39, 74, 0.05);
}

.customer-address-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-address-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.customer-address-head strong {
    color: #303047;
    font-size: 1rem;
    font-weight: 900;
}

.customer-address-card p {
    margin: 0;
    color: #4b5563;
    font-weight: 700;
    line-height: 1.5;
}

.customer-address-card small {
    display: block;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.customer-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
}

.customer-address-actions form {
    margin: 0;
}

.customer-address-maps {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.customer-address-maps a {
    color: #2f80ed;
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
}

.customer-support-shell {
    overflow: hidden;
}

.customer-support-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
    min-height: 640px;
    border: 1px solid rgba(92, 157, 245, 0.14);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.customer-support-list-panel {
    border-right: 1px solid rgba(92, 157, 245, 0.14);
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.customer-support-tools {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid rgba(92, 157, 245, 0.12);
}

.customer-support-tools input,
.customer-support-filter,
.customer-support-modal-card select,
.customer-support-modal-card textarea,
.customer-support-modal-card input,
.customer-support-reply textarea,
.customer-support-reply input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid rgba(92, 157, 245, 0.22);
    border-radius: 12px;
    color: #2f3447;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
}

.customer-support-ticket-list {
    max-height: 560px;
    overflow: auto;
}

.customer-support-ticket-item {
    display: grid;
    gap: 7px;
    width: 100%;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid rgba(92, 157, 245, 0.12);
    color: #303047;
    background: transparent;
    text-align: left;
    transition: background 180ms ease, transform 180ms ease;
}

.customer-support-ticket-item:hover,
.customer-support-ticket-item.active {
    background: rgba(92, 157, 245, 0.12);
}

.customer-support-ticket-item.active {
    box-shadow: inset 4px 0 0 #2f80ed;
}

.customer-support-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.customer-support-ticket-badges {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.customer-support-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #5c9df5 0%, #2f80ed 100%);
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(47, 128, 237, 0.24);
}

.customer-support-ticket-top strong,
.customer-support-ticket-title {
    font-weight: 900;
}

.customer-support-ticket-title {
    overflow: hidden;
    color: #303047;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-support-ticket-meta {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
}

.customer-support-no-results,
.customer-support-loading,
.customer-support-empty-messages {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 24px;
    color: #6b7280;
    font-weight: 800;
    text-align: center;
}

.customer-support-empty-messages.is-error {
    color: #c53949;
}

.customer-support-conversation-panel {
    min-width: 0;
    background: #ffffff;
}

.customer-support-empty {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 640px;
    padding: 32px;
    text-align: center;
}

.customer-support-empty span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.14);
    font-size: 2rem;
}

.customer-support-empty h3 {
    margin: 14px 0 0;
    color: #303047;
    font-weight: 900;
}

.customer-support-empty p {
    margin: 8px 0 0;
    color: #6b7280;
    font-weight: 700;
}

.customer-support-conversation {
    display: flex;
    flex-direction: column;
    min-height: 640px;
}

.customer-support-conversation-head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(92, 157, 245, 0.14);
    background: linear-gradient(135deg, rgba(92, 157, 245, 0.12), rgba(200, 243, 241, 0.22));
}

.customer-support-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.customer-support-conversation-head h4 {
    margin: 0;
    color: #303047;
    font-size: 1.04rem;
    font-weight: 900;
}

.customer-support-conversation-head p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 0.84rem;
    font-weight: 700;
}

.customer-support-messages {
    flex: 1 1 auto;
    height: 420px;
    min-height: 420px;
    padding: 18px;
    overflow: auto;
    background:
        radial-gradient(circle at 12px 12px, rgba(92, 157, 245, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, #f8fcff 0%, #f3f8ff 100%);
    background-size: 28px 28px, auto;
}

.customer-support-typing {
    padding: 8px 18px 12px;
    color: #6b7280;
    background: #f3f8ff;
    border-top: 1px solid rgba(92, 157, 245, 0.1);
    font-size: 0.8rem;
    font-weight: 800;
}

.customer-support-typing[hidden] {
    display: none;
}

.customer-support-typing > span:first-child {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.customer-support-typing-dots {
    display: inline-flex;
    gap: 3px;
}

.customer-support-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #2f80ed;
    animation: customerSupportTypingDot 1s infinite ease-in-out;
}

.customer-support-typing-dots span:nth-child(2) {
    animation-delay: 120ms;
}

.customer-support-typing-dots span:nth-child(3) {
    animation-delay: 240ms;
}

.customer-support-closed-notice {
    padding: 12px 14px;
    color: #925b00;
    background: rgba(255, 183, 43, 0.18);
    border-top: 1px solid rgba(255, 183, 43, 0.22);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.45;
}

.customer-support-closed-notice[hidden] {
    display: none;
}

.customer-support-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.customer-support-message.mine {
    flex-direction: row-reverse;
}

.customer-support-message.is-new {
    animation: customerSupportMessageIn 200ms ease-out both;
}

.customer-support-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #2f80ed;
    background: #ffffff;
    border: 1px solid rgba(92, 157, 245, 0.22);
    font-size: 0.72rem;
    font-weight: 900;
}

.customer-support-bubble {
    max-width: min(76%, 680px);
    padding: 12px 14px;
    border: 1px solid rgba(92, 157, 245, 0.14);
    border-radius: 16px 16px 16px 6px;
    color: #374151;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 39, 74, 0.08);
}

.customer-support-message.mine .customer-support-bubble {
    border-color: transparent;
    border-radius: 16px 16px 6px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #5c9df5 0%, #2f80ed 100%);
}

.customer-support-message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.customer-support-message-head strong {
    color: inherit;
    font-size: 0.82rem;
    font-weight: 900;
}

.customer-support-message-head span {
    padding: 3px 7px;
    border-radius: 999px;
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.12);
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-support-message.mine .customer-support-message-head span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.customer-support-bubble p {
    margin: 7px 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
}

.customer-support-bubble small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
}

.customer-support-message.mine .customer-support-bubble small {
    color: rgba(255, 255, 255, 0.76);
}

.customer-support-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #2f80ed;
    background: rgba(92, 157, 245, 0.12);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.customer-support-message.mine .customer-support-attachment {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.customer-support-reply {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid rgba(92, 157, 245, 0.14);
    background: #ffffff;
}

.customer-support-reply textarea,
.customer-support-modal-card textarea {
    resize: vertical;
}

.customer-support-attachment-row {
    display: grid;
    gap: 5px;
}

.customer-support-attachment-row small,
.customer-support-modal-card small {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
}

.customer-support-form-error {
    padding: 10px 12px;
    border: 1px solid rgba(243, 108, 120, 0.24);
    border-radius: 12px;
    color: #9b2c2c;
    background: rgba(243, 108, 120, 0.14);
    font-size: 0.84rem;
    font-weight: 800;
}

.customer-support-modal[hidden],
.customer-support-conversation[hidden],
.customer-support-empty[hidden] {
    display: none;
}

.customer-support-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: grid;
    place-items: center;
    padding: 24px;
}

.customer-support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 74, 0.42);
    backdrop-filter: blur(6px);
}

.customer-support-modal-card {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(15, 39, 74, 0.26);
}

.customer-support-modal-card header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.customer-support-modal-card h3 {
    margin: 0;
    color: #303047;
    font-size: 1.18rem;
    font-weight: 900;
}

.customer-support-modal-card p {
    margin: 7px 0 0;
    color: #6b7280;
    font-weight: 700;
}

.customer-support-modal-open {
    overflow: hidden;
}

@keyframes customerSupportMessageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes customerSupportTypingDot {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 1199.98px) {
    .customer-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-quick-grid {
        grid-template-columns: 1fr;
    }

    .customer-address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .customer-area {
        padding-top: 108px;
    }

    .customer-sidebar {
        position: static;
        top: auto;
    }

    .customer-panel-grid,
    .customer-form-grid {
        grid-template-columns: 1fr;
    }

    .customer-support-layout {
        grid-template-columns: 1fr;
    }

    .customer-support-list-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(92, 157, 245, 0.14);
    }

    .customer-support-ticket-list {
        max-height: 340px;
    }

    .customer-support-conversation,
    .customer-support-empty {
        min-height: 560px;
    }

    .customer-hero-card,
    .customer-points-hero,
    .customer-history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-history-meta {
        width: 100%;
        justify-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .customer-area {
        padding-bottom: 66px;
    }

    .customer-panel-card {
        padding: 18px;
        border-radius: 16px;
    }

    .customer-map-surface {
        min-height: 276px;
    }

    .customer-map-actions {
        flex-direction: column;
    }

    .customer-map-actions .cln-btn-primary,
    .customer-map-actions .cln-btn-light,
    .customer-map-actions .customer-inline-button,
    .customer-form-actions .cln-btn-primary,
    .customer-form-actions .cln-btn-light,
    .customer-support-reply .cln-btn-primary {
        width: 100%;
    }

    .customer-support-bubble {
        max-width: 88%;
    }

    .customer-support-modal {
        padding: 12px;
    }

    .customer-support-modal-card {
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

    .customer-support-modal-card header {
        flex-direction: column;
    }
}
