  
/* ── CODE BLOCK ── */
.code-wrapper {
position: relative;
margin: 28px 0;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.code-header {
display: flex;
align-items: center;
justify-content: space-between;
background: #16161e;
padding: 2px 4px;
border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-lang {
font-family: ‘JetBrains Mono’, monospace;
font-size: 11px;
color: #6c7086;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.copy-btn {
display: flex;
align-items: center;
gap: 6px;
background: transparent;
border: 1px solid rgba(255,255,255,0.1);
border-radius: 6px;
padding: 5px 10px;
cursor: pointer;
color: #6c7086;
font-family: ‘JetBrains Mono’, monospace;
font-size: 11px;
letter-spacing: 0.04em;
transition: all 0.18s ease;
user-select: none;
}

.copy-btn:hover { border-color: var(–accent); color: var(–accent); background: var(–accent-dim); }
.copy-btn.copied { border-color: var(–success); color: var(–success); background: rgba(166,227,161,0.12); }

.icon-container { position: relative; width: 13px; height: 13px; }
.icon-copy, .icon-check { position: absolute; top: 0; left: 0; width: 13px; height: 13px; transition: opacity 0.15s, transform 0.15s; }
.icon-check { opacity: 0; transform: scale(0.7); }
.copy-btn.copied .icon-copy { opacity: 0; transform: scale(0.7); }
.copy-btn.copied .icon-check { opacity: 1; transform: scale(1); }

pre {
background: #1e1e2e;
color: #cdd6f4;
font-family: ‘JetBrains Mono’, monospace;
font-size: 13.5px;
line-height: 1.7;
padding: 20px;
overflow-x: auto;
margin: 0;
text-align: left;
}

/* ── TOAST ── */
.toast {
position: fixed;
bottom: 28px;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: #1e1e2e;
color: var(–success);
font-family: ‘JetBrains Mono’, monospace;
font-size: 13px;
padding: 10px 20px;
border-radius: 8px;
border: 1px solid rgba(166,227,161,0.3);
box-shadow: 0 8px 32px rgba(0,0,0,0.25);
opacity: 0;
pointer-events: none;
transition: opacity 0.2s, transform 0.2s;
z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
 
