/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #f5a623;
    --secondary: #ff7a00;
    --black: #0d0d0d;
    --white: #ffffff;
    --grey: #aaaaaa;
    --sidebar-w: 258px;
    --sidebar-bg: #111111;
    --content-bg: #f4f5f9;
    --card-bg: #ffffff;
    --text-dark: #1a2332;
    --text-muted: #7a8499;
    --border: #ebebeb;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .07);
    --shadow-md: 0 6px 28px rgba(0, 0, 0, .10);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .13);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --transition: all .28s ease;
}

/* ── demo chrome only ── */
.user-main {
    background: #f0f2f5;
    margin: 0;
}

/* ═══════════════  DASHBOARD SECTION  ═══════════════ */
.ds-wrap {
    display: flex;
    gap: 0;
    background: #f4f5f9;
    min-height: 82vh;
    font-family: 'Poppins', sans-serif;
}

/* ── LEFT PANEL ── */
.ds-left {
    width: 230px;
    flex-shrink: 0;
    background: #0f0f0f;
    display: flex;
    flex-direction: column;
    padding: 28px 0 24px;
    position: relative;
}

.ds-user {
    padding: 0 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    text-align: center;
}

.ds-user-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.ds-user-avatar-wrap img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #f5a623;
}

.ds-user-avatar-wrap .notif-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0f0f0f;
    font-size: .55rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.ds-user-name {
    font-size: .9rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 2px;
}

.ds-user-email {
    font-size: .68rem;
    color: rgba(255, 255, 255, .38);
    font-weight: 400;
}

.ds-nav {
    padding: 18px 0;
    flex: 1;
}

.ds-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    color: rgba(255, 255, 255, .42);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s ease;
    position: relative;
    margin: 15px 0;
}

.ds-nav-link .ds-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    background: rgba(255, 255, 255, .05);
    transition: all .22s ease;
    flex-shrink: 0;
}

.ds-nav-link:hover {
    color: rgba(255, 255, 255, .78);
}

.ds-nav-link:hover .ds-nav-icon {
    background: rgba(245, 166, 35, .15);
    color: #f5a623;
}

.ds-nav-link.active {
    color: #fff;
    background: rgba(245, 166, 35, .08);
    border-radius: 0 15px 15px 0;
}

.ds-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: linear-gradient(180deg, #f5a623, #ff7a00);
    border-radius: 0 3px 3px 0;
}

.ds-nav-link.active .ds-nav-icon {
    background: linear-gradient(135deg, #f5a623, #ff7a00);
    color: #fff;
}





/* ── CENTRE CONTENT ── */
.ds-center {
    flex: 1;
    padding: 28px 24px;
    overflow-x: hidden;
    background: #000;
}

.ds-content {
    background-color: #f4f5f9;
    border-radius: 20px;
    height: 100%;
    padding: 2% 3%;
}

.ds-head-avatars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ds-head-avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -8px;
}

.ds-head-avatars img:first-child {
    margin-left: 0;
}

.ds-head-add {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px dashed #ccc;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #bbb;
    transition: all .2s;
}

.ds-head-add:hover {
    border-color: #f5a623;
    color: #f5a623;
}

.ds-cat-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.ds-cat-top span {
    font-size: .73rem;
    font-weight: 600;
    color: #333;
}

.ds-cat-top strong {
    font-size: .73rem;
    font-weight: 700;
    color: #111;
    font-family: 'Montserrat', sans-serif;
}

.ds-progress {
    height: 5px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.ds-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #f5a623, #ff7a00);
    transition: width .6s ease;
}




/* OTHER SECTIONS  */


/* ─────────────── MAIN ─────────────── */
.cp-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .3s cubic-bezier(.4, 0, .2, 1);
}

/* ── TOPBAR ── */
.cp-topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.cp-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cp-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.cp-hamburger:hover {
    background: var(--content-bg);
}

.cp-topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

.cp-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--content-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .88rem;
    position: relative;
    transition: var(--transition);
}

.cp-topbar-btn:hover {
    background: var(--border);
    color: var(--text-dark);
}

.cp-topbar-btn .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    position: absolute;
    top: 7px;
    right: 7px;
    border: 2px solid #fff;
}

