* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f6f8;
    color: #1f2430;
    margin: 0;
    padding: 24px;
}
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 640px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-header h1 { font-size: 22px; margin: 0; }

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #1f2430;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
.btn-primary { background: #2952e3; color: #fff; border-color: #2952e3; }
.btn-ghost { background: transparent; border-color: transparent; color: #2952e3; }

.summary-cards { display: flex; gap: 16px; margin-bottom: 20px; }
.card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 16px 20px;
    flex: 1;
}
.card-num { font-size: 26px; font-weight: 700; }
.card-label { font-size: 13px; color: #667085; margin-top: 4px; }
.card-orange .card-num { color: #b54708; }
.card-red .card-num { color: #b42318; }

.filter-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.filter-bar input, .filter-bar select {
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
}

.table-wrap { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
th a { color: #344054; text-decoration: none; }
tbody tr:hover { background: #fafbfc; }
.empty { text-align: center; color: #98a2b3; padding: 30px; }

.domain-cell strong { font-size: 14px; }
.whois-error { font-size: 11px; color: #b42318; margin-top: 2px; }

.badge { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #ecfdf3; color: #027a48; }
.badge-orange { background: #fffaeb; color: #b54708; }
.badge-red { background: #fef3f2; color: #b42318; }
.badge-gray { background: #f2f4f7; color: #667085; }

.status-pill { padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.status-holding { background: #eff8ff; color: #175cd3; }
.status-for_sale { background: #fdf4ff; color: #9b2fac; }
.status-sold { background: #f2f4f7; color: #475467; }

.actions a { margin-right: 10px; font-size: 13px; color: #2952e3; text-decoration: none; }

.form { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #344054; }
.form input, .form select, .form textarea {
    font-weight: 400;
    padding: 9px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
}
.form-row { display: flex; gap: 16px; }
.form-row label { flex: 1; }

.whois-section { border-top: 1px solid #eef0f3; padding-top: 16px; }
.whois-section h3 { margin: 0 0 6px; font-size: 15px; }
.hint { font-size: 12.5px; color: #667085; margin: 0 0 10px; }
.whois-preview { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13.5px; }
.whois-preview li { padding: 3px 0; }
.checkbox-label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }

.alert { padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 4px; }
.alert-error { background: #fef3f2; color: #b42318; }

/* Detail page & reports additions */
.card-green .card-num { color: #027a48; }
.text-green { color: #027a48; font-weight: 600; }
.text-red { color: #b42318; font-weight: 600; }

.sub-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.tag-pill { background: #f2f4f7; color: #475467; padding: 2px 8px; border-radius: 999px; font-size: 12px; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.panel { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 18px 20px; }
.panel h2 { font-size: 15px; margin: 0 0 12px; }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; }
.panel dt { color: #667085; }
.panel dd { margin: 0; text-align: right; }
.notes-block { font-size: 13.5px; margin: 12px 0 0; color: #344054; white-space: pre-wrap; }

.panel-full { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; }
.panel-full table { width: 100%; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-header h2 { margin: 0; font-size: 15px; }

.row-link { cursor: pointer; }
.row-link:hover { background: #f9fafb; }

.custom-fields-block { border-top: 1px solid #eef0f3; padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.custom-fields-block h3 { margin: 0 0 4px; font-size: 15px; }
