:root{
    --cm-blue:#2563eb;
    --cm-purple:#7c3aed;
    --cm-green:#16a34a;
    --cm-green-dark:#098136;
    --cm-red:#ef4444;
    --cm-orange:#f59e0b;
    --cm-ink:#111827;
    --cm-muted:#64748b;
    --cm-line:rgba(148,163,184,.25);
    --cm-shadow:0 24px 70px rgba(15,23,42,.16);
    --cm-soft-shadow:0 12px 35px rgba(15,23,42,.10);
}
.cm-public-shell{
    max-width:1060px;
    margin:0 auto 36px;
    padding:0 18px 28px;
    font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:var(--cm-ink);
    position:relative;
}
.cm-public-shell *{box-sizing:border-box}
.cm-hero{
    position:relative;
    overflow:hidden;
    margin:0 -18px 0;
    padding:54px 20px 118px;
    text-align:center;
    color:#fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(124,58,237,.85), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(14,165,233,.75), transparent 32%),
        linear-gradient(135deg,#180b63 0%,#111c62 48%,#062b55 100%);
    border-bottom-left-radius:42% 10%;
    border-bottom-right-radius:42% 10%;
}
.cm-hero:before,.cm-hero:after{
    content:"";
    position:absolute;
    pointer-events:none;
    opacity:.55;
}
.cm-hero:before{
    inset:24px auto auto 22px;
    width:112px;height:112px;
    background-image:radial-gradient(rgba(255,255,255,.35) 2px, transparent 2px);
    background-size:18px 18px;
}
.cm-hero:after{
    right:-90px;top:-80px;width:280px;height:280px;
    border-radius:38%;
    background:linear-gradient(145deg,rgba(59,130,246,.35),rgba(59,130,246,.05));
    transform:rotate(28deg);
}
.cm-hero-shield{
    width:84px;height:84px;
    margin:0 auto 22px;
    display:flex;align-items:center;justify-content:center;
    border-radius:28px 28px 34px 34px;
    background:linear-gradient(135deg,#60a5fa,#7c3aed);
    box-shadow:0 20px 45px rgba(79,70,229,.45), inset 0 0 22px rgba(255,255,255,.28);
    font-size:42px;font-weight:900;
    animation:cmFloat 3.5s ease-in-out infinite;
}
.cm-hero h2{
    margin:0;
    font-size:clamp(36px,6vw,64px);
    line-height:1.05;
    letter-spacing:-.045em;
    color:#fff;
    font-weight:850;
}
.cm-hero p{
    margin:20px auto 0;
    max-width:720px;
    color:rgba(255,255,255,.86);
    font-size:clamp(17px,2.3vw,24px);
    line-height:1.45;
}
.cm-search-card{
    position:relative;
    z-index:2;
    display:flex;
    gap:24px;
    align-items:center;
    max-width:940px;
    margin:-74px auto 52px;
    padding:32px;
    border-radius:30px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(255,255,255,.82);
    box-shadow:var(--cm-shadow);
    backdrop-filter:blur(14px);
    animation:cmRise .55s ease both;
}
.cm-search-icon{
    flex:0 0 76px;
    width:76px;height:76px;
    display:flex;align-items:center;justify-content:center;
    border-radius:50%;
    background:linear-gradient(135deg,rgba(124,58,237,.14),rgba(37,99,235,.12));
    color:#4f46e5;
    font-size:42px;
    font-weight:700;
}
.cm-public-form{flex:1;min-width:0}
.cm-public-form label{
    display:block;
    margin:0 0 7px;
    color:#0f172a;
    font-weight:700;
    font-size:15px;
}
.cm-public-row{
    display:grid;
    grid-template-columns:1fr 230px;
    align-items:stretch;
    border:1px solid rgba(148,163,184,.34);
    border-radius:16px;
    background:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 10px 25px rgba(15,23,42,.08);
    overflow:hidden;
}
.cm-public-row input{
    width:100%;
    min-width:0;
    padding:18px 22px;
    border:0;
    outline:0;
    font-size:18px;
    color:#111827;
    background:#fff;
}
.cm-public-row input::placeholder{color:#94a3b8}
.cm-public-row button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:18px 24px;
    border:0;
    background:linear-gradient(135deg,#16a34a,#15803d);
    color:#fff;
    font-size:18px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 12px 25px rgba(22,163,74,.28);
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.cm-public-row button:hover{
    transform:translateY(-1px);
    filter:saturate(1.12);
    box-shadow:0 18px 34px rgba(22,163,74,.34);
}
.cm-button-icon{font-size:28px;line-height:1}
.cm-public-hint{
    margin-top:16px;
    color:var(--cm-muted);
    font-size:15px;
    text-align:center;
}
.cm-result-card{
    position:relative;
    overflow:hidden;
    margin:28px auto 0;
    padding:34px;
    border-radius:28px;
    background:#fff;
    border:1px solid rgba(148,163,184,.25);
    box-shadow:var(--cm-shadow);
    animation:cmRise .55s ease both;
}
.cm-result-card:before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    opacity:.74;
}
.cm-result-active{
    border-color:rgba(34,197,94,.45);
    background:linear-gradient(135deg,rgba(240,253,244,.96),rgba(255,255,255,.96));
}
.cm-result-active:before{
    background:radial-gradient(circle at 12% 16%, rgba(34,197,94,.18), transparent 30%), radial-gradient(circle at 85% 10%, rgba(34,197,94,.10), transparent 28%);
}
.cm-result-expired,.cm-result-error{
    border-color:rgba(239,68,68,.42);
    background:linear-gradient(135deg,rgba(255,241,242,.96),rgba(255,255,255,.96));
}
.cm-result-expired:before,.cm-result-error:before{
    background:radial-gradient(circle at 12% 16%, rgba(239,68,68,.17), transparent 30%);
}
.cm-result-deactivated{
    border-color:rgba(245,158,11,.42);
    background:linear-gradient(135deg,rgba(255,251,235,.96),rgba(255,255,255,.96));
}
.cm-result-deactivated:before{
    background:radial-gradient(circle at 12% 16%, rgba(245,158,11,.18), transparent 30%);
}
.cm-result-not-found{
    border-color:rgba(37,99,235,.42);
    background:linear-gradient(135deg,rgba(239,246,255,.96),rgba(255,255,255,.96));
}
.cm-result-not-found:before{
    background:radial-gradient(circle at 12% 16%, rgba(37,99,235,.16), transparent 30%);
}
.cm-status-badge{
    position:absolute;
    top:32px;
    right:32px;
    z-index:2;
    display:flex;align-items:center;gap:8px;
    padding:11px 19px;
    border-radius:999px;
    font-size:14px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.02em;
    background:rgba(255,255,255,.75);
    box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.cm-status-badge span{width:9px;height:9px;border-radius:50%;background:currentColor}
.cm-result-active .cm-status-badge{color:var(--cm-green-dark);background:rgba(187,247,208,.65)}
.cm-result-expired .cm-status-badge{color:#dc2626;background:rgba(254,202,202,.72)}
.cm-result-deactivated .cm-status-badge{color:#d97706;background:rgba(253,230,138,.72)}
.cm-result-main{
    position:relative;
    z-index:1;
    display:flex;
    gap:26px;
    align-items:center;
    padding-right:180px;
}
.cm-result-icon{
    flex:0 0 108px;
    width:108px;height:108px;
    display:flex;align-items:center;justify-content:center;
    border-radius:50%;
    font-size:60px;
    font-weight:900;
    background:#fff;
    box-shadow:var(--cm-soft-shadow), inset 0 0 0 10px rgba(255,255,255,.58);
}
.cm-result-active .cm-result-icon{color:#16a34a;background:linear-gradient(135deg,#dcfce7,#fff)}
.cm-result-expired .cm-result-icon,.cm-result-error .cm-result-icon{color:#ef4444;background:linear-gradient(135deg,#ffe4e6,#fff)}
.cm-result-deactivated .cm-result-icon{color:#f59e0b;background:linear-gradient(135deg,#fef3c7,#fff)}
.cm-result-not-found .cm-result-icon{color:#2563eb;background:linear-gradient(135deg,#dbeafe,#fff)}
.cm-result-title{
    font-size:clamp(28px,4vw,40px);
    line-height:1.12;
    letter-spacing:-.035em;
    font-weight:900;
    margin:0;
}
.cm-result-active .cm-result-title{color:#079038}
.cm-result-expired .cm-result-title,.cm-result-error .cm-result-title{color:#e11d48}
.cm-result-deactivated .cm-result-title{color:#d97706}
.cm-result-not-found .cm-result-title{color:#1d4ed8}
.cm-result-subtitle{
    margin-top:13px;
    color:#334155;
    font-size:18px;
    line-height:1.55;
}
.cm-info-grid{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-top:34px;
}
.cm-info-item{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:102px;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(148,163,184,.20);
    box-shadow:0 14px 32px rgba(15,23,42,.08);
}
.cm-info-wide{grid-column:span 2}
.cm-info-icon{
    flex:0 0 48px;
    width:48px;height:48px;
    display:flex;align-items:center;justify-content:center;
    border-radius:50%;
    font-weight:900;
    color:#fff;
    background:linear-gradient(135deg,#22c55e,#16a34a);
}
.cm-result-expired .cm-info-icon{background:linear-gradient(135deg,#fb7185,#ef4444)}
.cm-result-deactivated .cm-info-icon{background:linear-gradient(135deg,#fbbf24,#f59e0b)}
.cm-info-label{color:#64748b;font-size:14px;font-weight:750;margin-bottom:6px}
.cm-info-value{color:#0f172a;font-size:17px;font-weight:900;line-height:1.25;word-break:break-word}
.cm-trust-card{
    display:flex;
    gap:20px;
    align-items:center;
    margin:30px auto 0;
    padding:24px 28px;
    border-radius:22px;
    background:rgba(255,255,255,.9);
    border:1px solid rgba(148,163,184,.20);
    box-shadow:0 18px 45px rgba(15,23,42,.08);
}
.cm-trust-icon{
    flex:0 0 58px;
    width:58px;height:58px;
    display:flex;align-items:center;justify-content:center;
    border-radius:50%;
    background:linear-gradient(135deg,rgba(124,58,237,.13),rgba(37,99,235,.12));
    font-size:28px;
}
.cm-trust-title{font-weight:900;font-size:18px;color:#111827;margin-bottom:5px}
.cm-trust-text{color:#64748b;line-height:1.55}
.cm-public-footer{
    margin:26px auto 0;
    text-align:center;
    color:#8b98ad;
    font-size:14px;
}
@keyframes cmFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes cmRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){
    .cm-search-card{align-items:flex-start;padding:24px}
    .cm-public-row{grid-template-columns:1fr}
    .cm-result-main{padding-right:0;align-items:flex-start}
    .cm-status-badge{position:relative;top:auto;right:auto;display:inline-flex;margin-bottom:18px}
    .cm-info-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
    .cm-public-shell{padding:0 12px 22px}
    .cm-hero{margin:0 -12px;padding:42px 16px 94px;border-bottom-left-radius:32% 6%;border-bottom-right-radius:32% 6%}
    .cm-hero-shield{width:68px;height:68px;font-size:34px;border-radius:22px 22px 28px 28px}
    .cm-search-card{display:block;margin-top:-56px;margin-bottom:34px;padding:22px;border-radius:24px}
    .cm-search-icon{width:62px;height:62px;font-size:34px;margin-bottom:16px}
    .cm-public-row input,.cm-public-row button{font-size:16px;padding:16px 18px}
    .cm-result-card{padding:22px;border-radius:22px}
    .cm-result-main{display:block;text-align:left}
    .cm-result-icon{width:82px;height:82px;font-size:46px;margin-bottom:18px}
    .cm-info-grid{grid-template-columns:1fr;gap:12px}
    .cm-info-wide{grid-column:auto}
    .cm-info-item{min-height:auto;padding:16px}
    .cm-trust-card{padding:20px;align-items:flex-start}
}
/* Certificate Manager 3.2 Professional UI refinements */
.cm-public-shell{
    isolation:isolate;
}
.cm-search-card,
.cm-result-card{
    transform:translateZ(0);
}
.cm-result-wrap:empty{
    display:none;
}
.cm-public-row button:disabled{
    cursor:wait;
    opacity:.88;
    transform:none;
}
.cm-loader{
    display:none;
    width:18px;
    height:18px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.42);
    border-top-color:#fff;
    animation:cmSpin .75s linear infinite;
}
.cm-public-row button.is-loading .cm-button-icon{
    display:none;
}
.cm-public-row button.is-loading .cm-loader{
    display:inline-block;
}
.cm-checking-card{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    margin:28px auto 0;
    padding:28px;
    border-radius:24px;
    background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(239,246,255,.9));
    border:1px solid rgba(99,102,241,.18);
    box-shadow:0 18px 50px rgba(15,23,42,.09);
    color:#334155;
    font-size:17px;
    font-weight:700;
    animation:cmRise .35s ease both;
}
.cm-checking-spinner{
    width:28px;
    height:28px;
    border-radius:50%;
    border:3px solid rgba(99,102,241,.18);
    border-top-color:#6366f1;
    animation:cmSpin .8s linear infinite;
}
.cm-hero-shield{
    position:relative;
}
.cm-hero-shield:after{
    content:"";
    position:absolute;
    inset:-12px;
    border-radius:34px 34px 42px 42px;
    border:1px solid rgba(255,255,255,.18);
    opacity:.8;
    animation:cmPulse 2.2s ease-in-out infinite;
}
.cm-result-card{
    transition:transform .25s ease, box-shadow .25s ease;
}
.cm-result-card:hover{
    transform:translateY(-2px);
    box-shadow:0 30px 85px rgba(15,23,42,.18);
}
.cm-trust-card,
.cm-public-footer{
    display:none !important;
}
@keyframes cmSpin{to{transform:rotate(360deg)}}
@keyframes cmPulse{0%,100%{transform:scale(.98);opacity:.55}50%{transform:scale(1.04);opacity:1}}
@media (prefers-reduced-motion: reduce){
    .cm-hero-shield,
    .cm-hero-shield:after,
    .cm-result-card,
    .cm-search-card,
    .cm-loader,
    .cm-checking-spinner,
    .cm-checking-card{
        animation:none !important;
        transition:none !important;
    }
}

/* Certificate Manager 3.4 compact result widget for Elementor pages */
.cm-result-widget-shell{
    width:100%;
    max-width:720px;
    margin:0 auto 28px;
    font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:#0f172a;
}
.cm-result-widget-shell *{box-sizing:border-box}
.cm-compact-result-card{
    position:relative;
    overflow:hidden;
    padding:22px 24px;
    border-radius:24px;
    background:linear-gradient(135deg,rgba(240,253,244,.98),rgba(255,255,255,.98));
    border:1px solid rgba(34,197,94,.28);
    box-shadow:0 18px 45px rgba(15,23,42,.10), 0 8px 20px rgba(34,197,94,.08);
    animation:cmRise .45s ease both;
}
.cm-compact-result-card:before{
    content:"";
    position:absolute;
    inset:-80px auto auto -70px;
    width:190px;
    height:190px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(34,197,94,.22),rgba(34,197,94,0) 65%);
    pointer-events:none;
}
.cm-compact-status{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:18px;
}
.cm-compact-icon{
    flex:0 0 54px;
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    color:#fff;
    font-size:28px;
    font-weight:900;
    background:linear-gradient(135deg,#22c55e,#16a34a);
    box-shadow:0 14px 28px rgba(22,163,74,.26);
}
.cm-compact-title{
    margin:0;
    font-size:24px;
    line-height:1.15;
    letter-spacing:-.025em;
    font-weight:900;
    color:#047831;
}
.cm-compact-subtitle{
    margin-top:4px;
    color:#64748b;
    font-size:14px;
    font-weight:650;
}
.cm-compact-info{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.cm-compact-item{
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.84);
    border:1px solid rgba(148,163,184,.18);
    box-shadow:0 8px 20px rgba(15,23,42,.055);
}
.cm-compact-item span{
    display:block;
    margin-bottom:5px;
    color:#64748b;
    font-size:12px;
    line-height:1.25;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.025em;
}
.cm-compact-item strong{
    display:block;
    color:#0f172a;
    font-size:16px;
    line-height:1.25;
    font-weight:900;
    word-break:break-word;
}
@media(max-width:720px){
    .cm-compact-result-card{padding:20px;border-radius:22px}
    .cm-compact-info{grid-template-columns:1fr}
    .cm-compact-title{font-size:22px}
}


/* v9.1 public button fixes: stable green hover, no theme red */
.cm-public-row button,
.cm-public-row button:hover,
.cm-public-row button:focus {
  background: linear-gradient(135deg,#16a34a,#15803d) !important;
  color: #ffffff !important;
  border: 0 !important;
}
.cm-public-row button:hover {
  box-shadow: 0 18px 34px rgba(22,163,74,.34) !important;
}
