@import url('../admin/style.css');

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0f1419; }
.login-box { width: 400px; max-width: 92vw; background: #1e2a3a; border: 1px solid #2d3f56; border-radius: 16px; padding: 32px; }
.login-box h1 { text-align: center; margin-bottom: 8px; font-size: 22px; }
.subtitle { text-align: center; color: #8899aa; font-size: 14px; margin-bottom: 24px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { flex: 1; padding: 8px; border: 1px solid #2d3f56; background: transparent; color: #8899aa; border-radius: 6px; cursor: pointer; }
.tab.active { background: rgba(59,130,246,.15); color: #3b82f6; border-color: #3b82f6; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.login-box label { display: block; margin-bottom: 12px; font-size: 13px; color: #8899aa; }
.login-box input { width: 100%; padding: 10px 12px; margin-top: 4px; background: #0f1419; border: 1px solid #2d3f56; border-radius: 6px; color: #e7ecf3; }
.btn.full { width: 100%; margin-top: 8px; padding: 12px; }
.hint { text-align: center; color: #667; font-size: 12px; margin-top: 16px; }
.hint a { color: #3b82f6; }
.hidden { display: none !important; }
.user-info { padding: 0 20px 16px; color: #8899aa; font-size: 13px; border-bottom: 1px solid #2d3f56; margin-bottom: 8px; }
.btn.logout { margin: 16px 20px; width: calc(100% - 40px); background: transparent; border: 1px solid #2d3f56; color: #8899aa; padding: 8px; border-radius: 6px; cursor: pointer; }
.code-block { background: #0f1419; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; color: #a5d6ff; }
.hint-inline { color: #8899aa; font-size: 13px; margin-left: 12px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan-card { background: #1e2a3a; border: 1px solid #2d3f56; border-radius: 12px; padding: 20px; }
.plan-card.current { border-color: #3b82f6; box-shadow: 0 0 0 1px rgba(59,130,246,.3); }
.plan-card h4 { margin: 0 0 8px; font-size: 18px; }
.plan-price { font-size: 24px; color: #3b82f6; margin: 12px 0; }
.plan-meta { color: #8899aa; font-size: 13px; line-height: 1.8; }
.node-list { font-size: 12px; color: #a5d6ff; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(59,130,246,.15); color: #3b82f6; font-size: 11px; margin-right: 4px; }
.tag.primary { background: rgba(34,197,94,.15); color: #22c55e; }
.detail-block { margin-top: 12px; padding: 12px; background: #0f1419; border-radius: 8px; font-size: 13px; }
.reg-note { font-size: 12px; color: #6b8; line-height: 1.5; margin: 8px 0 0; text-align: left; }
.page-desc { color: #8899aa; font-size: 14px; margin-bottom: 16px; }
.section-title { margin: 24px 0 12px; font-size: 16px; font-weight: 600; }
.banner { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.banner-info { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #a5c4ff; }
.banner-warn { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: #fcd34d; }
.banner a { color: #3b82f6; }
.quota-wrap { margin-bottom: 16px; max-width: 480px; }
.quota-wrap-wide { max-width: 720px; }
.instance-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.instance-card { background: #1e2a3a; border: 1px solid #2d3f56; border-radius: 12px; padding: 18px; transition: border-color .15s; }
.instance-card:hover { border-color: #3d5570; }
.instance-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.instance-card-head h4 { margin: 0; font-size: 16px; }
.instance-card-code { font-size: 11px; color: #667; font-family: monospace; }
.instance-card-meta { font-size: 13px; color: #8899aa; line-height: 1.7; margin-bottom: 14px; }
.instance-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.instance-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.instance-sidebar h3 { margin: 0 0 8px; font-size: 16px; }
.instance-picker { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.instance-pick { text-align: left; padding: 10px 12px; border: 1px solid #2d3f56; border-radius: 8px; background: #0f1419; color: #e7ecf3; cursor: pointer; }
.instance-pick:hover { border-color: #3b82f6; }
.instance-pick.active { border-color: #3b82f6; background: rgba(59,130,246,.1); }
.instance-pick .name { font-weight: 600; font-size: 14px; }
.instance-pick .sub { font-size: 12px; color: #8899aa; margin-top: 4px; }
.instance-title { font-size: 18px; font-weight: 600; flex: 1; }
.instance-toolbar { margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.instance-toolbar .instance-title { flex: 1; min-width: 120px; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.stat-pill { background: #0f1419; border: 1px solid #2d3f56; border-radius: 8px; padding: 10px 14px; min-width: 120px; }
.stat-pill .lbl { font-size: 11px; color: #8899aa; }
.stat-pill .val { font-size: 16px; font-weight: 600; margin-top: 4px; }
.form-section { margin-bottom: 16px; }
.form-section h4 { margin: 0 0 10px; font-size: 13px; color: #8899aa; border-bottom: 1px solid #2d3f56; padding-bottom: 6px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
@media (max-width: 900px) {
  .instance-layout { grid-template-columns: 1fr; }
}
.quota-item { margin-bottom: 10px; }
.quota-head { display: flex; justify-content: space-between; font-size: 12px; color: #8899aa; margin-bottom: 4px; }
.quota-bar { height: 6px; background: #2d3f56; border-radius: 3px; overflow: hidden; }
.quota-fill { height: 100%; background: #3b82f6; border-radius: 3px; }
.quota-bar.quota-warn .quota-fill { background: #f59e0b; }
.badge-count { background: #ef4444; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; margin-left: 4px; }
.notify-item { padding: 12px; border-bottom: 1px solid #2d3f56; }
.notify-item.unread { background: rgba(59,130,246,.08); }
.nav-highlight { color: #22c55e !important; font-weight: 600; }
.wizard-hero { background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(59,130,246,.12)); border: 1px solid rgba(34,197,94,.25); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.wizard-hero h2 { margin: 0 0 8px; font-size: 20px; }
.wizard-hero p { margin: 0; color: #8899aa; }
.wizard-body { margin-top: 16px; }
.wizard-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.wizard-step { background: #1e2a3a; border: 1px solid #2d3f56; border-radius: 10px; padding: 16px; }
.wizard-step .num { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; background: #3b82f6; color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 8px; }
.instance-panel { display: none; margin-top: 16px; }
.instance-panel.active { display: block; }
.instance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pack-mode { background: #1e2a3a; border: 1px solid #2d3f56; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.pack-mode h4 { margin: 0 0 6px; font-size: 15px; }
.pack-mode p { margin: 0 0 10px; color: #8899aa; font-size: 13px; }
.pack-mode-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wizard-mode-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.wizard-mode-tab { padding: 8px 16px; border-radius: 8px; border: 1px solid #2d3f56; background: #1e2a3a; color: #c8d4e0; cursor: pointer; font-size: 14px; }
.wizard-mode-tab.active { background: #2563eb; border-color: #3b82f6; color: #fff; }
.sdk-lang-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.sdk-lang-table th, .sdk-lang-table td { border: 1px solid #2d3f56; padding: 8px 10px; text-align: left; }
.sdk-lang-table th { background: #1a2332; color: #8899aa; font-weight: 600; }
.sdk-snippet-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.sdk-snippet-tab { padding: 4px 10px; border-radius: 6px; border: 1px solid #2d3f56; background: #1e2a3a; color: #c8d4e0; cursor: pointer; font-size: 12px; }
.sdk-snippet-tab.active { background: #2563eb; border-color: #3b82f6; color: #fff; }
.onboarding-hero { margin-bottom: 20px; }
.onboarding-inner { background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(59,130,246,.14)); border: 1px solid rgba(34,197,94,.3); border-radius: 14px; padding: 24px 28px; }
.onboarding-inner h2 { margin: 0 0 8px; font-size: 22px; }
.onboarding-sub { margin: 0 0 16px; color: #8899aa; font-size: 14px; }
.onboarding-steps { margin: 16px 0 20px; }
.onboarding-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.onboarding-actions label { margin: 0; font-size: 13px; color: #8899aa; }
.onboarding-actions select { padding: 8px 10px; background: #0f1419; border: 1px solid #2d3f56; border-radius: 6px; color: #e7ecf3; margin-left: 6px; }
.onboarding-cta { font-size: 16px; padding: 12px 24px; }
#page-account label { display: block; margin-bottom: 12px; font-size: 13px; color: #8899aa; }
#page-account input { width: 100%; max-width: 360px; padding: 10px 12px; margin-top: 4px; background: #0f1419; border: 1px solid #2d3f56; border-radius: 6px; color: #e7ecf3; box-sizing: border-box; }
.auto-renew-panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.auto-renew-table { border-radius: 0; margin: 0; }
.auto-renew-table .col-check { width: 52px; text-align: center; }
.auto-renew-table .col-months { width: 100px; }
.auto-renew-table input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.auto-renew-table input[type="number"] {
  width: 72px; padding: 6px 8px; margin: 0; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-size: 13px;
}
.modal-body .auto-renew-table input[type="checkbox"],
.modal-body .auto-renew-table input[type="number"] { width: auto; margin-top: 0; }
.modal-body .auto-renew-table input[type="number"] { width: 72px; }
.auto-renew-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.auto-renew-table tr.row-included { opacity: .85; }
.hint.pack-hint { text-align: left; margin: 8px 0 12px; line-height: 1.6; font-size: 12px; color: #8899aa; }

/* 侧边栏分组导航 */
.sidebar-nav { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.nav-section { margin-bottom: 12px; }
.nav-section-title {
  padding: 4px 20px 6px; font-size: 11px; font-weight: 600; color: #556677;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.sidebar .nav-item { padding-left: 24px; font-size: 14px; }

/* 接入向导三模式 */
.wizard-intro { margin-bottom: 16px; padding: 16px 20px; }
.wizard-intro h2 { margin: 0 0 6px; font-size: 20px; }
.access-mode-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.access-mode-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 16px; border-radius: 10px; border: 1px solid #2d3f56;
  background: #1e2a3a; color: #c8d4e0; cursor: pointer; text-align: left;
}
.access-mode-card strong { font-size: 15px; color: #e7ecf3; }
.access-mode-card span { font-size: 12px; color: #8899aa; line-height: 1.4; }
.access-mode-card.active { border-color: #3b82f6; background: rgba(59,130,246,0.12); box-shadow: 0 0 0 1px rgba(59,130,246,0.25); }
.wizard-toolbar { margin-bottom: 12px; }
.wizard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 攻击分析页内标签 */
.inner-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.inner-tabs .tab { flex: 0 0 auto; padding: 8px 16px; }
.security-panel { display: none; }
.security-panel.active { display: block; }

/* 批量删除 */
.batch-toolbar-wrap { margin-bottom: 10px; }
.batch-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 8px; background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.2);
}
.batch-toolbar .batch-del-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.batch-count { font-size: 12px; }
.data-table .col-check { width: 36px; text-align: center; }
.data-table .col-check input { cursor: pointer; }
.row-unread { background: rgba(59,130,246,0.06); }
