/* ===== RISK CALCULATOR + PUPPET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0f1116; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #e8e8e8; padding: 20px; }
.calc-layout { max-width: 1100px; margin: 30px auto; display: flex; gap: 30px; align-items: flex-start; }
.iprg-calc { flex: 1; min-width: 0; background: #1a1d23; border-radius: 16px; padding: 40px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.iprg-calc * { box-sizing: border-box; }
.iprg-calc h2 { font-size: 28px; color: #e8e8e8; text-align: center; margin: 0 0 8px; }
.iprg-calc .subtitle { text-align: center; color: #888; font-size: 14px; margin: 0 0 28px; }
.iprg-calc .search-wrap { position: relative; }
.iprg-calc input[type="text"] { width: 100%; padding: 16px 20px; font-size: 18px; border: 2px solid #333; border-radius: 12px; background: #111318; color: #e8e8e8; transition: border-color 0.3s; outline: none; }
.iprg-calc input[type="text"]:focus { border-color: #4dabf7; }
.iprg-calc input::placeholder { color: #555; }
.iprg-calc .hint { font-size: 12px; color: #666; margin-top: 6px; text-align: center; }
.iprg-calc .ac-list { display: none; position: absolute; top: 58px; left: 0; right: 0; background: #1a1d23; border: 1px solid #333; border-radius: 0 0 12px 12px; max-height: 240px; overflow-y: auto; z-index: 100; border-top: none; }
.iprg-calc .ac-list.show { display: block; }
.iprg-calc .ac-item { padding: 12px 20px; cursor: pointer; color: #ccc; font-size: 15px; transition: background 0.15s; border-bottom: 1px solid #222; }
.iprg-calc .ac-item:last-child { border-bottom: none; }
.iprg-calc .ac-item:hover { background: #222; color: #fff; }
.iprg-calc .ac-item .ac-risk { float: right; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.iprg-calc .results { display: none; margin-top: 30px; animation: fadeIn 0.4s; }
.iprg-calc .results.show { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.iprg-calc .risk-circle { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700; border: 6px solid; position: relative; background: #111318; }
.iprg-calc .risk-circle .label { font-size: 14px; font-weight: 400; color: #888; position: absolute; bottom: -28px; }
.iprg-calc .result-title { text-align: center; font-size: 24px; color: #e8e8e8; margin: 10px 0; }
.iprg-calc .result-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; margin: 10px auto; text-align: center; }
.iprg-calc .risk-bar-wrap { background: #111318; border-radius: 8px; height: 12px; margin: 20px 0; overflow: hidden; }
.iprg-calc .risk-bar { height: 100%; border-radius: 8px; transition: width 0.8s ease; width: 0%; }
.iprg-calc .reason { background: #111318; border-radius: 12px; padding: 16px 20px; color: #ccc; font-size: 15px; line-height: 1.5; margin-top: 16px; }
.iprg-calc .btn-wrap { text-align: center; margin-top: 16px; }
.iprg-calc .share-btn { display: inline-block; margin: 20px auto 0; padding: 12px 28px; background: #4dabf7; color: #000; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.iprg-calc .share-btn:hover { background: #3d99e6; }
.iprg-calc .reset-btn { display: inline-block; margin: 0 0 0 10px; padding: 12px 20px; background: #333; color: #aaa; border: none; border-radius: 10px; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.iprg-calc .reset-btn:hover { background: #444; }
.risc-very-high { color: #ff4757; } .bg-very-high { background: #ff4757; }
.risc-high { color: #ff6348; } .bg-high { background: #ff6348; }
.risc-medium { color: #ffa502; } .bg-medium { background: #ffa502; }
.risc-low { color: #2ed573; } .bg-low { background: #2ed573; }
.risc-very-low { color: #2bcbba; } .bg-very-low { background: #2bcbba; }
.bg-very-high-text { color: #fff; background: #ff4757; }
.bg-high-text { color: #fff; background: #ff6348; }
.bg-medium-text { color: #000; background: #ffa502; }
.bg-low-text { color: #000; background: #2ed573; }
.bg-low-text { color: #000; background: #2bcbba; }
.iprg-calc .suggestions { margin-top: 30px; padding-top: 24px; border-top: 1px solid #222; }
.iprg-calc .suggestions h3 { color: #888; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.iprg-calc .suggestions .tag { display: inline-block; padding: 6px 14px; background: #111318; color: #aaa; border-radius: 8px; font-size: 13px; margin: 0 6px 8px 0; cursor: pointer; transition: all 0.15s; }
.iprg-calc .suggestions .tag:hover { background: #333; color: #fff; }
.iprg-calc .forum-link { margin-top: 30px; padding: 20px; background: #111318; border-radius: 12px; text-align: center; border: 1px solid #222; }
.iprg-calc .forum-link p { color: #888; font-size: 14px; margin: 0 0 10px; }
.iprg-calc .forum-link a { display: inline-block; margin-top: 8px; padding: 12px 28px; background: #2B5278; color: #fff!important; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s; }
.iprg-calc .forum-link a:hover { background: #1E3A5A; }
.puppet-panel { width: 220px; flex-shrink: 0; background: #1a1d23; border-radius: 16px; padding: 20px 15px 15px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); text-align: center; position: sticky; top: 20px; }
.puppet-panel .puppet-label { font-size: 11px; color: #5B9EF7; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; opacity: 0.7; }
.puppet-panel svg { display: block; margin: 0 auto; width: 180px; height: auto; }
@keyframes glow-pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes robot-scan { 0%,100% { transform: rotate(-15deg); } 50% { transform: rotate(15deg); } }
.glow-eye { animation: glow-pulse 2s ease-in-out infinite; }
.robot-antenna-scan { animation: robot-scan 3s ease-in-out infinite; transform-origin: 100px 45px; }
@media (max-width: 880px) { .calc-layout { flex-direction: column; } .puppet-panel { width: 100%; position: static; } .puppet-panel svg { width: 150px; } .iprg-calc { padding: 20px; } .iprg-calc h2 { font-size: 22px; } .iprg-calc .risk-circle { width: 110px; height: 110px; font-size: 28px; } .iprg-calc .result-title { font-size: 20px; } }