.cp-topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--primary);
}

/* ── CONTENT AREA ── */
.cp-content {
    padding: 28px;
    flex: 1;
}

/* sections */
/* .cp-section {
    display: none;
}

.cp-section.active {
    display: block;
} */

/* ── PAGE HEADER ── */
.cp-page-header {
    margin-bottom: 26px;
}

.cp-page-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.cp-page-header p {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── STAT CARD ── */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 22px 22px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-info {}

.stat-card .stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card .stat-change {
    font-size: .72rem;
    font-weight: 600;
    display: none;
}

.stat-card .stat-change.up {
    color: #22c55e;
}

.stat-card .stat-change.down {
    color: #ef4444;
}

.stat-card .stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── GENERIC CARD ── */
.cp-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cp-card-header {
    padding: 18px 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cp-card-header h5 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.cp-card-header a,
.cp-card-header button {
    font-size: .75rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cp-card-header a:hover {
    opacity: .75;
}

.cp-card-body {
    padding: 18px 22px 22px;
}

/* ── ACTIVITY ITEM ── */
.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}

.activity-text {
    flex: 1;
}

.activity-text strong {
    font-size: .8rem;
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

.activity-text span {
    font-size: .72rem;
    color: var(--text-muted);
}

.activity-time {
    font-size: .68rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── BOOKING TABLE ── */
.cp-table {
    width: 100%;
    border-collapse: collapse;
}

.cp-table thead th {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    background: #fafafa;
}

.cp-table tbody td {
    padding: 13px 14px;
    font-size: .8rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cp-table tbody tr:last-child td {
    border-bottom: none;
}

.cp-table tbody tr:hover td {
    background: #fafbfc;
}

/* ── STATUS BADGE ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
}

.status-badge.completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.pending {
    background: #fef9c3;
    color: #ca8a04;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.confirmed {
    background: #dbeafe;
    color: #2563eb;
}

/* ── QUICK-ACTION CARD ── */
.quick-action {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.quick-action:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.quick-action .qa-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 12px;
}

.quick-action h6 {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.quick-action p {
    font-size: .7rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── FORM STYLING ── */
.cp-form-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.cp-form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: .82rem;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    background: #fff;
    transition: var(--transition);
    width: 100%;
}

.cp-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, .12);
}

/* ── PRIMARY BTN ── */
.btn-saki {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 11px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-saki:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, .3);
}

.btn-saki-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--secondary);
    font-size: .82rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1.5px solid var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-saki-outline:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
}

/* ── SERVICE CARD (Book Service) ── */
/* ───────── SERVICE BOOKING CARDS ───────── */

#sec-book-service .row {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 24px;
}

.service-book-card {
    background: #f4f5f9;
    border-radius: 20px;
    overflow: hidden;
    /* border: 1px solid #ececec; */
    height: 100%;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    /* box-shadow: 0 4px 14px rgba(0,0,0,0.04); */
}

/* ── VIEW TICKET BUTTON ── */
.btn-view-ticket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: .73rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    background: transparent;
    border: 1.5px solid var(--secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
    margin-top: 4px;
}

.btn-view-ticket:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
}

