.cg-frontend-root { max-width: 900px; margin: 0 auto; font-family: 'Inter', sans-serif; color: #e2e8f0; }
.cg-frontend-root * { box-sizing: border-box; }

.cg-search-banner {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border: 1px solid #334155; border-radius: 20px; padding: 32px; text-align: center; margin-bottom: 32px;
}
.cg-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: rgba(217,119,6,.12); color: #f59e0b; border: 1px solid rgba(217,119,6,.25); margin-bottom: 12px;
}
.cg-search-banner h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.cg-search-sub { color: #94a3b8; font-size: 14px; max-width: 480px; margin: 0 auto 24px; }

.cg-search-box { position: relative; max-width: 520px; margin: 0 auto; }
.cg-search-box > i.fa-magnifying-glass { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
#cg-search-input {
    width: 100%; padding: 14px 44px; border-radius: 12px; border: 1px solid #334155;
    background: rgba(15,23,42,.6); color: #fff; font-size: 14px;
}
#cg-search-input:focus { outline: none; border-color: #d97706; }
.cg-search-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
    border-radius: 8px; border: none; background: transparent; color: #94a3b8; cursor: pointer; align-items: center; justify-content: center;
}
.cg-search-clear:hover { background: rgba(148,163,184,.15); color: #fff; }

.cg-search-dropdown {
    position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; background: #1e293b;
    border: 1px solid #334155; border-radius: 12px; max-height: 260px; overflow-y: auto; z-index: 50; text-align: left;
}
.cg-dropdown-empty { padding: 16px; font-size: 12px; color: #94a3b8; text-align: center; }
.cg-dropdown-item {
    width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
    background: none; border: none; border-bottom: 1px solid rgba(51,65,85,.5); cursor: pointer; color: inherit;
}
.cg-dropdown-item:hover { background: rgba(51,65,85,.4); }
.cg-dropdown-name { font-size: 13px; font-weight: 600; color: #fff; }
.cg-dropdown-id { font-size: 11px; color: #94a3b8; }

.cg-empty-state { text-align: center; padding: 48px 24px; color: #64748b; }
.cg-empty-state i { font-size: 32px; margin-bottom: 12px; display: block; }

.cg-cert-card {
    background: rgba(15,23,42,.6); border: 1px solid #334155; border-radius: 20px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.cg-cert-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #334155; padding-bottom: 16px; margin-bottom: 16px; }
.cg-verified-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #34d399;
    background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); padding: 4px 10px; border-radius: 999px; margin-bottom: 6px;
}
.cg-cert-head h3 { margin: 0; font-size: 18px; color: #fff; }
.cg-cert-meta { font-size: 11px; color: #94a3b8; margin: 4px 0 0; }
.cg-cert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.cg-btn-primary { background: linear-gradient(90deg, #0d9488, #d97706); color: #fff; }
.cg-btn-secondary { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.cg-btn:hover { filter: brightness(1.08); }

.cg-cert-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cg-cert-tab {
    display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 600;
    background: rgba(15,23,42,.5); border: 1px solid #334155; color: #94a3b8; cursor: pointer;
}
.cg-cert-tab.is-active { background: #0d9488; border-color: rgba(217,119,6,.4); color: #fff; }

.cg-canvas-frame { background: rgba(2,6,23,.8); border: 1px solid #334155; border-radius: 14px; padding: 12px; display: flex; justify-content: center; min-height: 260px; align-items: center; }
.cg-canvas-frame canvas { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
