:root {
    --bg-deep: #f2f2f2; --bg-panel: #ffffff; --bg-elevated: #f8f9fa;
    --border-dim: #eaeaea; --border-light: #f5f5f5;
    --primary: #ec2b42; --primary-dim: rgba(236, 43, 66, 0.08); --primary-light: #fff0f2;
    --accent: #ff9a44; --accent-dim: rgba(255, 154, 68, 0.08);
    --text-main: #262626; --text-sub: #888888; --text-light: #b0b0b0;
    --success: #07c160; --danger: #ec2b42; --danger-dim: rgba(236, 43, 66, 0.08);
}
body { background: var(--bg-deep); color: var(--text-main); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; -webkit-font-smoothing: antialiased; }
.vip-layout { max-width: 1100px; margin: 0 auto; padding: 30px 16px 120px; display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
#vipForm { display: contents; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--text-main); background: linear-gradient(90deg, #262626, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.terminal-status { font-size: 12px; color: var(--primary); opacity: 0.9; font-weight: 500; }
.terminal-status::before { content: '● '; opacity: 0.6; font-size: 10px; }
.stepper { display: flex; gap: 12px; margin-bottom: 32px; }
.step-node { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-panel); border: 1px solid var(--border-dim); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-sub); flex-shrink: 0; transition: all 0.3s ease; }
.step-node.active .step-icon { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 4px 10px var(--primary-dim); }
.step-text { font-size: 14px; color: var(--text-sub); line-height: 1.3; font-weight: 500; }
.step-node.active .step-text { color: var(--text-main); }
.step-text small { display: block; font-size: 11px; color: var(--text-light); margin-top: 2px; }
.config-panel { display: flex; flex-direction: column; gap: 24px; }
.module-box { background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.02); }
.module-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.module-title::before { content: ''; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-card { position: relative; background: var(--bg-elevated); border: 1.5px solid transparent; border-radius: 10px; padding: 18px; cursor: pointer; transition: all 0.25s ease; overflow: hidden; }
.plan-card:hover { border-color: var(--border-dim); background: #fff; }
.plan-card.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 4px 16px var(--primary-dim); }
.plan-card.selected::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: #fff; background: var(--primary); width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.plan-desc { font-size: 12px; color: var(--text-sub); line-height: 1.5; min-height: 36px; }
.plan-base-price { font-size: 14px; color: var(--primary); margin-top: 12px; font-weight: 700; transition: color 0.3s ease; letter-spacing: -0.3px; }
.plan-base-price.has-rank-discount { color: #0a7c5a; }
.plan-card:last-child .plan-base-price { color: var(--accent); }
.cycle-track { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 4px; min-height: 46px; }
.cycle-btn { flex: 0 0 calc((100% - 60px) / 7); padding: 10px 8px; background: var(--bg-elevated); border: 1.5px solid transparent; color: var(--text-sub); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.2s; border-radius: 8px; user-select: none; -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
.cycle-btn:hover { border-color: var(--border-dim); color: var(--text-main); background: #fff; }
.cycle-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.cycle-btn.hot { border-color: rgba(255,154,68,0.3); background: rgba(255,154,68,0.03); }
.cycle-btn.hot.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.info-item h4 { font-size: 13px; color: var(--primary); margin: 0 0 6px; font-weight: 600; }
.info-item p { font-size: 12px; color: var(--text-sub); line-height: 1.6; margin: 0; }
.checkout-pod { position: sticky; top: 20px; background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.pod-header { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--border-dim); display: flex; align-items: center; gap: 8px; }
.pod-header::before { content: ''; width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(7, 193, 96, 0); } }
.pod-details { flex: 1; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; font-size: 13px; }
.pod-row { display: flex; justify-content: space-between; color: var(--text-sub); }
.pod-row .val { color: var(--text-main); font-weight: 600; }
.pod-row.discount .val { color: var(--primary); }
.pod-row.rank-discount .val { color: var(--success); font-weight: 700; }
.pod-total { background: var(--bg-elevated); border-radius: 10px; padding: 16px; margin-bottom: 20px; text-align: center; }
.total-label { font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }
.total-price { font-size: 36px; font-weight: 800; color: var(--text-main); letter-spacing: -1px; }
.total-price .currency { font-size: 18px; font-weight: 600; margin-right: 4px; color: var(--primary); }
.total-orig { font-size: 12px; color: var(--text-light); text-decoration: line-through; margin-top: 4px; }
.btn-execute { width: 100%; padding: 14px; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; color: #fff; background: linear-gradient(135deg, #ec2b42, #d41d35); border: none; cursor: pointer; border-radius: 24px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 16px rgba(236, 43, 66, 0.25); }
.btn-execute:hover { box-shadow: 0 8px 24px rgba(236, 43, 66, 0.35); transform: translateY(-2px); }
.btn-execute:active { transform: translateY(0) scale(0.98); }
.btn-execute:disabled { background: #d0d0d0 !important; color: #555 !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; opacity: 1 !important; -webkit-text-fill-color: #555 !important; }
.btn-execute.loading { background: linear-gradient(135deg, #ec2b42, #d41d35) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; box-shadow: 0 4px 12px rgba(236, 43, 66, 0.2) !important; opacity: 0.85; pointer-events: none; }
.empty-msg { color: var(--danger); text-align: center; padding: 20px; font-size: 14px; }
.error-terminal { max-width: 600px; margin: 80px auto; padding: 40px; background: var(--bg-panel); border: 1px solid var(--border-light); border-radius: 16px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.error-terminal h2 { color: var(--danger); font-size: 20px; margin: 0 0 16px; font-weight: 700; }
.error-terminal p { color: var(--text-sub); font-size: 14px; line-height: 1.6; margin: 0 0 24px; }
.error-terminal .error-code { font-family: monospace; color: var(--text-main); background: var(--bg-elevated); padding: 8px 16px; border-radius: 6px; display: inline-block; margin-bottom: 24px; border: 1px solid var(--border-dim); }
.error-terminal a { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px dashed var(--primary); padding-bottom: 2px; }
.error-terminal a:hover { color: #d41d35; border-color: #d41d35; }
@media (max-width: 860px) {
    .vip-layout { grid-template-columns: 1fr; padding: 16px 12px 100px; gap: 16px; }
    .stepper { gap: 8px; } .step-text small { display: none; }
    .plan-grid { grid-template-columns: 1fr; gap: 10px; }
    .info-grid { grid-template-columns: 1fr; gap: 12px; }
    .cycle-track { gap: 8px; }
    .cycle-btn { flex: 0 0 calc((100% - 16px) / 3); padding: 10px 4px; font-size: 12px; }
    .checkout-pod { position: fixed; bottom: 0; left: 0; right: 0; top: auto; border-radius: 16px 16px 0 0; border: 1px solid var(--border-light); border-bottom: none; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); flex-direction: row; align-items: center; gap: 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.06); z-index: 100; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(255,255,255,0.92); }
    .pod-header, .pod-details { display: none; }
    .pod-total { flex: 1; background: transparent; border: none; padding: 0; margin: 0; text-align: left; }
    .total-label { display: none; } .total-price { font-size: 24px; }
    .total-orig { font-size: 11px; margin-top: 0; display: inline-block; margin-left: 8px; }
    .btn-execute { width: auto; padding: 12px 28px; font-size: 14px; border-radius: 20px; }
    .error-terminal { margin: 40px 16px; padding: 24px; }
}
.protocol-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 1; transition: opacity 0.3s ease, visibility 0.3s ease; }
.protocol-overlay.hidden { opacity: 0; pointer-events: none; visibility: hidden; z-index: -1; }
.protocol-box { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); padding: 28px; transform: translateY(0); transition: transform 0.3s ease; }
.protocol-overlay.hidden .protocol-box { transform: translateY(20px); }
.proto-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.proto-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; }
.proto-title { font-size: 16px; font-weight: 700; color: var(--text-main); }
.proto-title small { display: block; font-size: 11px; color: var(--text-sub); font-weight: 400; margin-top: 4px; }
.proto-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.proto-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--bg-elevated); border-radius: 10px; border-left: 3px solid var(--primary); }
.proto-item.warn { border-left-color: var(--danger); background: #fff8f8; }
.proto-num { font-family: 'Consolas', monospace; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 2px 6px; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.proto-item.warn .proto-num { color: var(--danger); background: var(--danger-dim); }
.proto-text { font-size: 13px; color: var(--text-main); line-height: 1.6; }
.proto-text strong { color: var(--text-main); font-weight: 700; }
.proto-text .hl-jade { color: var(--primary); font-weight: 600; }
.proto-text .hl-red { color: var(--danger); font-weight: 600; }
.proto-check { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.proto-check input { display: none; }
.check-box { width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid #ccc; border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: transparent; font-size: 12px; background: #fff; }
.proto-check input:checked + .check-box { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 6px var(--primary-dim); }
.check-label { font-size: 13px; color: var(--text-sub); }
.proto-check input:checked ~ .check-label { color: var(--text-main); font-weight: 500; }
.btn-commit { width: 100%; padding: 14px; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; color: #fff; background: linear-gradient(135deg, #ec2b42, #d41d35); border: none; cursor: pointer; border-radius: 24px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 16px rgba(236, 43, 66, 0.25); }
.btn-commit:hover:not(:disabled) { box-shadow: 0 8px 24px rgba(236, 43, 66, 0.35); transform: translateY(-2px); }
.btn-commit:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-commit:disabled { background: #e0e0e0; color: #999; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 600px) { .protocol-box { padding: 20px 16px; border-radius: 12px; } .proto-title { font-size: 15px; } .proto-item { padding: 12px; gap: 10px; } .proto-text { font-size: 12px; } }
