/*
 * HEXODRAMA V15 - Member Account & Payment Page
 * Unminified, intentionally scoped to V15 class names.
 */

.hexo-payment-page,
.hexo-account-page {
    padding-top: 30px;
    padding-bottom: 65px;
}

.hexo-payment-card,
.hexo-account-card,
.hexo-history-section {
    background: #161820;
    border: 1px solid #323540;
    border-radius: 18px;
}

.hexo-payment-card {
    width: min(100%, 820px);
    margin-inline: auto;
    padding: clamp(18px, 4vw, 34px);
}

.hexo-back-link {
    display: inline-flex;
    margin-bottom: 20px;
    color: #d5d9e2;
    font-size: 13px;
    text-decoration: none;
}

.hexo-back-link:hover {
    color: #ff667f;
}

.hexo-label-top {
    color: #ff516c;
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.hexo-payment-heading h1,
.hexo-account-heading h1 {
    font-size: clamp(27px, 4.2vw, 39px);
    margin: 10px 0 7px;
    line-height: 1.15;
    color: #fff;
}

.hexo-payment-heading p,
.hexo-account-heading p {
    font-size: 14px;
    margin: 0;
    color: #a5aec1;
}

.hexo-payment-summary {
    display: grid;
    gap: 15px;
    margin: 23px 0;
    padding: 20px 0;
    border-top: 1px solid #363a47;
    border-bottom: 1px solid #363a47;
}

.hexo-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
}

.hexo-summary-row > span {
    color: #acb7ca;
    font-size: 12px;
    flex: 1;
}

.hexo-summary-row strong {
    color: #fff;
    font-size: 13px;
    text-align: right;
}

.hexo-long-id {
    overflow-wrap: anywhere;
}

.hexo-summary-row .hexo-total {
    color: #ff4c66;
    font-size: clamp(22px, 3vw, 28px);
}

.hexo-status-pending,
.hexo-status-review {
    color: #ffca76 !important;
}

.hexo-status-paid {
    color: #79e8a5 !important;
}

.hexo-status-rejected,
.hexo-status-cancel,
.hexo-status-expire {
    color: #ff8b95 !important;
}

.hexo-scan-section {
    display: grid;
    grid-template-columns: minmax(220px, 272px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 26px 0 25px;
}

.hexo-qr-frame {
    min-width: 0;
}

.hexo-qr-canvas-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 235px;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.hexo-qris-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1;
    image-rendering: pixelated;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    mix-blend-mode: normal !important;
    background: #fff !important;
}

.hexo-qr-progress,
.hexo-qr-error {
    color: #343b49;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.hexo-qr-error {
    color: #8c1025;
    font-weight: 700;
}

.hexo-download-qr,
.hexo-secondary-button {
    padding: 11px 13px;
    color: #e2e8f1;
    background: #242936;
    border: 1px solid #43495a;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}

.hexo-download-qr {
    display: block;
    width: 100%;
    margin-top: 11px;
}

.hexo-download-qr[hidden] {
    display: none !important;
}

.hexo-qr-instructions h2 {
    color: #fff;
    font-size: 20px;
    margin: 7px 0 12px;
}

.hexo-qr-instructions p {
    color: #b4bfd0;
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 13px;
}

.hexo-qr-instructions p strong {
    color: #fff;
}

.hexo-merchant-name {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid #363c4c;
    background: #202430;
    border-radius: 10px;
    margin: 17px 0;
}

.hexo-merchant-name span {
    color: #9da9bc;
    font-size: 11px;
}

.hexo-merchant-name strong {
    color: #fff;
    font-size: 13px;
}

.hexo-qr-instructions .hexo-payment-note {
    font-size: 11px;
    color: #93a1b6;
}

.hexo-report-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.hexo-report-form label {
    color: #e5eaf2;
    font-weight: 750;
    font-size: 12px;
}

.hexo-report-form input {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid #3a4255;
    background: #0b0e16;
    padding: 13px 14px;
    color: #fff;
    font: inherit;
    box-sizing: border-box;
}

.hexo-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    box-sizing: border-box;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    font-weight: 800;
    background: linear-gradient(100deg, #ed2949, #b90d2c);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.hexo-report-form .hexo-main-button {
    width: 100%;
}

.hexo-info-success,
.hexo-info-error {
    border-radius: 12px;
    padding: 15px 17px;
    font-size: 13px;
    line-height: 1.6;
    margin: 18px 0;
}

.hexo-info-success {
    color: #a7ebc5;
    background: #173329;
    border: 1px solid #327258;
}

.hexo-info-error {
    color: #ffc5cb;
    background: #412027;
    border: 1px solid #7f3446;
}

.hexo-account-heading {
    margin-bottom: 24px;
}

.hexo-account-cards {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr);
    gap: 18px;
}

