/* ==============================
   Account & Cart Pages — Modern Edition
   ============================== */

/* --- Account Section --- */
.account-section {
    background: var(--body-bg, #f7f9fc);
    min-height: 80vh;
}

/* Breadcrumb */
.account-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}
.account-section .breadcrumb-item a {
    color: var(--base-clr);
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
}
.account-section .breadcrumb-item a:hover { opacity: .7; }
.account-section .breadcrumb-item.active { color: #94a3b8; }

/* Section title */
.account-section .section-title {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--base-title, var(--title-clr));
    letter-spacing: -.01em;
}

/* --- Account Sidebar --- */
.account-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
    position: sticky;
    top: 100px;
    border: 1px solid #e8ecf1;
}
.dark-theme .account-sidebar {
    background: #1a2a38;
    border-color: #283e50;
}

.account-avatar {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--base-rgb),.12) 0%, rgba(var(--base-rgb),.04) 100%);
    border-radius: 50%;
    border: 2px solid rgba(var(--base-rgb),.1);
}
.account-avatar .material-icons { font-size: 38px; color: var(--base-clr); }

.account-nav { display: flex; flex-direction: column; gap: 3px; }
.account-nav hr { margin: 10px 0; border-color: #f1f5f9; }
.dark-theme .account-nav hr { border-color: #283e50; }

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--title-clr, #334155);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.account-nav-item:hover {
    background: rgba(var(--base-rgb),.06);
    color: var(--base-clr);
    transform: translateX(3px);
}
.account-nav-item.active {
    background: rgba(var(--base-rgb),.1);
    color: var(--base-clr);
    font-weight: 700;
}
.account-nav-item .material-icons { font-size: 20px; }
.account-nav-item.text-danger:hover { background: rgba(220,53,69,.06); transform: translateX(3px); }

/* --- Account Content --- */
.account-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
    border: 1px solid #e8ecf1;
}
.dark-theme .account-content {
    background: #1a2a38;
    border-color: #283e50;
}

