/**
 * 核币充值弹窗样式（独立，仅使用 core-coin-recharge- 前缀）
 */

.core-coin-recharge-panel {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
}

.core-coin-recharge-panel[data-open="true"] {
    pointer-events: auto;
}

.core-coin-recharge-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.core-coin-recharge-panel[data-open="true"] .core-coin-recharge-backdrop {
    opacity: 1;
}

.core-coin-recharge-drawer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: 420px;
    max-width: calc(100vw - 24px);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.core-coin-recharge-panel[data-open="true"] .core-coin-recharge-drawer {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.core-coin-recharge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.core-coin-recharge-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    margin: 0;
}

.core-coin-recharge-close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.core-coin-recharge-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.core-coin-recharge-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.core-coin-recharge-tip {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.core-coin-recharge-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.core-coin-recharge-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    color: var(--text-primary);
}

.core-coin-recharge-option:hover {
    background: var(--bg-hover);
}

.core-coin-recharge-option:has(.core-coin-recharge-radio:checked) {
    border-color: var(--primary, #1890ff);
    background: rgba(24, 144, 255, 0.06);
}

.core-coin-recharge-radio {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.core-coin-recharge-option-text {
    flex: 1;
}

.core-coin-recharge-option-custom {
    flex-wrap: wrap;
}

.core-coin-recharge-custom-input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-card);
}

.core-coin-recharge-custom-input:focus {
    outline: none;
    border-color: var(--primary, #1890ff);
}

.core-coin-recharge-custom-input::placeholder {
    color: var(--text-secondary);
}

.core-coin-recharge-custom-hint {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 11px;
    color: #cc0000;
    margin: 8px 0 0 0;
}

.core-coin-recharge-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.core-coin-recharge-submit-btn {
    padding: 8px 20px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    color: #fff;
    background: var(--primary, #1890ff);
    border: 1px solid var(--primary, #1890ff);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

.core-coin-recharge-submit-btn:hover {
    opacity: 0.9;
}

.core-coin-recharge-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 二次确认层 */
.core-coin-recharge-confirm-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.core-coin-recharge-confirm-box {
    width: 320px;
    max-width: calc(100% - 24px);
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.core-coin-recharge-confirm-msg {
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.core-coin-recharge-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.core-coin-recharge-confirm-cancel,
.core-coin-recharge-confirm-ok {
    padding: 8px 18px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-size: 13px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: opacity 0.2s;
}

.core-coin-recharge-confirm-cancel {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

.core-coin-recharge-confirm-cancel:hover {
    background: var(--bg-hover);
}

.core-coin-recharge-confirm-ok {
    color: #fff;
    background: var(--primary, #1890ff);
    border: 1px solid var(--primary, #1890ff);
}

.core-coin-recharge-confirm-ok:hover {
    opacity: 0.9;
}