.hexo-account-card {
    padding: clamp(18px, 3vw, 26px);
}

.hexo-account-card-head,
.hexo-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hexo-account-card-head > span:first-child {
    font-size: 12px;
    color: #aeb9cc;
}

.hexo-membership-badge,
.hexo-open-pill,
.hexo-status-pill {
    display: inline-flex;
    width: fit-content;
    border-radius: 100px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.025em;
    background: #3e2d32;
    color: #ffadb8;
}

.hexo-membership-badge.is-active {
    background: #193b2b;
    color: #90e8b7;
}

.hexo-account-card h2 {
    font-size: clamp(18px, 2.5vw, 23px);
    margin: 19px 0 7px;
    color: #fff;
}

.hexo-account-card p {
    font-size: 12px;
    color: #a9b3c4;
    line-height: 1.7;
}

.hexo-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 12px;
}

.hexo-countdown > div {
    display: grid;
    gap: 6px;
    padding: 16px 7px;
    text-align: center;
    border-radius: 13px;
    background: #222633;
    border: 1px solid #394252;
}

.hexo-countdown strong {
    color: #fff;
    font-size: clamp(18px, 3.5vw, 29px);
    font-variant-numeric: tabular-nums;
}

.hexo-countdown span {
    color: #aeb8ca;
    font-size: 10px;
}

.hexo-countdown.is-expired strong {
    color: #ff9aa7;
}

.hexo-account-card .hexo-main-button {
    margin-top: 12px;
    width: 100%;
}

.hexo-account-amount {
    font-size: 26px;
    font-weight: 850;
    margin-top: 10px;
    color: #ff5772;
}

.hexo-logout-form {
    margin-top: 14px;
}

.hexo-secondary-button {
    width: 100%;
}

.hexo-history-section {
    padding: clamp(16px, 3vw, 27px);
    margin-top: 21px;
}

.hexo-section-title {
    margin-bottom: 19px;
}

.hexo-section-title h2 {
    font-size: 21px;
    color: #fff;
    margin: 7px 0 0;
}

.hexo-section-title > small {
    color: #9ca7b9;
    font-size: 12px;
}

.hexo-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 0;
    border-top: 1px solid #303642;
}

.hexo-history-main {
    min-width: 0;
    flex: 1;
}

.hexo-history-topline {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}

.hexo-history-topline > strong {
    color: #fff;
    font-size: 14px;
}

.hexo-history-meta {
    display: grid;
    gap: 5px;
    color: #9eabba;
    font-size: 11px;
    margin-top: 9px;
}

.hexo-history-side {
    flex: 0 0 auto;
    display: grid;
    gap: 7px;
    text-align: right;
}

.hexo-history-side strong {
    font-size: 15px;
    color: #fff;
}

.hexo-history-side a {
    color: #ff7188;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.hexo-history-empty {
    padding: 30px 10px;
    color: #aeb7c6;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #303642;
}

.hexo-history-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #303642;
    color: #afbac8;
    font-size: 12px;
}

.hexo-history-pagination > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hexo-history-pagination a,
.hexo-page-disabled {
    display: inline-flex;
    padding: 9px 12px;
    border: 1px solid #3c4455;
    border-radius: 9px;
    color: #e8ebf2;
    text-decoration: none;
}

.hexo-page-disabled {
    opacity: 0.35;
}

.hexo-pending-notice {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: clamp(17px, 3vw, 24px);
    margin: 22px 0;
    background: #292229;
    border: 1px solid #8d4657;
    border-radius: 16px;
}

.hexo-pending-notice h2 {
    font-size: 21px;
    margin: 6px 0;
    color: #fff;
}

.hexo-pending-notice p {
    color: #bdc2cf;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.hexo-pending-notice > div {
    flex: 1 1 310px;
}

@media (max-width: 760px) {
    .hexo-payment-page,
    .hexo-account-page {
        padding-top: 12px;
    }

    .hexo-scan-section,
    .hexo-account-cards {
        grid-template-columns: 1fr;
    }

    .hexo-qr-frame {
        width: min(100%, 260px);
        margin-inline: auto;
    }

    .hexo-payment-summary .hexo-summary-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .hexo-summary-row strong {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hexo-history-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .hexo-history-side {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .hexo-account-card-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hexo-countdown {
        gap: 5px;
    }

    .hexo-countdown > div {
        padding: 12px 4px;
    }
}
