/* ═══════════════════════════════════════════════
   GxD Wallet — Public Styles
   ═══════════════════════════════════════════════ */

/* ─── Deposit Box ──────────────────────────────────────────────── */

.gxd-deposit-box {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
}

/* Header */
.gxd-deposit-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.gxd-deposit-icon { font-size: 2.2em; line-height: 1; }
.gxd-deposit-title {
    margin: 0 0 6px;
    font-size: 1.8em;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    letter-spacing: .02em;
}
.gxd-deposit-subtitle {
    margin: 0;
    font-size: 1em;
    color: #f5c96a;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Section label */
.gxd-section-label {
    font-size: 1.05em;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .03em;
}

/* Card grid */
.gxd-deposit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 860px) { .gxd-deposit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gxd-deposit-grid { grid-template-columns: 1fr 1fr; } }

.gxd-deposit-card {
    position: relative;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 22px 14px 18px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.gxd-deposit-card:hover {
    border-color: #7c6bff;
    box-shadow: 0 8px 24px rgba(108,99,255,.14);
    transform: translateY(-3px);
}
.gxd-deposit-card.has-bonus { border-color: #f5a623; }
.gxd-deposit-card.has-bonus:hover { border-color: #e0900a; }

.gxd-bonus-badge {
    position: absolute;
    top: -11px;
    right: 10px;
    background: linear-gradient(90deg, #ff6b35, #f5a623);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255,107,53,.35);
}

.gxd-card-coin-icon { margin-bottom: 8px; line-height: 1; }
.gxd-card-coin-icon .gxd-coin-icon { filter: drop-shadow(0 2px 6px rgba(245,166,35,.4)); }
.gxd-deposit-icon .gxd-coin-icon   { filter: drop-shadow(0 2px 8px rgba(245,166,35,.35)); }
.gxd-card-coins { font-size: 1.15em; font-weight: 800; color: #1a1a2e; margin-bottom: 8px; }
.gxd-card-meta { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.gxd-card-original { font-size: .78em; color: #bbb; text-decoration: line-through; }
.gxd-card-actual { font-size: .82em; color: #e44d2e; font-weight: 700; }
.gxd-card-gift { font-size: .78em; color: #f5a623; }
.gxd-card-price { font-size: 1.1em; font-weight: 700; color: #444; margin-bottom: 14px; }

.gxd-buy-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .9em;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: .02em;
}
.gxd-buy-btn:hover { background: #3a3a5c; transform: scale(1.02); }
.gxd-buy-btn.loading { opacity: .6; pointer-events: none; cursor: wait; }

/* ─── Tier summary ──────────────────────────────────────────────── */
.gxd-tier-summary {
    background: #fef9f0;
    border: 1px solid #f5dfa0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.gxd-tier-summary-title { font-size: .88em; font-weight: 700; color: #7a5c00; margin-bottom: 12px; }
.gxd-tier-summary-row { display: flex; flex-wrap: wrap; gap: 12px; }
.gxd-tier-summary-cell { flex: 1 1 80px; text-align: center; }
.gxd-tier-label { font-size: .82em; font-weight: 600; color: #555; margin-bottom: 4px; }
.gxd-tier-pct { font-size: .78em; color: #aaa; }
.gxd-tier-pct.has-bonus { color: #e07b00; font-weight: 700; }

/* ─── Info section ──────────────────────────────────────────────── */
.gxd-info-section {
    background: #f8f9ff;
    border: 1px solid #e4e8ff;
    border-radius: 12px;
    padding: 22px 24px;
}
.gxd-info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .gxd-info-cols { grid-template-columns: 1fr; } }

.gxd-info-col-title {
    font-size: .9em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gxd-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.gxd-icon-green { background: #27ae60; }
.gxd-icon-yellow { background: #f39c12; }

.gxd-info-list { margin: 0; padding: 0; list-style: none; }
.gxd-info-list li {
    font-size: .84em;
    color: #555;
    padding: 5px 0 5px 18px;
    position: relative;
    border-bottom: 1px solid #edf0f7;
    line-height: 1.5;
}
.gxd-info-list li:last-child { border-bottom: none; }
.gxd-info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
    font-size: .9em;
}
.gxd-info-list-warn li::before { content: '！'; color: #f39c12; }

/* ─── Wallet History ────────────────────────────────────────────── */
.gxd-wallet-history { max-width: 860px; margin: 0 auto; }

.gxd-balance-summary {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a3a6e 100%);
    color: #fff;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gxd-balance-label { font-size: .88em; opacity: .75; margin-bottom: 6px; }
.gxd-balance-value { font-size: 2.2em; font-weight: 800; line-height: 1; }
.gxd-balance-unit { font-size: .5em; font-weight: 400; opacity: .8; }

.gxd-topup-link {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: 22px;
    padding: 8px 18px;
    font-size: .85em;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.gxd-topup-link:hover { background: rgba(255,255,255,.3); color: #fff; }

.gxd-history-table { width: 100%; border-collapse: collapse; font-size: .88em; }
.gxd-history-table th,
.gxd-history-table td { border: 1px solid #eef0f5; padding: 10px 13px; text-align: left; }
.gxd-history-table thead { background: #f4f5fb; font-weight: 700; color: #333; }
.gxd-history-table tbody tr:hover { background: #fafbff; }

.gxd-type-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.gxd-type-deposit    { background: #27ae60; }
.gxd-type-deduction  { background: #e74c3c; }
.gxd-type-bonus      { background: #f39c12; }
.gxd-type-adjustment { background: #3498db; }

.gxd-positive { color: #27ae60; font-weight: 700; }
.gxd-negative { color: #e74c3c; font-weight: 700; }
.gxd-empty { color: #aaa; text-align: center; padding: 40px 0; }

.gxd-pagination { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.gxd-page-btn {
    display: inline-block;
    padding: 6px 13px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: .82em;
    transition: all .15s;
}
.gxd-page-btn:hover { border-color: #7c6bff; color: #7c6bff; }
.gxd-page-btn.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

/* ─── Notices ───────────────────────────────────────────────────── */
.gxd-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .9em; }
.gxd-notice-warning { background: #fff8e1; border: 1px solid #ffc107; color: #7a5c00; }
.gxd-notice-error   { background: #fdecea; border: 1px solid #f44336; color: #7a1a1a; }

/* ─── Menu Balance Pill ─────────────────────────────────────────── */
.gxd-menu-wallet {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
}
.gxd-menu-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1.5px solid rgba(0,0,0,.14);
    border-radius: 999px;
    padding: 4px 12px 4px 8px;
    font-size: .82em;
    font-weight: 700;
    color: #1a1a2e;
    box-shadow: 0 1px 5px rgba(0,0,0,.13);
    transition: box-shadow .2s, transform .15s;
    white-space: nowrap;
    line-height: 1.4;
}
.gxd-menu-wallet:hover .gxd-menu-wallet-pill {
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
    transform: translateY(-1px);
}
.gxd-menu-wallet-icon   { line-height: 1; display:inline-flex; align-items:center; }
.gxd-menu-wallet-icon .gxd-coin-icon {
    border-radius: 50%;
    background: transparent;
}
.gxd-menu-wallet-balance{ min-width: 28px; text-align: right; color: #1a1a2e; }
.gxd-menu-wallet-unit   { color: #555; font-weight: 500; }

/* ─── Inline balance ────────────────────────────────────────────── */
.gxd-inline-balance { font-weight: 700; color: #4a3fbf; }

/* =========================================================
   GxD 金錘購買 - 新版電商 UI
   ========================================================= */

.gxd-deposit-box {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* ─────────────────────────────────
   Header
───────────────────────────────── */

.gxd-deposit-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    text-align: left;
}

.gxd-deposit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gxd-deposit-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
}

.gxd-deposit-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: #ffb21c;
    font-weight: 600;
}


/* ─────────────────────────────────
   Section title
───────────────────────────────── */

.gxd-section-label {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.gxd-section-icon {
    margin-right: 6px;
}


/* ─────────────────────────────────
   Grid
───────────────────────────────── */

.gxd-deposit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}


/* ─────────────────────────────────
   Card
───────────────────────────────── */

.gxd-deposit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 285px;
    padding: 30px 20px 18px;

    background: #ffffff;

    border: 2px solid #d8dbe5;
    border-radius: 16px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* 有贈送 */

.gxd-deposit-card.has-bonus {
    border-color: #ff9f0a;
}


/* Hover */

.gxd-deposit-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.14);
}


/* ─────────────────────────────────
   最多人選
───────────────────────────────── */

.gxd-deposit-card.is-recommended {
    transform: translateY(-10px) scale(1.025);
    border: 3px solid #ff9f0a;
    background: #fffdf9;

    box-shadow:
        0 16px 42px rgba(255, 159, 10, 0.26);

    z-index: 2;
}

.gxd-deposit-card.is-recommended:hover {
    transform: translateY(-14px) scale(1.025);
}


/* ─────────────────────────────────
   Badge
───────────────────────────────── */

.gxd-bonus-badge {
    position: absolute;

    top: -15px;
    left: 50%;

    transform: translateX(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 5px 13px;

    border-radius: 999px;

    background: #ff8a20;

    color: #ffffff;

    font-size: 12px;
    line-height: 1;
    font-weight: 800;

    white-space: nowrap;

    box-shadow:
        0 4px 10px rgba(255, 138, 32, 0.28);
}

.gxd-badge-recommended {
    padding-left: 15px;
    padding-right: 15px;
}

.gxd-badge-highest {
    background: #ff8a20;
}


/* ─────────────────────────────────
   Coin icon
───────────────────────────────── */

.gxd-card-coin-icon {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}


/* ─────────────────────────────────
   Main amount
───────────────────────────────── */

.gxd-card-total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;

    margin-top: 4px;

    color: #17182d;
}

.gxd-card-total-number {
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.gxd-card-total-unit {
    font-size: 16px;
    font-weight: 800;
}


/* ─────────────────────────────────
   Bonus breakdown
───────────────────────────────── */

.gxd-card-breakdown {
    min-height: 34px;

    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 4px;

    font-size: 13px;
}

.gxd-card-base {
    color: #9295a2;
}

.gxd-card-plus {
    color: #aaa;
}

.gxd-card-gift {
    color: #ff6837;
    font-weight: 800;
}

.gxd-card-breakdown.gxd-no-bonus {
    color: #a1a4af;
}


/* ─────────────────────────────────
   Price
───────────────────────────────── */

.gxd-card-price {
    margin-top: 10px;

    color: #373844;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}


/* ─────────────────────────────────
   Button
───────────────────────────────── */

.gxd-buy-btn {
    width: 100%;

    min-height: 46px;

    margin-top: auto;

    padding: 11px 15px;

    border: 0;
    border-radius: 9px;

    background: #17182d;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.gxd-buy-btn:hover {
    background: #25263f;

    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(23, 24, 45, 0.2);
}


/* 主推方案按鈕 */

.gxd-deposit-card.is-recommended .gxd-buy-btn {
    background: #ff8a20;
}

.gxd-deposit-card.is-recommended .gxd-buy-btn:hover {
    background: #f47b0b;
}


/* ─────────────────────────────────
   回饋橫幅
───────────────────────────────── */

.gxd-benefit-bar {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 26px;

    padding: 12px 20px;

    border-radius: 10px;

    background: #fff9ee;

    border: 1px solid #ffe1aa;
}

.gxd-benefit-icon {
    font-size: 19px;
}

.gxd-benefit-text {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 14px;
}

.gxd-benefit-text strong {
    color: #292a35;
    font-weight: 800;
}

.gxd-benefit-text span {
    color: #f07800;
    font-weight: 800;
}


/* ─────────────────────────────────
   Trust
───────────────────────────────── */

.gxd-trust-section {
    margin-top: 16px;

    padding: 14px 22px;

    border-radius: 10px;

    background: #f7f8fc;

    border: 1px solid #e4e7ef;
}

.gxd-trust-title {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-bottom: 16px;

    color: #272935;

    font-size: 15px;
    font-weight: 800;
}

.gxd-trust-title span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #23b26d;

    color: #fff;

    font-size: 13px;
}

.gxd-trust-items {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;
}

.gxd-trust-item {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #70737f;

    font-size: 13px;
}

.gxd-trust-item > span {
    color: #23b26d;
    font-weight: 900;
}


/* ─────────────────────────────────
   購買須知
───────────────────────────────── */

.gxd-purchase-notes {
    margin-top: 14px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.05);

    overflow: hidden;
}

.gxd-purchase-notes summary {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 18px;

    color: #b8bbc7;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    list-style: none;

    user-select: none;
}

.gxd-purchase-notes summary::-webkit-details-marker {
    display: none;
}

.gxd-notes-arrow {
    margin-left: 8px;

    font-size: 16px;

    transition: transform 0.2s ease;
}

.gxd-purchase-notes[open] .gxd-notes-arrow {
    transform: rotate(180deg);
}

.gxd-purchase-notes-content {
    padding: 0 24px 20px;
}

.gxd-purchase-notes-content ul {
    max-width: 650px;

    margin: 0 auto;

    padding-left: 20px;

    color: #aeb1bd;

    font-size: 13px;
    line-height: 1.9;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

    .gxd-deposit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .gxd-deposit-card.is-recommended {
        transform: none;
    }

    .gxd-deposit-card.is-recommended:hover {
        transform: translateY(-4px);
    }

    .gxd-trust-items {
        gap: 18px;
        flex-wrap: wrap;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {

    .gxd-deposit-box {
        padding-left: 4px;
        padding-right: 4px;
    }

    .gxd-deposit-header {
        margin-bottom: 28px;
    }

    .gxd-deposit-title {
        font-size: 24px;
    }

    .gxd-deposit-grid {
        grid-template-columns: 1fr;

        gap: 26px;
    }

    .gxd-deposit-card {
        min-height: 285px;

        padding: 31px 18px 18px;
    }

    .gxd-card-total-number {
        font-size: 30px;
    }

    .gxd-benefit-bar {
        text-align: center;
    }

    .gxd-benefit-text {
        flex-direction: column;
        gap: 2px;
    }

    .gxd-trust-items {
        align-items: flex-start;
        flex-direction: column;

        gap: 11px;
    }

}