/* ============================================================
   CF REGISTRY — verify.css  (light theme)
   ============================================================ */

body { background: #f2f1ef; }

/* ── NAV override ────────────────────────────────────────── */
.nav { background: #fff !important; border-bottom: 1px solid #e4e2e0 !important; }
.brand-name, .navlinks a { color: #111 !important; }
.brand-sub { color: #aaa !important; }
.navlinks a { opacity: .65 !important; }
.navlinks a.active { opacity: 1 !important; }
.navlinks a.active::after { background: #111 !important; }
.brand img { mix-blend-mode: multiply !important; filter: contrast(1.8) brightness(0.6) !important; }
.hamburger span { background: #111 !important; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.registry-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: calc(100vh - 78px);
  margin-top: 78px;
}

/* ── LEFT PANEL ──────────────────────────────────────────── */
.registry-left {
  border-right: 1px solid #e0dedd;
  min-height: 100%;
}

/* Hero */
.registry-hero {
  background: #fff;
  padding: 40px 40px 32px;
  border-bottom: 1px solid #e4e2e0;
}
.registry-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #bbb;
  margin: 0 0 10px;
}
.registry-title {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .02em;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.2;
}
.registry-subtitle {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 520px;
  font-weight: 300;
}

/* Search */
.registry-search-wrap {
  display: flex;
  gap: 0;
  max-width: 540px;
}
.registry-search-input {
  flex: 1;
  background: #f7f6f5;
  border: 1px solid #dedad6;
  border-right: none;
  border-radius: 2px 0 0 2px;
  padding: 0 16px;
  height: 44px;
  font-family: inherit;
  font-size: 13px;
  color: #111;
  outline: none;
  transition: border-color .2s;
}
.registry-search-input::placeholder { color: #bbb; }
.registry-search-input:focus { border-color: #aaa; }
.registry-search-btn {
  background: linear-gradient(180deg, #e8e5e1 0%, #c9c5c0 100%);
  border: 1px solid #b0aca7;
  border-radius: 0 2px 2px 0;
  padding: 0 22px;
  height: 44px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1a1a1a;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  transition: background .2s;
}
.registry-search-btn:hover { background: linear-gradient(180deg, #f0ede9, #d6d2cd); }
.registry-search-btn span { display: none; }

/* ── TABLE SECTION ───────────────────────────────────────── */
.registry-table-section { padding: 28px 40px 48px; }

.registry-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.registry-table-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0;
}
.registry-table-controls { display: flex; gap: 8px; }
.registry-table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dedad6;
  border-radius: 2px;
  padding: 0 12px;
  height: 36px;
  min-width: 220px;
  transition: border-color .2s;
}
.registry-table-search:focus-within { border-color: #aaa; }
.registry-table-search svg { color: #ccc; flex-shrink: 0; }
.registry-table-search input {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  color: #111;
  width: 100%;
}
.registry-table-search input::placeholder { color: #ccc; }

/* Tabs */
.registry-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.reg-tab {
  background: #fff;
  border: 1px solid #dedad6;
  color: #aaa;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .15s;
}
.reg-tab:hover { border-color: #aaa; color: #555; }
.reg-tab.active { background: #111; border-color: #111; color: #fff; }

/* Table */
.registry-table-wrap {
  background: #fff;
  border: 1px solid #e4e2e0;
  border-radius: 4px;
  overflow: hidden;
}
.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.registry-table thead th {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #bbb;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #f0eeed;
  background: #fafafa;
}
.registry-table tbody td {
  padding: 11px 12px;
  color: #555;
  border-bottom: 1px solid #f5f3f2;
  vertical-align: middle;
}
.registry-table tbody tr:last-child td { border-bottom: none; }
.registry-table tbody td strong { color: #111; font-weight: 500; }
.registry-table tbody td small { color: #aaa; font-size: 11px; }

.reg-row { cursor: pointer; transition: background .12s; }
.reg-row:hover { background: #faf9f8; }
.reg-row.active { background: #f5f3f2; }
.reg-row.active .reg-cf-num { color: #111; }

.reg-thumb {
  width: 44px;
  height: 34px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  border: 1px solid #eeece9;
}
.reg-cf-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #888;
  font-family: 'Courier New', monospace;
}
.reg-status { font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.reg-status.verified { color: #2e7d32; }
.reg-arrow { color: #ddd; font-size: 14px; transition: color .15s; }
.reg-row:hover .reg-arrow { color: #aaa; }

/* Pagination */
.registry-pagination {
  display: flex;
  gap: 5px;
  margin-top: 18px;
  align-items: center;
}
.pag-btn {
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #dedad6;
  border-radius: 2px;
  color: #aaa;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all .12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pag-btn:hover:not([disabled]) { border-color: #aaa; color: #111; }
.pag-btn.active { background: #111; color: #fff; border-color: #111; }
.pag-btn[disabled] { opacity: .3; cursor: default; }

/* ── RIGHT PANEL ─────────────────────────────────────────── */
.registry-right {
  background: #fff;
  border-left: 1px solid #e0dedd;
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  overflow-y: auto;
}
.registry-detail { height: 100%; }
.registry-detail-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ddd;
  text-align: center;
  padding: 40px;
}
.registry-detail-empty p { font-size: 13px; color: #ccc; max-width: 200px; line-height: 1.6; }

/* ── DETAIL CONTENT ──────────────────────────────────────── */
.detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #f0eeed;
  background: #fafafa;
}
.detail-back {
  background: none;
  border: none;
  color: #aaa;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: .06em;
  transition: color .15s;
  padding: 0;
}
.detail-back:hover { color: #111; }
.detail-share {
  background: transparent;
  border: 1px solid #dedad6;
  color: #aaa;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .15s;
}
.detail-share:hover { color: #111; border-color: #aaa; }

/* Detail image */
.detail-img-wrap {
  position: relative;
  margin: 18px 18px 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #eeece9;
}
.detail-img-wrap img,
.detail-cf-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  display: block;
}
.detail-verified-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #2e7d32;
  background: #fff;
  border: 1px solid #a5d6a7;
  border-radius: 2px;
  padding: 4px 9px;
}

.detail-body { padding: 14px 18px 0; }
.detail-cf-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #bbb;
  margin: 0 0 3px;
  font-family: 'Courier New', monospace;
}
.detail-vehicle-name {
  font-size: 17px;
  font-weight: 500;
  color: #111;
  margin: 0 0 16px;
  letter-spacing: -.01em;
}

/* Specs */
.detail-specs {
  border-top: 1px solid #f0eeed;
  padding-top: 2px;
  margin-bottom: 16px;
}
.detail-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f7f6f5;
}
.detail-spec:last-child { border-bottom: none; }
.detail-spec span { color: #bbb; letter-spacing: .06em; font-size: 10px; text-transform: uppercase; }
.detail-spec strong { color: #333; font-weight: 500; text-align: right; }
.status-green { color: #2e7d32 !important; }

/* Highlights */
.detail-highlights { padding: 0 18px 18px; }
.detail-section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #bbb;
  margin: 0 0 10px;
}
.detail-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.detail-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  background: #f7f6f5;
  border: 1px solid #eeece9;
  border-radius: 3px;
  padding: 10px 8px;
}
.detail-highlight svg { color: #ccc; }
.detail-highlight strong { font-size: 14px; font-weight: 600; color: #111; }
.detail-highlight span { font-size: 9px; color: #bbb; letter-spacing: .1em; text-transform: uppercase; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .registry-layout { grid-template-columns: 1fr; }
  .registry-right { position: static; height: auto; border-left: none; border-top: 1px solid #e0dedd; }
}
@media (max-width: 680px) {
  .registry-hero { padding: 28px 20px 24px; }
  .registry-table-section { padding: 20px 20px 40px; }
  .registry-title { font-size: 22px; }
  .registry-table-header { flex-direction: column; align-items: flex-start; }
}

/* ── CERTIFICATE SECTION ─────────────────────────────────── */
.detail-cert-section {
  padding: 0 18px 24px;
}
.detail-cert-hint {
  font-size: 10px;
  color: #bbb;
  letter-spacing: .04em;
  text-align: center;
  margin-top: 10px;
}

/* Cert card — inherits cf-cert from editor.css via shared style.css,
   but editor.css is not loaded here so we redeclare */
.cf-cert {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 10px;
  background:
    repeating-linear-gradient(88deg, transparent 0px, rgba(255,255,255,.038) 1px, transparent 2px, transparent 4px),
    linear-gradient(170deg, #dadadb 0%, #c3c4c4 10%, #d9dada 28%, #bcbdbd 48%, #d5d6d6 66%, #c8c9c9 84%, #d2d3d3 100%);
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 4px 16px rgba(0,0,0,.12);
  color: #1f1f1f;
  overflow: hidden;
  font-size: 11px;
}
.cf-cert::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 6px;
  pointer-events: none;
  z-index: 0;
}
.cf-cert-frame {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 14px 14px 12px;
}
.cf-cert--verify { font-size: 11px; }

.cf-cert-qr-sec {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.cf-cert-qr-wrap {
  position: relative;
  width: 100px; height: 100px;
}
.cf-qr-canvas { width: 100%; height: 100%; }
.cf-qr-canvas canvas,
.cf-qr-canvas img { width: 100% !important; height: 100% !important; display: block; }
.cf-cert-qr-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(207,208,208,.92);
  border-radius: 18% 18% 48% 48% / 12% 12% 32% 32%;
  padding: 2px;
}
.cf-cert-qr-logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.cf-cert-sep {
  display: flex; align-items: center; gap: 5px;
  width: 100%; margin-bottom: 5px;
}
.cf-cert-sep-line { flex: 1; height: 1px; background: rgba(0,0,0,.18); }
.cf-cert-sep-icon {
  width: 10px; height: 12px;
  object-fit: contain; mix-blend-mode: multiply; opacity: .45;
}
.cf-cert-brand-name {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 13px; letter-spacing: .22em;
  color: #1a1a1a; text-align: center;
  margin-bottom: 4px; white-space: nowrap;
}
.cf-cert-rule {
  width: 100%; height: 1px;
  background: rgba(0,0,0,.15);
  margin: 4px 0; flex-shrink: 0;
}
.cf-cert-meta-lbl {
  font-size: 8px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(0,0,0,.3);
  text-align: center; margin-bottom: 3px;
}
.cf-cert-num-wrap {
  width: 95%;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 4px;
  padding: 4px 6px;
  text-align: center; margin-bottom: 2px;
}
.cf-cert-num {
  font-family: 'Courier New', monospace;
  font-size: 9px; font-weight: 700; letter-spacing: .01em;
  color: #111; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block;
}
.cf-cert-vin-val {
  font-family: 'Courier New', monospace;
  font-size: 9px; color: #1e1e1e; letter-spacing: .03em;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; margin-bottom: 2px;
}
.cf-cert-bottom-row {
  display: flex; align-items: center; gap: 6px;
  width: 100%; margin-top: 2px;
}
.cf-cert-verif-col { flex: 1; display: flex; flex-direction: column; }
.cf-cert-sig {
  font-family: 'Dancing Script', cursive;
  font-size: 18px; color: #1a1a1a; line-height: 1.1;
  margin: 2px 0 1px;
}
.cf-cert-role {
  font-size: 7px; letter-spacing: .1em;
  color: rgba(0,0,0,.28); text-transform: uppercase;
}
.cf-cert-holo-col {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cf-cert-holo { position: relative; width: 52px; height: 52px; }
.cf-cert-holo-stamp { width: 100%; height: 100%; }
.cf-cert-holo-disc {
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255,255,255,.6) 0deg, rgba(200,230,255,.5) 60deg,
    rgba(255,200,255,.5) 120deg, rgba(255,255,180,.5) 180deg,
    rgba(200,255,200,.5) 240deg, rgba(200,200,255,.5) 300deg,
    rgba(255,255,255,.6) 360deg
  );
  mix-blend-mode: screen;
}
