
/* ================================================================
   FINAL AUDIT UI — loaded last
   Goal: every public/admin/customer page readable, light and coherent
   ================================================================ */
:root{
  --fa-bg:#f5f8fb;
  --fa-card:#fff;
  --fa-card-soft:#f8fbfd;
  --fa-text:#12263a;
  --fa-muted:#657d91;
  --fa-line:#d8e3ec;
  --fa-blue:#1978e8;
  --fa-orange:#ff8a1f;
  --fa-green:#16865a;
  --fa-red:#c84d57;
  --fa-shadow:0 12px 38px rgba(34,62,88,.075);
}
html,body,main{background-color:var(--fa-bg)!important;color:var(--fa-text)!important}
body{min-height:100vh}

/* Typographic baseline */
h1,h2,h3,h4,strong,b{color:var(--fa-text)}
p,.muted,small{color:var(--fa-muted)}
input,select,textarea{
  background:#fff!important;color:var(--fa-text)!important;
  border:1px solid #cbd9e5!important;border-radius:10px;
}
input::placeholder,textarea::placeholder{color:#91a1af!important}
input:focus,select:focus,textarea:focus{
  border-color:#4d9be6!important;outline:0!important;
  box-shadow:0 0 0 3px rgba(50,139,226,.09)!important;
}
code{color:#21435f}

/* Global white-card families */
.card,.check-card,.detail-card,.status-card,.smart-action-card,
.knowledge-card,.knowledge-cta,.epp-card,.article-content,.article-side,
.auth.card,.signup-card,.user-card,.user-metrics>div,.balance-chip,
.av2-card,.av2-provider,.av2-table,.av2-stats>div,.api-auto-box,
.domain-table-card,.radar-domain-row,.today-drop-card,.today-empty{
  background:var(--fa-card)!important;
  border:1px solid var(--fa-line)!important;
  color:var(--fa-text)!important;
  box-shadow:var(--fa-shadow)!important;
}

/* Header brand */
.topbar{background:rgba(255,255,255,.98)!important}
.brand-premium{min-width:405px!important}
.brand-copy strong{color:#102235!important}
.brand-copy small{color:#617a8f!important}
.brand-cut{background:#fff!important}

/* Domain detail */
.detail-page{padding-top:38px!important;padding-bottom:54px!important}
.detail-hero{color:var(--fa-text)!important}
.detail-hero h1{color:#102235!important}
.detail-hero p{color:#6a8093!important}
.detail-state{
  background:#fff!important;border:1px solid #cddce7!important;
  color:#25445f!important;box-shadow:0 10px 28px rgba(31,60,86,.06)!important;
}
.detail-state b{color:#173b58!important}
.detail-state.available{border-color:#9ddbc3!important;background:#edf9f4!important}
.detail-state.pending_delete,.detail-state.redemption_period{border-color:#efc38d!important;background:#fff6e9!important}
.detail-card h2,.card-head h2{color:#12263a!important}
.card-head{border-color:#e2eaf1!important}
.card-head>span,.card-head>a{color:#4c7393!important}
.fact-grid>div{
  background:#f8fbfd!important;border:1px solid #d9e5ee!important;
}
.fact-grid small{color:#71889b!important}
.fact-grid b{color:#19364f!important}
.action-panel{background:#fff!important}
.action-highlight{
  background:#f2f7fb!important;border:1px solid #d4e1eb!important;color:#264660!important;
}
.action-highlight.success{background:#edf9f4!important;border-color:#a7dec7!important}
.action-highlight.danger{background:#fff5e9!important;border-color:#efc58f!important}
.action-highlight b{color:#183b56!important}
.action-highlight.success b{color:#13794d!important}
.action-highlight.danger b{color:#9b5a10!important}
.status-chip{
  background:#f8fbfd!important;border-color:#d7e3ec!important;color:#25445e!important;
}
.status-chip small{color:#6b8295!important}
.ns-list code{
  background:#f4f8fb!important;border:1px solid #d5e1ea!important;color:#284b67!important;
}
.smart-action-card{background:linear-gradient(135deg,#fff8ef,#fff)!important}

/* Public domain list */
.public-domains{padding-top:38px!important;padding-bottom:54px!important}
.radar-search{background:transparent!important}
.radar-search input,.radar-search select{height:48px!important}
.radar-domain-row{background:#fff!important}
.radar-domain-name{color:#153552!important}
.radar-domain-meta,.radar-date small{color:#71889a!important}
.radar-date b{color:#24445f!important}
.radar-actions .ghost{background:#f5f8fb!important}

/* Main domain table */
.domain-table-card,.domain-table-body{background:#fff!important}
.domain-table-head{background:#f2f6fa!important;color:#607a90!important;border-color:#dbe5ed!important}
.domain-row{background:#fff!important;border-color:#e3ebf1!important}
.domain-name{color:#143651!important}
.domain-sub,.lifecycle-cell small{color:#70879a!important}
.lifecycle-cell b{color:#183a55!important}
.market-empty{background:#fff!important;color:#62798d!important}

/* Knowledge center */
.knowledge-wrap,.article-page,.article-shell,.epp-grid{color:var(--fa-text)!important}
.knowledge-hero{
  background:linear-gradient(135deg,#eef5fb,#fff8f2)!important;
  border-bottom:1px solid #dbe5ed!important;
}
.knowledge-hero h1{color:#12263a!important}
.knowledge-hero p{color:#637b8f!important}
.knowledge-card{
  background:#fff!important;border-color:#d8e3ec!important;
}
.knowledge-card small,.knowledge-card p{color:#667e92!important}
.knowledge-card h2,.knowledge-card b{color:#173650!important}
.knowledge-no{color:#ff8a1f!important}
.knowledge-cta{background:#fff!important}
.article-hero{background:linear-gradient(135deg,#eef5fb,#fff)!important}
.article-content,.article-side{color:#203b54!important}
.article-content p,.article-content li,.article-lead{color:#526d82!important}
.article-callout,.source-note{background:#f4f8fb!important;border-color:#d6e2eb!important;color:#44637c!important}
.article-index a,.article-side a{color:#315b7b!important}
.epp-card{background:#fff!important}
.epp-card h2{color:#183a55!important}
.epp-card p{color:#667e91!important}

/* Customer panel */
.user-shell{color:var(--fa-text)!important}
.user-side{background:#fff!important;border-color:#d8e3ec!important}
.user-side-head{border-color:#dfe8ef!important}
.user-side-head strong{color:#183a55!important}
.user-side a{color:#3d5c75!important}
.user-side a:hover{background:#edf5fc!important;color:#176fc8!important}
.user-page-head h1{color:#12263a!important}
.balance-chip{background:#fff!important}
.balance-chip b{color:#176fc8!important}
.user-metrics>div{background:#fff!important}
.user-metrics span{color:#668096!important}
.user-metrics b{color:#173a56!important}
.user-list{border-color:#d9e4ec!important;background:#fff!important}
.user-list-row{background:#fff!important;border-color:#e4ebf1!important;color:#24435d!important}
.user-list-head{background:#f4f8fb!important;color:#627b90!important}
.user-list-row a{color:#153854!important}
.empty-state,.empty-mini{color:#687f92!important}
.watch-add input{background:#fff!important}

/* Admin */
.av2-shell,.av2-main{color:var(--fa-text)!important}
.av2-side{background:#fff!important;border-color:#d8e3ec!important}
.av2-side-title{color:#6a8296!important}
.av2-side a{color:#3d5a72!important}
.av2-side a:hover{background:#edf5fc!important;color:#176fc8!important}
.av2-head h1{color:#12263a!important}
.av2-head p{color:#667e91!important}
.av2-provider p{color:#657d91!important}
.av2-state.ok,.dc-ok{color:#13865a!important}
.av2-state.bad,.dc-bad{color:#c84d57!important}
.av2-row{background:#fff!important;border-color:#e2eaf0!important;color:#28465f!important}
.av2-th{background:#f3f7fa!important;color:#647c90!important}
.av2-row strong{color:#153854!important}
.av2-line{border-color:#e1e9f0!important;color:#48657c!important}
.av2-danger{background:#fff1f2!important;color:#b34049!important;border-color:#efb9bd!important}
.api-auto-box{background:#f6f9fc!important}
.feed-note{background:#eef6ff!important;border-color:#bcd9f2!important}
.feed-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.feed-head-actions form{margin:0}
.dc-sample code{
  background:#f3f7fa!important;color:#25465f!important;border-color:#d1dee8!important;
}
.drop-modal-card{background:#fff!important;color:#173650!important;border-color:#d0dfe9!important}
.drop-modal-x{background:#f3f7fa!important;color:#28465f!important;border-color:#d1dee8!important}
.drop-detail-grid>div,.rdap-timeline-grid>div{background:#f7fafc!important;border-color:#d7e3ec!important}
.drop-detail-grid b,.rdap-timeline-grid b{color:#1b3b56!important}
.drop-rdap-timeline{background:#fff!important;border-color:#d7e3ec!important}
.live-ok{background:#edf9f4!important;border-color:#addfc9!important;color:#25654b!important}
.rdap-warning,.drop-estimate-explain{background:#fff7ec!important;border-color:#efcc9e!important;color:#6e573d!important}

/* Login / signup / generic API pages */
.auth.card,.signup-card,.card{background:#fff!important;color:#173650!important}
.auth{max-width:520px!important;margin:60px auto!important;padding:28px!important;border-radius:18px!important}
.auth h1,.signup-card h2,.section-head h1{color:#12263a!important}
.signup-copy h1{color:#12263a!important}
.signup-copy>p{color:#637c90!important}
.signup-points span{background:#fff!important;border-color:#d3e0e9!important;color:#3f6079!important}
.company-fields{background:#f7fafc!important;border-color:#d9e4ec!important}
.checkline{color:#60798d!important}
.section-head{color:#12263a!important}
.admin-grid .card.link{background:#fff!important;border-color:#d8e3ec!important}
.admin-grid .card.link h3{color:#173650!important}
.admin-grid .card.link p,.admin-grid .card.link small{color:#667e92!important}

/* Search */
.search-clean-page{padding-top:38px!important;padding-bottom:60px!important}
.search-clean-head h1{color:#12263a!important}
.search-clean-card{background:#fff!important;color:#173650!important}
.search-clean-card p{color:#627b8f!important}
.search-clean-top{border-color:#e2eaf0!important}
.search-clean-input{background:#fff!important}

/* Feed / status controls */
.status-tabs a,.radar-tabs a{
  background:#fff!important;color:#3f5c73!important;border-color:#ccd9e4!important;
}
.status-tabs a.active,.radar-tabs a.active{
  background:#e9f4ff!important;color:#1168be!important;border-color:#3d96e8!important;
}
.pagination{color:#47657d!important}
.pagination a{background:#fff!important;border-color:#d3e0e9!important;color:#245779!important}

/* Footer only intentional dark section */
.footer,footer{background:#10263a!important;color:#dbe7f0!important}
.footer a{color:#a9bfd0!important}
.footer p,.footer small{color:#8fa9bd!important}

/* MOBILE: brand fits, cards stack, no text collisions */
@media(max-width:980px){
  .topbar-inner{min-height:86px!important;justify-content:center!important}
  .nav-main{display:none!important}
  .brand-premium{
    min-width:0!important;width:auto!important;max-width:390px!important;
    justify-content:center!important;margin:0 auto!important;gap:10px!important;
  }
  .brand-mark{width:52px!important;height:52px!important;flex:0 0 52px!important}
  .brand-a{font-size:48px!important}
  .brand-copy strong{font-size:22px!important;white-space:nowrap!important}
  .brand-copy small{font-size:7px!important;letter-spacing:.9px!important;white-space:nowrap!important}
  .detail-grid{grid-template-columns:1fr!important}
  .fact-grid{grid-template-columns:1fr 1fr!important}
  .knowledge-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:680px){
  .shell{width:calc(100% - 24px)!important}
  .brand-premium{max-width:340px!important;gap:8px!important}
  .brand-mark{width:46px!important;height:46px!important;flex-basis:46px!important}
  .brand-a{font-size:43px!important}
  .brand-copy strong{font-size:19.5px!important}
  .brand-copy small{font-size:5.9px!important;letter-spacing:.65px!important}
  .fact-grid,.knowledge-grid{grid-template-columns:1fr!important}
  .detail-hero{display:block!important}
  .detail-state{margin-top:14px!important;width:100%!important;text-align:left!important}
  .radar-domain-row{display:block!important}
  .radar-domain-row>div{margin-bottom:10px!important}
  .radar-actions{display:grid!important;grid-template-columns:1fr!important}
  .radar-actions a,.radar-actions form,.radar-actions button{width:100%!important}
  .user-metrics{grid-template-columns:1fr 1fr!important}
  .av2-head{display:block!important}
  .feed-head-actions{margin-top:12px!important}
}
@media(max-width:390px){
  .brand-premium{max-width:315px!important}
  .brand-mark{width:42px!important;height:42px!important;flex-basis:42px!important}
  .brand-a{font-size:39px!important}
  .brand-copy strong{font-size:18px!important}
  .brand-copy small{font-size:5.4px!important;letter-spacing:.5px!important}
  .user-metrics{grid-template-columns:1fr!important}
}
.register-domain-page{padding:42px 0 64px}.register-domain-grid{display:grid;grid-template-columns:1.5fr .7fr;gap:22px;margin-top:18px}.register-domain-main,.register-summary{background:#fff;border:1px solid #d8e3ec;border-radius:20px;padding:25px;box-shadow:0 12px 38px rgba(34,62,88,.075)}.register-domain-main h1{font-size:42px}.register-available{background:#edf9f4;border:1px solid #a7dec7;border-radius:14px;padding:15px;margin-bottom:18px}.register-domain-form{display:grid;gap:16px}.register-contact{background:#f6f9fc;border:1px solid #d8e3ec;border-radius:13px;padding:14px}.register-summary>strong{display:block;font-size:20px;margin:8px 0 20px}@media(max-width:760px){.register-domain-grid{grid-template-columns:1fr}}
.tr-domain-analysis{background:#fff;border:1px solid #d6e3ec;border-radius:14px;padding:14px 16px;margin:16px 0;box-shadow:0 10px 30px rgba(34,62,88,.05)}.tr-score{display:flex;justify-content:space-between;align-items:center;gap:12px}.tr-score span{font-size:11px;letter-spacing:.06em;font-weight:900;color:#52708a}.tr-score b{font-size:20px;color:#14754d}.tr-details{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:7px}.tr-details strong{color:#173a56}.tr-details span{background:#eef5fb;border:1px solid #d5e2ec;border-radius:999px;padding:4px 8px;color:#3e607a;font-size:11px}.tr-details em{font-style:normal;background:#fff5e7;border:1px solid #edc58e;border-radius:999px;padding:4px 8px;color:#9a5a10;font-size:11px;font-weight:800}.tr-muted{color:#7a8e9f;font-size:12px}.tr-admin-card{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:18px 0}.tr-admin-card h2{margin:4px 0}.tr-admin-card p{margin:0}@media(max-width:700px){.tr-admin-card{display:block}.tr-admin-card form{margin-top:12px}.tr-admin-card button{width:100%}}
