/* XzsnyC Order Center — polished list UI */
.orders-shell {
    max-width: 980px;
}

.orders-title {
    flex: 1;
    min-width: 0;
}

/* Separate the wordmark from the page title so they never read as one label. */
.account-top .brand-inline {
    position: relative;
}

.account-top .brand-inline::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    width: 1px;
    height: 26px;
    background: var(--line-strong);
    transform: translateY(-50%);
}

.account-top .orders-title {
    padding-left: 1px;
}

.orders-title>span {
    font: 700 8px 'JetBrains Mono',monospace;
    letter-spacing: .14em;
    color: var(--muted);
}

.orders-title h1 {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.top-profile {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform var(--t) var(--ease),background var(--t) var(--ease),color var(--t) var(--ease);
}

.top-profile:hover {
    transform: translate(-1px,-1px);
    background: var(--blue);
    color: #fff;
}

.top-profile .icon {
    width: 17px;
}

.orders-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 25px;
    animation: orderHero .45s var(--ease) both;
}

.orders-hero h2 {
    margin-top: 8px;
    font-size: clamp(22px,4vw,31px);
    font-weight: 900;
    letter-spacing: -.06em;
}

.orders-hero .muted {
    max-width: 62ch;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.7;
}

.orders-hero .btn {
    flex: none;
}

.orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
}

.order-count {
    padding: 6px 9px;
    border: 1px solid var(--line);
    background: var(--blue-soft);
    color: var(--blue-deep);
    font: 700 9px 'JetBrains Mono',monospace;
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.order-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 9px/1 'JetBrains Mono',monospace;
    padding: 7px 9px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--muted-2);
    border-radius: 999px;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
}

.badge.s-done {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.badge.s-paid {
    background: #EAF0FF;
    color: var(--blue-deep);
    border-color: #B8C9FF;
}

.badge.s-pending {
    background: #FFF7D6;
    color: #8A5B00;
    border-color: #E8C95B;
}

.badge.s-failed {
    background: #FEF3F2;
    color: var(--err);
    border-color: #FECDCA;
}

.badge.s-expired {
    opacity: .7;
}

.order-meta {
    margin: 9px 0 14px;
    font: 600 9px 'JetBrains Mono',monospace;
    line-height: 1.65;
    color: var(--muted);
    word-break: break-all;
}

.order-error {
    color: var(--err);
    font-size: 11px;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 13px;
    background: var(--blue-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--blue);
}

.empty-icon .icon {
    width: 22px;
    height: 22px;
}

.card.center {
    text-align: center;
}

.card.center h2 {
    justify-content: center;
}

.card.center .btn {
    margin-top: 8px;
}

#state {
    padding: 3px 0;
    font-size: 10px;
}

#list {
    display: grid;
    gap: 14px;
}

#list .card {
    position: relative;
    overflow: hidden;
    padding: 20px 21px;
    animation: orderEnter 280ms var(--ease) both;
}

#list .card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--blue);
    opacity: .95;
}

#list .card:nth-child(2) {
    animation-delay: 45ms;
}

#list .card:nth-child(3) {
    animation-delay: 90ms;
}

#list .creds {
    margin: 15px 0;
}

.order-state-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.order-payment-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 12px;
    background: #F7F9FF;
    border: 1px solid var(--line);
    font-size: 10px;
    line-height: 1.6;
    color: var(--muted-2);
}

.order-payment-note .icon {
    width: 14px;
    color: var(--blue);
    flex: none;
}

.order-action {
    margin-top: 14px;
}

.order-action .btn {
    width: 100%;
    justify-content: center;
}

.creds .cred {
    background: #fff;
}

.creds .cred dd {
    font-size: 11px;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.order-id-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: var(--muted);
}

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

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

@media (max-width: 650px) {
    .account-top {
        gap: 10px;
    }
    .account-top .brand-inline::after {
        right: -5px;
        height: 24px;
    }
    .orders-shell {
        padding: 20px 14px 45px;
    }
    .orders-hero {
        display: grid;
        padding: 20px 18px;
    }
    .orders-hero .btn {
        width: 100%;
        justify-content: center;
    }
    .orders-title h1 {
        font-size: 16px;
    }
    .top {
        padding: 0 12px;
    }
    .top-profile {
        width: 36px;
        height: 36px;
    }
    .order-head h2 {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #list .card,
    .orders-hero {
        animation: none;
    }
}

/* Alat cari + filter status (halaman Pesanan) */
.order-tools {
    display: grid;
    gap: 10px;
}

.order-tools .search-box {
    position: relative;
    display: block;
}

.order-tools .search-box .icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.order-tools .search-box input {
    padding-left: 38px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: 700 10px 'JetBrains Mono',monospace;
    cursor: pointer;
    transition: background var(--t) var(--ease),color var(--t) var(--ease);
}

.chip:hover {
    background: var(--blue-soft);
}

.chip.is-on {
    background: var(--ink);
    color: #fff;
}

.panel-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px dashed var(--line);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: background var(--t) var(--ease);
}

.panel-link span {
    flex: 1;
}

.panel-link .icon {
    width: 16px;
    color: var(--blue);
}

.panel-link:hover {
    background: var(--blue-soft);
}