/* --- Stat Cards --- */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecf1;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.dark-theme .stat-card { background: #1a2a38; border-color: #283e50; }
.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transform: translateY(-2px);
}
.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}
.stat-icon .material-icons { font-size: 24px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--title-clr); }
.stat-label { font-size: 13px; color: #94a3b8; font-weight: 500; }

.bg-primary-soft { background: rgba(59,130,246,.1); color: #3b82f6; }
.bg-primary-soft .material-icons { color: #3b82f6; }
.bg-warning-soft { background: rgba(245,158,11,.1); color: #f59e0b; }
.bg-warning-soft .material-icons { color: #f59e0b; }
.bg-success-soft { background: rgba(34,197,94,.1); color: #22c55e; }
.bg-success-soft .material-icons { color: #22c55e; }
.bg-info-soft { background: rgba(6,182,212,.1); color: #06b6d4; }
.bg-info-soft .material-icons { color: #06b6d4; }
.bg-danger-soft { background: rgba(239,68,68,.1); color: #ef4444; }
.bg-danger-soft .material-icons { color: #ef4444; }
.bg-base-soft { background: rgba(var(--base-rgb),.1); color: var(--base-clr); }
.bg-base-soft .material-icons { color: var(--base-clr); }

/* --- Buttons --- */
.btn-base {
    background: var(--base-clr);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    letter-spacing: .01em;
}
.btn-base:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--base-rgb),.3);
    color: #fff;
}
.btn-outline-base {
    border: 2px solid var(--base-clr);
    color: var(--base-clr);
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    transition: all .25s;
}
.btn-outline-base:hover {
    background: var(--base-clr);
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--base-rgb),.2);
}
.bg-base { background: var(--base-clr) !important; }
.text-base { color: var(--base-clr) !important; }

/* --- Cart Styles --- */
.cart-items-wrap { display: flex; flex-direction: column; gap: 16px; }

.cart-item-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    border: 1px solid #e8ecf1;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.dark-theme .cart-item-card { background: #1a2a38; border-color: #283e50; }
.cart-item-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    border-color: rgba(var(--base-rgb),.15);
}

.cart-item-img {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-title { font-size: 16px; font-weight: 700; color: var(--title-clr); margin-bottom: 4px; }
.cart-item-price { font-size: 19px; font-weight: 800; color: var(--base-clr); }

.qty-form { display: inline-flex; align-items: center; }
.qty-btn {
    width: 34px;
    height: 34px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s;
    color: var(--title-clr);
}
.qty-btn:hover {
    background: var(--base-clr);
    color: #fff;
    border-color: var(--base-clr);
    transform: scale(1.08);
}
.qty-input {
    width: 50px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    appearance: textfield;
    -moz-appearance: textfield;
    padding: 4px;
    transition: border-color .2s;
}
.qty-input:focus {
    border-color: rgba(var(--base-rgb),.4);
    outline: none;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.btn-remove {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 10px;
    transition: all .25s;
    cursor: pointer;
}
.btn-remove:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.08);
}

/* --- Cart Summary --- */
.cart-summary {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
    border: 2px solid rgba(var(--base-rgb),.1);
    position: relative;
    overflow: hidden;
}
.cart-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--base-clr), rgba(var(--base-rgb),.4));
    border-radius: 20px 20px 0 0;
}
.dark-theme .cart-summary { background: #1a2a38; border-color: #283e50; }
.summary-title { font-size: 18px; font-weight: 800; margin-bottom: 22px; color: var(--title-clr); }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 15px;
    color: var(--title-clr, #334155);
    font-weight: 500;
}
.summary-row.total {
    font-size: 21px;
    font-weight: 800;
    color: var(--base-clr);
    padding-top: 14px;
}
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: var(--base-clr);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    letter-spacing: .01em;
    box-shadow: 0 4px 16px rgba(var(--base-rgb),.25);
}
.btn-checkout:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--base-rgb),.35);
    color: #fff;
}
.btn-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--title-clr, #64748b);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all .25s;
}
.btn-continue:hover {
    border-color: var(--base-clr);
    color: var(--base-clr);
    background: rgba(var(--base-rgb),.03);
}

/* --- Checkout Styles --- */
.checkout-block {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    border: 1px solid #e8ecf1;
    transition: border-color .3s;
}
.checkout-block:hover {
    border-color: rgba(var(--base-rgb),.15);
}
.dark-theme .checkout-block { background: #1a2a38; border-color: #283e50; }
.checkout-block h5 {
    font-weight: 800;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}
.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--base-clr), rgba(var(--base-rgb),.7));
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(var(--base-rgb),.25);
}

/* Address selection */
.address-list { display: flex; flex-direction: column; gap: 10px; }
.address-card-select { display: block; cursor: pointer; }
.address-card-select input[type="radio"] { display: none; }
.address-card-body {
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.address-card-select:hover .address-card-body {
    border-color: rgba(var(--base-rgb),.25);
    background: rgba(var(--base-rgb),.02);
}
.address-card-select input:checked ~ .address-card-body {
    border-color: var(--base-clr);
    background: rgba(var(--base-rgb),.04);
    box-shadow: 0 4px 16px rgba(var(--base-rgb),.1);
}

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method-card { display: block; cursor: pointer; }
.payment-method-card input[type="radio"] { display: none; }
.payment-method-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.payment-method-card:hover .payment-method-body {
    border-color: rgba(var(--base-rgb),.25);
    background: rgba(var(--base-rgb),.02);
}
.payment-method-card input:checked ~ .payment-method-body {
    border-color: var(--base-clr);
    background: rgba(var(--base-rgb),.04);
    box-shadow: 0 4px 16px rgba(var(--base-rgb),.1);
}
.payment-method-body .material-icons {
    font-size: 30px;
    color: var(--base-clr);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--base-rgb),.08);
    border-radius: 12px;
    flex-shrink: 0;
}

