/* Forja dos Mundos v4.3 — Fase 65: Certificação Final da Ciel */
.ciel-final{width:min(1240px,96vw);max-height:94vh;padding:0;border:1px solid rgba(216,176,72,.55);border-radius:22px;background:#0a0b10;color:#f4efe4;box-shadow:0 34px 100px rgba(0,0,0,.78)}
.ciel-final::backdrop{background:rgba(2,3,7,.88);backdrop-filter:blur(9px)}
.cfc-shell{display:flex;flex-direction:column;max-height:94vh;min-height:620px}
.cfc-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid rgba(216,176,72,.2);background:linear-gradient(135deg,rgba(216,176,72,.16),rgba(125,87,210,.10))}
.cfc-brand{display:flex;align-items:center;gap:14px}.cfc-brand>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#d8b048,#7d57d2);font-size:1.5rem;color:#090a0f;box-shadow:0 10px 28px rgba(216,176,72,.22)}
.cfc-brand p{margin:0 0 2px;color:#cabf9c;font-size:.75rem;text-transform:uppercase;letter-spacing:.12em}.cfc-brand h2{margin:0;font-size:1.45rem}.cfc-brand small{color:#aaa4b7}.cfc-close{border:0;background:transparent;color:#eee7d8;font-size:2rem;cursor:pointer}
.cfc-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 22px;border-bottom:1px solid rgba(255,255,255,.07)}.cfc-overview article{padding:12px 14px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.035)}.cfc-overview small{display:block;color:#a8a1b2}.cfc-overview strong{display:block;margin-top:4px;font-size:1.08rem;color:#f2d889}
.cfc-tabs{display:flex;gap:8px;padding:12px 22px;overflow:auto;border-bottom:1px solid rgba(255,255,255,.07)}.cfc-tabs button,.cfc-footer button,.cfc-actions button,.cfc-form button,.cfc-audit-head button{border:1px solid rgba(255,255,255,.13);border-radius:10px;background:#151720;color:#ece7df;padding:9px 12px;cursor:pointer}.cfc-tabs button.is-active,.cfc-footer .is-primary,.cfc-actions .is-primary,.cfc-form .is-primary,.cfc-audit-head .is-primary{background:linear-gradient(135deg,#d8b048,#9b7332);color:#111;border-color:#e4c66f;font-weight:700}
.cfc-main{overflow:auto;padding:18px 22px 26px;min-height:380px}.cfc-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.cfc-card{border:1px solid rgba(255,255,255,.09);border-radius:16px;background:#11131a;padding:16px}.cfc-card h3{margin:0 0 10px}.cfc-card p{color:#bbb5c2;line-height:1.55}.cfc-hero{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,rgba(216,176,72,.13),rgba(125,87,210,.09))}.cfc-kicker{color:#e7c568;text-transform:uppercase;font-size:.75rem;letter-spacing:.12em}.cfc-score{display:grid;place-items:center;min-width:150px;height:120px;border:1px solid rgba(216,176,72,.28);border-radius:18px;background:#0b0c12}.cfc-score strong{font-size:2.2rem;color:#e5c467}.cfc-score span{font-size:.8rem;color:#aaa3b0}.cfc-score.is-ready{box-shadow:0 0 0 1px rgba(64,190,126,.35),0 0 32px rgba(64,190,126,.12)}
.cfc-checks{list-style:none;padding:0;margin:0;display:grid;gap:9px}.cfc-checks li{padding:9px 11px;border-radius:10px;background:#191b24;color:#a9a3ae}.cfc-checks li::before{content:'○';margin-right:8px}.cfc-checks li.is-ok{color:#8ce0ae;background:rgba(45,167,101,.09)}.cfc-checks li.is-ok::before{content:'✓'}
.cfc-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cfc-form label{display:grid;gap:6px;color:#c9c3ce;font-size:.84rem}.cfc-form label.is-wide{grid-column:1/-1}.cfc-form input,.cfc-form select,.cfc-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.13);border-radius:9px;background:#0b0d13;color:#f1ece3;padding:10px}.cfc-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cfc-audit-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.cfc-audit-head h3{margin:0}.cfc-audit-head p{margin:4px 0;color:#aaa3b0}.cfc-results{display:grid;gap:8px}.cfc-results article{display:flex;gap:11px;padding:11px;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:#0d0f15}.cfc-results article>span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:9px}.cfc-results strong{display:block}.cfc-results small{color:#dfae56;text-transform:uppercase;font-size:.64rem}.cfc-results p{margin:4px 0 0;font-size:.88rem}.cfc-results .is-pass>span{background:rgba(44,183,103,.16);color:#8ae0aa}.cfc-results .is-warn>span{background:rgba(221,165,62,.15);color:#e6bd6d}.cfc-results .is-fail>span{background:rgba(224,69,83,.15);color:#ff8e99}
.cfc-certificate{max-width:760px;margin:20px auto;padding:32px;border:1px solid rgba(216,176,72,.48);border-radius:22px;text-align:center;background:radial-gradient(circle at top,rgba(216,176,72,.12),transparent 55%),#0f1117;box-shadow:inset 0 0 0 5px #0f1117,inset 0 0 0 6px rgba(216,176,72,.18)}.cfc-certificate>span{display:grid;place-items:center;width:64px;height:64px;margin:auto;border-radius:50%;background:linear-gradient(145deg,#e5c76e,#8f692d);color:#111;font-size:2rem}.cfc-certificate h3{font-size:1.8rem;margin:14px 0 4px}.cfc-certificate p{color:#d1b96f}.cfc-certificate dl{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:22px 0;text-align:left}.cfc-certificate dl div{padding:12px;border-radius:12px;background:rgba(255,255,255,.04)}.cfc-certificate dt{color:#9f99a8;font-size:.75rem}.cfc-certificate dd{margin:4px 0 0}.cfc-certificate code{display:block;word-break:break-all;padding:12px;border-radius:10px;background:#090a0f;color:#dfc26c}.cfc-certificate small{display:block;margin-top:14px;color:#9b95a1}
.cfc-history{display:grid;gap:8px}.cfc-history article{display:flex;gap:11px;align-items:center;padding:11px;border-radius:10px;background:#0d0f15}.cfc-history article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(216,176,72,.12);color:#e5c76e}.cfc-history strong{display:block}.cfc-history p{margin:3px 0 0;font-size:.84rem}
.cfc-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 22px;border-top:1px solid rgba(255,255,255,.08);background:#0d0f15}.cfc-footer span{color:#948e9a;font-size:.78rem}.cfc-footer div{display:flex;gap:8px;flex-wrap:wrap}.cfc-toast{position:fixed;right:24px;bottom:24px;max-width:360px;padding:11px 14px;border-radius:11px;background:#20242e;color:#fff;opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s}.cfc-toast.is-visible{opacity:1;transform:none}.cfc-toast[data-kind="error"]{background:#792e39}
.cfc-trigger span{color:#e2c167}.cfc-mobile{border-color:rgba(216,176,72,.35)!important}
@media(max-width:760px){.ciel-final{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.cfc-shell{max-height:100dvh;min-height:100dvh}.cfc-header{padding:13px}.cfc-brand>span{width:40px;height:40px}.cfc-brand h2{font-size:1.16rem}.cfc-brand small{display:none}.cfc-overview{grid-template-columns:repeat(2,1fr);padding:10px 12px}.cfc-tabs,.cfc-main,.cfc-footer{padding-left:12px;padding-right:12px}.cfc-grid{grid-template-columns:1fr}.cfc-hero{flex-direction:column;align-items:flex-start}.cfc-score{width:100%;height:90px}.cfc-form{grid-template-columns:1fr}.cfc-form label.is-wide{grid-column:auto}.cfc-audit-head{align-items:flex-start;flex-direction:column}.cfc-certificate{margin:0;padding:22px 15px}.cfc-certificate dl{grid-template-columns:1fr}.cfc-footer{align-items:flex-start;flex-direction:column}.cfc-toast{left:12px;right:12px;bottom:70px;max-width:none}}