/* ── TICKET DETAIL MODAL ── */
.tkt-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.tkt-modal-header {
    background: #111;
    padding: 20px 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tkt-modal-id {
    font-size: .85rem;
    font-weight: 800;
    color: rgba(255,255,255,.55);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .5px;
}

.tkt-modal-body {
    padding: 24px;
    background: #f4f5f9;
}

/* Meta row */
.tkt-meta-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.tkt-meta-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tkt-meta-label {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tkt-meta-label i {
    color: var(--secondary);
}

.tkt-meta-value {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

/* Section label */
.tkt-section-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Issue box */
.tkt-issue-box {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: .82rem;
    color: var(--text-dark);
    line-height: 1.65;
    border: 1px solid #ebebeb;
    margin-bottom: 22px;
    font-family: 'Poppins', sans-serif;
}

/* Timeline */
.tkt-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tkt-timeline-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 20px;
}

.tkt-timeline-item:last-child {
    padding-bottom: 0;
}

/* vertical line */
.tkt-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.tkt-tl-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tkt-tl-dot.raised   { background: #dbeafe; color: #2563eb; }
.tkt-tl-dot.assigned { background: #fef9c3; color: #ca8a04; }
.tkt-tl-dot.reply    { background: #dcfce7; color: #16a34a; }
.tkt-tl-dot.update   { background: #f3e8ff; color: #9333ea; }

.tkt-tl-body {
    flex: 1;
    padding-top: 4px;
}

.tkt-tl-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.tkt-tl-desc {
    font-size: .74rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tkt-tl-time {
    font-size: .65rem;
    color: #bbb;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    padding-top: 6px;
}

/* Footer */
.tkt-modal-footer {
    background: #fff;
    border-top: 1px solid #ebebeb;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-cancel-ticket {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-cancel-ticket:hover {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: transparent !important;
}

.btn-cancel-ticket:disabled,
.btn-cancel-ticket.disabled {
    opacity: .45;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 575px) {
    .tkt-meta-row {
        grid-template-columns: 1fr;
    }

    .tkt-modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .tkt-modal-footer .btn-saki,
    .tkt-modal-footer .btn-cancel-ticket {
        width: 100%;
        justify-content: center;
    }
}


/* ── Support Reply Box ── */
.tkt-support-reply {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    border-left: 3px solid var(--secondary);
    padding: 16px 18px;
}

.tkt-reply-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    /* margin-bottom: 10px; */
}

.tkt-reply-meta i {
    color: var(--secondary);
    font-size: .85rem;
}

.tkt-reply-agent {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

.tkt-reply-time {
    font-size: .68rem;
    color: var(--text-muted);
    margin-left: auto;
}

.tkt-reply-text {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-family: 'Poppins', sans-serif;
}

.tkt-no-reply {
    font-size: .78rem;
    color: #bbb;
    font-style: italic;
}

.service-book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    border-color: #f5a623;
}

/* .service-book-card.selected {
    border: 2px solid #f5a623;
    box-shadow: 0 10px 30px rgba(245,166,35,0.18);
} */

.service-book-card .sbc-img {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f3f3f3;
    border-radius: 15px;
}

.service-book-card .sbc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}

.service-book-card:hover .sbc-img img {
    transform: scale(1.06);
}

.service-book-card .sbc-body {
    padding: 14px 8px 20px;
}

.service-book-card .sbc-body h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
}

.service-book-card .sbc-body p {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.5;
}

.service-book-card .sbc-price {
    font-size: 15px;
    font-weight: 700;
    color: #0f0f0f;
    /* font-family: 'Montserrat', sans-serif; */
    letter-spacing: 0px;
}

/* subtle top gradient */
.service-book-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 60%,
        rgba(0,0,0,0.02)
    ); */
    pointer-events: none;
}

/* better content spacing */
.ds-content {
    background: #f4f5f9;
    border-radius: 24px;
    padding: 34px;
}

/* responsive improvements */
@media (max-width: 991px) {
    .service-book-card .sbc-img {
        height: 170px;
    }
}

@media (max-width: 767px) {

    .ds-content {
        padding: 20px;
        border-radius: 18px;
    }

    .service-book-card .sbc-img {
        height: 140px;
    }

    .service-book-card .sbc-body {
        padding: 14px;
    }

    .service-book-card .sbc-body h6 {
        font-size: .9rem;
    }

    .service-book-card .sbc-price {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {

    #sec-book-service .row {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 16px;
    }

    .service-book-card {
        border-radius: 16px;
    }

    .service-book-card .sbc-img {
        height: 120px;
    }
}

/* ── PAYMENT CARD ── */
.payment-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.payment-history-item:last-child {
    border-bottom: none;
}

.phi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

.phi-info {
    flex: 1;
}

.phi-info strong {
    font-size: .82rem;
    font-weight: 600;
    display: block;
    color: var(--text-dark);
}

.phi-info span {
    font-size: .7rem;
    color: var(--text-muted);
}

.phi-amount {
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.phi-amount.debit {
    color: #ef4444;
}

.phi-amount.credit {
    color: #22c55e;
}

/* ── Interactive Star Rating (Write Review) ── */
#starRating {
    font-size: 1.6rem !important;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

#starRating i {
    color: var(--primary);
    pointer-events: auto;
    transition: transform .15s ease;
    font-size: 30px;
}

#starRating i:hover {
    transform: scale(1.2);
}

/* ── REVIEW CARD ── */
.review-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: var(--primary);
    font-size: .82rem;
    margin-bottom: 8px;
}

.review-text {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-meta img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.review-meta-info strong {
    font-size: .78rem;
    font-weight: 700;
    display: block;
    color: var(--text-dark);
}

.review-meta-info span {
    font-size: .68rem;
    color: var(--text-muted);
}

/* ── SUPPORT TICKET ── */
.ticket-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    margin-bottom: 12px;
}

.ticket-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.ticket-id {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: .5px;
}

.ticket-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 4px 0 6px;
}

