/* 多货币价格配置（开发者中心 / 前台） */
.xyn-currency-prices {
    --xyn-cp-border: rgba(148, 163, 184, 0.28);
    --xyn-cp-head-bg: rgba(241, 245, 249, 0.92);
    --xyn-cp-row-hover: rgba(79, 140, 255, 0.05);
    --xyn-cp-ref-bg: rgba(100, 116, 139, 0.08);
    --xyn-cp-ref-color: #475569;
    --xyn-cp-code-bg: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(108, 92, 231, 0.12));
    --xyn-cp-code-color: #1d4ed8;
    border: 1px solid var(--xyn-cp-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.xyn-currency-prices__tip {
    margin: 0;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    background: var(--xyn-cp-head-bg);
    border-bottom: 1px solid var(--xyn-cp-border);
}

.xyn-currency-prices__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.xyn-currency-prices__table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.xyn-currency-prices__table--pricing {
    min-width: 920px;
}

.xyn-currency-prices__table thead th {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-align: left;
    white-space: nowrap;
    background: var(--xyn-cp-head-bg);
    border-bottom: 1px solid var(--xyn-cp-border);
}

.xyn-currency-prices__table thead th small {
    font-weight: 500;
    color: #94a3b8;
}

.xyn-currency-prices__table tbody tr {
    transition: background-color 0.15s ease;
}

.xyn-currency-prices__table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.65);
}

.xyn-currency-prices__table tbody tr:hover {
    background: var(--xyn-cp-row-hover);
}

.xyn-currency-prices__table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    font-size: 13px;
}

.xyn-currency-prices__table tbody tr:last-child td {
    border-bottom: none;
}

.xyn-currency-prices__currency {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 88px;
}

.xyn-currency-prices__code {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--xyn-cp-code-bg);
    color: var(--xyn-cp-code-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.xyn-currency-prices__name {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.xyn-currency-prices__rate {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--xyn-cp-ref-bg);
    color: var(--xyn-cp-ref-color);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.xyn-currency-prices__ref {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--xyn-cp-ref-bg);
    color: var(--xyn-cp-ref-color);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.xyn-currency-prices__ref:empty,
.xyn-currency-prices__ref.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

.xyn-currency-prices__field .form-control {
    min-width: 108px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    border-color: rgba(148, 163, 184, 0.45);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xyn-currency-prices__field .form-control:focus {
    border-color: rgba(79, 140, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
}

.xyn-currency-prices__field .form-control::placeholder {
    color: #94a3b8;
    font-size: 12px;
    text-align: left;
}

.xyn-currency-prices__field .form-control[readonly] {
    background: rgba(248, 250, 252, 0.95);
    color: #64748b;
    cursor: default;
}

/* 开发者中心 */
.developer-form .xyn-currency-prices-wrap {
    margin-bottom: 18px;
}

.developer-form .xyn-currency-prices-wrap > label {
    margin-bottom: 8px;
}

.developer-form .xyn-currency-prices {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
    .xyn-currency-prices__table thead th,
    .xyn-currency-prices__table tbody td {
        padding: 9px 10px;
    }

    .xyn-currency-prices__field .form-control {
        min-width: 92px;
    }
}
