/* Customer account — Nova Market */

.account-shell {
    padding: 28px 0 80px;
}
.dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}
.dash-side {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 18px;
    position: sticky;
    top: 96px;
}
.dash-user {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin: 0 auto 10px;
}
.avatar.sm { width: 36px; height: 36px; font-size: 0.85rem; margin: 0; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.4rem; }
.dash-user h4 { margin: 0; font-size: 1rem; }
.dash-user p { margin: 4px 0 0; color: var(--text-soft); font-size: 0.82rem; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a,
.dash-nav button,
.dash-logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}
.dash-nav a:hover,
.dash-nav button:hover { background: var(--off-white); }
.dash-nav a.active {
    background: var(--navy);
    color: #fff;
}
.nav-badge {
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.account-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}
.account-topbar .account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.refund-form textarea,
.review-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    margin: 10px 0 14px;
}
.account-topbar h1,
.account-greeting { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.account-sub { color: var(--text-soft); margin-top: 6px; }
.account-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.account-alert.success { background: #e8f6ee; color: #146c36; }
.account-alert.error { background: #fdecea; color: #a12626; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.kpi-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}
.kpi-card span { color: var(--text-soft); font-size: 0.8rem; }
.kpi-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    color: var(--navy);
}

.chart-card,
.panel-card,
.order-card,
.empty-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.chart-head,
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    gap: 10px;
}
.panel-head a { color: var(--orange); font-weight: 600; font-size: 0.88rem; }
.dash-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.mini-order,
.mini-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
}
.mini-note { flex-direction: column; gap: 4px; }
.mini-note.block { display: flex; margin-bottom: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mini-note.is-unread { border-color: var(--orange); }
.mini-order span,
.mini-note span,
.muted { color: var(--text-soft); font-size: 0.85rem; }
.mini-order-right { text-align: right; }
.mini-order-right a { color: var(--orange); font-size: 0.82rem; font-weight: 600; }
.wish-mini {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.wish-mini img {
    width: 54px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #EDF1F5;
}

.order-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.order-filter {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}
.order-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.order-card-top, .order-actions, .detail-line, .status-list div, .detail-totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.order-lines { margin: 12px 0; color: var(--text-soft); font-size: 0.9rem; }
.order-actions { margin-top: 14px; }
.order-detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.detail-line { padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-totals { margin-top: 14px; display: grid; gap: 8px; }
.detail-totals .total { font-size: 1.05rem; }
.status-list { display: grid; gap: 10px; }
.amount { font-weight: 700; color: var(--navy); }

.profile-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; }
.profile-identity { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.profile-section-title { margin: 22px 0 12px; font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.listing-form .field label,
.listing-form label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.listing-form input,
.listing-form select,
.listing-form textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.chat-thread { display: grid; gap: 10px; margin-bottom: 16px; }
.chat-bubble { padding: 12px 14px; border-radius: 14px; background: var(--off-white); max-width: 80%; }
.chat-bubble.mine { background: var(--navy); color: #fff; margin-left: auto; }
.chat-meta { font-size: 0.75rem; opacity: 0.75; margin-bottom: 4px; }
.chat-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; margin-bottom: 10px; }

.msg-inbox { display: grid; gap: 10px; }
.msg-thread {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}
.msg-thread.is-unread { border-color: var(--orange); }
.msg-search, .pay-search { display: flex; gap: 8px; margin-bottom: 16px; }
.msg-search input, .pay-search input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.pay-balance-card {
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
}
.pay-balance-card strong { display: block; font-size: 1.8rem; margin: 6px 0 10px; }
.pay-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 8px;
}

.account-tabbar {
    display: none;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 40;
}
.account-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-soft);
}
.account-tabbar a.active { color: var(--orange); }
.account-tabbar svg { width: 20px; height: 20px; }

.account-appbar { display: none; }
.notify-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(11,29,58,.45); z-index: 180;
}
.notify-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw);
    background: #fff; z-index: 190; transform: translateX(100%);
    transition: transform .28s ease; display: flex; flex-direction: column;
}
.notify-drawer.is-open { transform: translateX(0); }
.notify-drawer-head, .notify-drawer-actions { padding: 18px 18px 0; display: flex; justify-content: space-between; align-items: center; }
.notify-drawer-list { padding: 12px 18px 24px; overflow: auto; }
.notify-drawer-item { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notify-drawer-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.notify-dot {
    position: absolute; top: 2px; right: 2px;
    background: var(--orange); color: #fff; font-size: 0.62rem;
    min-width: 16px; height: 16px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.notify-bell, .appbar-icon { position: relative; background: none; border: 0; cursor: pointer; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

@media (max-width: 980px) {
    .dash-layout, .dash-split, .order-detail-grid, .profile-layout, .form-grid {
        grid-template-columns: 1fr;
    }
    .dash-side-desktop { display: none; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .account-tabbar { display: flex; }
    .account-shell { padding-bottom: 24px; }
}