.ticket-desc {
    font-size: .76rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ── PROFILE AVATAR UPLOAD ── */
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.profile-avatar-wrap img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.profile-avatar-wrap .edit-avatar-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .6rem;
    cursor: pointer;
    border: 2px solid #fff;
}

/* ── MINI CHART PLACEHOLDER ── */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.mini-chart .bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: #eee;
    transition: background .3s;
}

.mini-chart .bar.active {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

/* ── PROGRESS ── */
.cp-progress {
    background: #ebebeb;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-top: 6px;
}

.cp-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width .6s ease;
}

/* ── WELCOME BANNER ── */
.welcome-banner {
    background: linear-gradient(135deg, #111, #1e1e1e);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245, 166, 35, .25) 0%, transparent 70%);
    right: -40px;
    top: -60px;
    pointer-events: none;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 122, 0, .18) 0%, transparent 70%);
    left: 30%;
    bottom: -40px;
    pointer-events: none;
}

.welcome-text h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.welcome-text p {
    color: rgba(255, 255, 255, .5);
    font-size: .8rem;
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
    .cp-sidebar {
        transform: translateX(-100%);
    }

    .cp-sidebar.open {
        transform: translateX(0);
    }

    .cp-overlay.open {
        display: block;
    }

    .cp-main {
        margin-left: 0;
    }

    .cp-hamburger {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .cp-content {
        padding: 16px;
    }

    .cp-topbar {
        padding: 0 16px;
    }

    .welcome-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-card .stat-value {
        font-size: 1.35rem;
    }
}

/* ── ANIMATIONS ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cp-section.active {
    animation: fadeSlideUp .32s ease both;
}

/* scrollbar for content */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}












/* ══ RESPONSIVE ══ */

/* tablet: hide right panel, compress left */
@media (max-width: 1100px) {}

@media (max-width: 900px) {
    .ds-left {
        width: 200px;
    }
}

/* mobile: collapse sidebar into offcanvas */
@media (max-width: 767px) {
    .ds-wrap {
        position: relative;
        flex-direction: column;
        min-height: unset;
    }

    .ds-left {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 240px;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        z-index: 1000;
        padding-top: 20px;
    }

    .ds-left.open {
        transform: translateX(0);
    }


    .ds-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 290;
        backdrop-filter: blur(3px);
    }

    .ds-overlay.open {
        display: block;
    }

    .ds-center {
        padding: 20px 16px;
    }

    /* mobile topbar */
    .ds-mob-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #0f0f0f;
    }

    .ds-mob-bar-brand {
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: .9rem;
        color: #fff;
    }

    .ds-mob-bar-brand small {
        display: block;
        font-size: .58rem;
        color: #f5a623;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .ds-mob-open-btn {
        background: rgba(255, 255, 255, .08);
        border: none;
        border-radius: 9px;
        width: 36px;
        height: 36px;
        color: #fff;
        font-size: .9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .2s;
    }

    .ds-mob-open-btn:hover {
        background: rgba(245, 166, 35, .2);
        color: #f5a623;
    }

    /* sidebar close btn on mobile */
    .ds-sidebar-close {
        display: flex !important;
    }


}

@media (min-width: 768px) {
    .ds-mob-bar {
        display: none;
    }
}

/* sidebar close btn — hidden on desktop */
.ds-sidebar-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 14px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, .08);
    border: none;
    border-radius: 7px;
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.ds-sidebar-close:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}