/* Intelligence Kit - New Registrations 页面 */

/* ===== 日量图 ===== */
.reg-chart-body {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    height: 300px;
    position: relative;
}

.reg-chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ===== 词表 (三种列布局共用行样式) ===== */
.reg-table {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 10px 20px;
}

.reg-table-head,
.reg-row {
    display: grid;
    gap: 14px;
    align-items: center;
    padding: 10px 4px;
}

.reg-table-faces .reg-table-head,
.reg-table-faces .reg-row {
    grid-template-columns: 1.6fr 110px 90px 90px 100px;
}

.reg-table-top .reg-table-head,
.reg-table-top .reg-row {
    grid-template-columns: 1.6fr 110px 100px 110px 80px 90px 100px;
}

/* 供需交叉版 (All gTLDs 面板): 追加 Listed / Listed 7d 两列 */
.reg-table-faces.reg-cross .reg-table-head,
.reg-table-faces.reg-cross .reg-row {
    grid-template-columns: 1.5fr 100px 85px 85px 95px 95px 100px;
}

.reg-table-top.reg-cross .reg-table-head,
.reg-table-top.reg-cross .reg-row {
    gap: 10px;
    grid-template-columns: 1.4fr 95px 85px 95px 75px 80px 90px 90px 95px;
}

.reg-table-watch .reg-table-head,
.reg-table-watch .reg-row {
    grid-template-columns: 1.6fr 120px 110px 90px;
}

.reg-table-head {
    color: var(--gray);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #f0f0f0;
}

.reg-row {
    border-bottom: 1px solid #f5f5f5;
    font-size: var(--font-size-sm);
    color: var(--dark);
    font-variant-numeric: tabular-nums;
}

.reg-row:last-child {
    border-bottom: none;
}

.reg-row:hover {
    background: var(--bg-light);
}

.reg-count {
    font-weight: 700;
}

.reg-empty {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px 20px;
    color: var(--gray);
    font-size: var(--font-size-sm);
}

/* ===== scope 切换 (All gTLDs / .com only) ===== */
.reg-scope-toggle {
    display: inline-flex;
    gap: 8px;
    margin-top: 10px;
}

.reg-scope-btn {
    padding: 5px 14px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: .2s;
}

.reg-scope-btn.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}

.reg-scope-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.reg-scope-panel {
    display: none;
}

.reg-scope-panel.active {
    display: block;
}

/* ===== Check more 折叠 ===== */
.reg-hidden {
    display: none !important;
}

.reg-more-wrap {
    text-align: center;
    padding: 12px 0 6px;
}

.reg-more-btn {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.reg-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

/* ===== 词点击表单 (与 marketplace 同款) ===== */
.keyword-search-form {
    display: inline;
}

.keyword-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

.keyword-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.keyword-note {
    margin-top: 12px;
    color: var(--gray);
    font-size: var(--font-size-xs);
}

/* ===== TLD 排行 (与 marketplace 排名同款, 无展开箭头列) ===== */
.marketplace-list {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 10px 20px;
}

.marketplace-item {
    border-bottom: 1px solid #f0f0f0;
}

.marketplace-item:last-child {
    border-bottom: none;
}

.marketplace-row {
    display: grid;
    grid-template-columns: 130px 1fr 110px 150px;
    gap: 14px;
    align-items: center;
    padding: 11px 4px;
    list-style: none;
}

.marketplace-row:hover {
    background: var(--bg-light);
}

.marketplace-name {
    font-weight: 600;
    color: var(--dark);
    font-size: var(--font-size-sm);
}

.marketplace-bar {
    display: block;
    background: var(--light-gray);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.marketplace-bar-fill {
    display: block;
    background: var(--gradient-main);
    height: 100%;
    border-radius: 6px;
}

.marketplace-count {
    font-weight: 700;
    color: var(--dark);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.marketplace-delta {
    text-align: right;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.delta-window {
    color: var(--gray);
    font-size: var(--font-size-xs);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .reg-table-top .reg-table-head,
    .reg-table-top .reg-row,
    .reg-table-top.reg-cross .reg-table-head,
    .reg-table-top.reg-cross .reg-row {
        grid-template-columns: 1.4fr 100px 90px 70px;
    }

    .reg-table-top .reg-table-head span:nth-child(n+5),
    .reg-table-top .reg-row span:nth-child(n+5) {
        display: none;
    }

    .reg-table-faces .reg-table-head,
    .reg-table-faces .reg-row,
    .reg-table-faces.reg-cross .reg-table-head,
    .reg-table-faces.reg-cross .reg-row {
        grid-template-columns: 1.4fr 100px 80px;
    }

    .reg-table-faces .reg-table-head span:nth-child(n+4),
    .reg-table-faces .reg-row span:nth-child(n+4) {
        display: none;
    }

    .marketplace-row {
        grid-template-columns: 100px 1fr 90px;
    }

    .marketplace-delta {
        display: none;
    }
}

@media (max-width: 600px) {
    .reg-table-watch .reg-table-head,
    .reg-table-watch .reg-row {
        grid-template-columns: 1.4fr 100px 90px;
    }

    .reg-table-watch .reg-table-head span:nth-child(n+4),
    .reg-table-watch .reg-row span:nth-child(n+4) {
        display: none;
    }

    .reg-chart-body {
        height: 240px;
    }
}