/* Checkout items */
.checkout-items { display: flex; flex-direction: column; gap: 12px; }
.checkout-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background .2s;
}
.checkout-item:hover { background: rgba(var(--base-rgb),.01); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* --- Booking Cards --- */
.booking-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.booking-tab {
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    text-decoration: none;
    transition: all .25s;
    border: none;
}
.booking-tab:hover {
    background: rgba(var(--base-rgb),.1);
    color: var(--base-clr);
}
.booking-tab.active {
    background: var(--base-clr);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--base-rgb),.3);
}

.bookings-list { display: flex; flex-direction: column; gap: 16px; }

.booking-card {
    border-radius: 16px;
    border: 1px solid #e8ecf1;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    background: #fff;
}
.dark-theme .booking-card { background: #1a2a38; border-color: #283e50; }
.booking-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
    border-color: rgba(var(--base-rgb),.15);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf1;
}
.dark-theme .booking-card-header { background: #162230; border-color: #283e50; }
.booking-id { font-weight: 800; color: var(--title-clr); font-size: 0.95rem; }
.booking-date { font-size: 13px; color: #94a3b8; font-weight: 500; }

.booking-card-body { padding: 18px 22px; }
.booking-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    border-top: 1px solid #e8ecf1;
}
.dark-theme .booking-card-footer { border-color: #283e50; }

.booking-services { display: flex; flex-direction: column; gap: 8px; }
.booking-service-item { display: flex; align-items: center; gap: 10px; }
.booking-service-thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }

.booking-amount { font-size: 19px; font-weight: 800; color: var(--base-clr); }

/* Booking Status Badges */
.booking-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: .02em;
}
.status-pending { background: #fef3c7; color: #b45309; }
.status-accepted { background: #dbeafe; color: #1d4ed8; }
.status-ongoing { background: #cffafe; color: #0e7490; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-canceled { background: #fee2e2; color: #b91c1c; }

/* --- Detail Card --- */
.detail-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e8ecf1;
}
.dark-theme .detail-card { background: #1a2a38; border-color: #283e50; }
.detail-card h6 { font-weight: 800; margin-bottom: 18px; }

/* --- Star Rating Input --- */
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating-input input { display: none; }
.star-rating-input label { cursor: pointer; font-size: 30px; color: #e2e8f0; transition: all .2s; }
.star-rating-input label i { transition: all .2s; }
.star-rating-input input:checked ~ label i,
.star-rating-input label:hover i,
.star-rating-input label:hover ~ label i { color: #f59e0b; transform: scale(1.15); }

/* --- Wishlist --- */
.wishlist-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 4px;
}
.wishlist-remove-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.wishlist-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    transition: all .25s;
}
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-btn.active { color: #ef4444; }
.wishlist-btn i { font-size: 22px; }

/* --- Empty State --- */
.empty-state { padding: 60px 20px; }
.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: 50%;
    animation: pulse-glow 2.5s ease-in-out infinite;
}
.empty-state-icon .material-icons {
    font-size: 48px;
    color: #ef4444;
    opacity: .6;
}

/* --- Form Styles --- */
.account-section .form-control,
.account-section .form-select {
    border-radius: 12px;
    padding: 11px 16px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s;
}
.account-section .form-control:focus,
.account-section .form-select:focus {
    border-color: var(--base-clr);
    box-shadow: 0 0 0 4px rgba(var(--base-rgb),.08);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .account-sidebar { position: static; margin-bottom: 20px; border-radius: 16px; }
    .account-sidebar .account-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .account-nav-item { padding: 8px 14px; font-size: 13px; }
    .account-nav hr { display: none; }
    .account-user-info { display: none; }
}

@media (max-width: 575px) {
    .cart-item-card .row { flex-direction: column; text-align: center; gap: 12px; }
    .cart-item-card .col-auto { margin: 0 auto; }
    .qty-form { justify-content: center; }
    .booking-card-header { flex-direction: column; gap: 8px; }
    .booking-card-footer { flex-direction: column; gap: 10px; }
    .checkout-block { padding: 20px; border-radius: 14px; }
    .cart-summary { padding: 22px; border-radius: 16px; }
    .account-content { padding: 22px; border-radius: 16px; }
}
