.tester-page { max-width: 1040px; margin: 28px auto 64px; padding: 0 20px; }
.tester-header { margin-bottom: 28px; }
.tester-header h1 { font-size: 1.65rem; margin: 0 0 8px; color: var(--text); }
.tester-header p { color: var(--text-dim); margin: 0; line-height: 1.55; max-width: 720px; }
.tester-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .tester-layout { grid-template-columns: 1fr; } }
.tester-panel {
    background: rgba(36,36,36,0.95); border: 1px solid var(--border);
    border-radius: 14px; padding: 24px;
}
.tester-panel h2 { font-size: 1rem; margin: 0 0 16px; color: var(--text); font-weight: 600; }
.tester-field { margin-bottom: 16px; }
.tester-field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; }
.tester-field input, .tester-field select {
    width: 100%; padding: 11px 14px; background: rgba(20,20,20,0.8);
    border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.95rem;
}
.tester-field input:focus, .tester-field select:focus { outline: none; border-color: var(--primary); }
.tester-row { display: grid; grid-template-columns: 1fr 100px; gap: 12px; }
.tester-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 0.88rem; color: var(--text-dim); line-height: 1.45; }
.tester-check input { margin-top: 3px; flex-shrink: 0; }
.tester-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-tester {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
    border: none; cursor: pointer; text-decoration: none;
}
.btn-tester-primary { background: var(--primary); color: #fff; }
.btn-tester-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-tester-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.plan-card {
    border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px;
    background: rgba(30,30,30,0.6);
}
.plan-card.active { border-color: rgba(22,163,74,0.5); }
.plan-card.pro { border-color: rgba(22,163,74,0.35); }
.plan-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text); }
.plan-card .plan-price { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin: 8px 0; }
.plan-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }
.plan-locked { opacity: 0.7; position: relative; }
.plan-lock-label { font-size: 0.78rem; color: var(--primary); margin-top: 8px; }
.tester-status {
    margin-top: 20px; padding: 16px; border-radius: 10px;
    background: rgba(20,20,20,0.7); border: 1px solid var(--border); display: none;
}
.tester-status.visible { display: block; }
.tester-status.running { border-color: rgba(22,163,74,0.4); }
.tester-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.tester-metrics-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 0.85rem; opacity: 0.85; line-height: 1.4; }
.tester-metric { text-align: center; padding: 12px 8px; background: rgba(0,0,0,0.25); border-radius: 8px; }
.tester-metric .val { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.tester-metric .lbl { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.tester-progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.tester-progress-bar { height: 100%; width: 0; background: var(--primary); transition: width 0.3s; }
.terms-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.terms-modal.open { display: flex; }
.terms-modal-box {
    background: var(--bg-dark); border: 1px solid var(--border); border-radius: 14px;
    max-width: 560px; width: 100%; max-height: 85vh; display: flex; flex-direction: column;
}
.terms-modal-head { padding: 20px 24px 12px; border-bottom: 1px solid var(--border); }
.terms-modal-body { padding: 16px 24px; overflow-y: auto; flex: 1; font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }
.terms-modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); }
.terms-scroll-hint { margin: 0 0 10px; font-size: 0.8rem; color: var(--text-dim); }
.terms-modal-foot button { width: 100%; }
.terms-modal-foot button:disabled { opacity: 0.4; cursor: not-allowed; }
.login-gate {
    text-align: center; padding: 48px 24px; border: 1px dashed var(--border);
    border-radius: 14px; background: rgba(30,30,30,0.5);
}
.login-gate p { color: var(--text-dim); margin-bottom: 16px; }
.tester-field-hint { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-dim); line-height: 1.4; }
.tester-badge-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.tester-badge-wrap p { margin: 0 0 10px; font-size: 0.85rem; color: var(--text-dim); }
.tester-badge-ok { color: #4ade80 !important; }
.tester-history-panel { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.tester-history-panel h3 { margin: 0 0 12px; font-size: 0.95rem; color: var(--text); }
.tester-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.tester-history-item {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 8px 10px; align-items: center;
    padding: 10px 12px; background: rgba(0,0,0,0.22); border-radius: 8px; font-size: 0.82rem;
}
.tester-history-item .th-plan { font-weight: 700; color: var(--primary); }
.tester-history-item .th-addr { color: var(--text); word-break: break-all; }
.tester-history-item .th-when { grid-column: 2; color: var(--text-dim); font-size: 0.75rem; }
.tester-history-item .th-result { grid-column: 3; grid-row: 1 / 3; text-align: right; color: var(--text-dim); max-width: 140px; }
.tester-history-empty { margin: 0; font-size: 0.85rem; color: var(--text-dim); }
