.chmodc-soft-wrapper {
    /* Biến CSS cách ly */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f4f4f5;
    --clr-yellow: #fde74c;
    --clr-cyan: #9bf6ff;
    --clr-white: #ffffff;
    --clr-green: #06d6a0;
    --clr-text: #111111;

    max-width: 900px; 
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--clr-text);
    background: var(--bg-main);
    padding: 20px;
    border: var(--neo-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0px #111111;
}

.chmodc-soft-wrapper * { box-sizing: border-box; }

.chmodc-soft-header {
    background: #111; padding: 20px; color: #fff;
    border: var(--neo-border); border-radius: 12px;
    text-align: center; margin-bottom: 20px; box-shadow: var(--neo-shadow);
}
.chmodc-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: var(--clr-yellow); text-transform: uppercase;}
.chmodc-soft-header p { margin: 0; font-weight: 600; font-size: 0.95rem; color: #ddd;}

/* BỐ CỤC 2 CỘT */
.chmodc-main-layout { display: flex; flex-direction: column; gap: 20px; }
.chmodc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .chmodc-main-layout { flex-direction: row; align-items: stretch; } }

/* CARDS */
.chmodc-card {
    padding: 20px; border: var(--neo-border); 
    border-radius: 12px; box-shadow: var(--neo-shadow); display: flex; flex-direction: column;
}
.chmodc-bg-yellow { background: var(--clr-yellow); }
.chmodc-bg-white { background: var(--clr-white); }
.chmodc-card-title { margin: 0 0 15px 0; font-size: 1.2rem; font-weight: 900; border-bottom: 2px dashed #111; padding-bottom: 10px; }

/* MA TRẬN PHÂN QUYỀN (MATRIX) */
.chmodc-matrix { background: #fff; border: 2px solid #111; border-radius: 8px; overflow: hidden; box-shadow: 3px 3px 0px #111; margin-bottom: 15px; }
.chmodc-matrix-row { display: flex; border-bottom: 2px solid #111; }
.chmodc-matrix-row:last-child { border-bottom: none; }
.chmodc-matrix-header { background: #eee; font-weight: 900; text-align: center; }

.chmodc-cell-label { flex: 2; padding: 10px; border-right: 2px solid #111; display: flex; flex-direction: column; justify-content: center; }
.chmodc-cell-label strong { font-size: 0.95rem; }
.chmodc-cell-label span { font-size: 0.75rem; color: #666; font-weight: 700; }
.chmodc-matrix-header .chmodc-cell-label { align-items: center; justify-content: center; font-size: 0.9rem;}

.chmodc-cell { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; border-right: 2px solid #111; font-weight: 800; font-size: 0.9rem; }
.chmodc-cell:last-child { border-right: none; }

/* NEO CHECKBOXES */
.chmodc-check-wrap { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.chmodc-chk { display: none; }
.chmodc-box {
    width: 26px; height: 26px; border: 2px solid #111; border-radius: 4px;
    background: #fff; display: flex; align-items: center; justify-content: center; transition: 0.1s;
}
.chmodc-chk:checked + .chmodc-box { background: var(--clr-green); }
.chmodc-chk:checked + .chmodc-box::after { content: "✔"; font-weight: 900; color: #111; font-size: 1rem; }

/* INPUT FILE TÊN */
.chmodc-file-input { margin-top: 15px; }
.chmodc-file-input label { font-weight: 900; font-size: 0.9rem; display: block; margin-bottom: 5px; }
.chmodc-input { width: 100%; padding: 10px; border: 2px solid #111; border-radius: 6px; font-weight: bold; font-family: monospace; font-size: 1rem; outline: none; box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05); }
.chmodc-input:focus { border-color: var(--clr-cyan); }

/* KẾT QUẢ ĐẦU RA */
.chmodc-result-grid { display: flex; gap: 15px; flex-wrap: wrap; }
.chmodc-res-box { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 5px; }
.chmodc-res-box label { font-weight: 900; font-size: 0.9rem; }
.chmodc-big-input {
    width: 100%; padding: 15px; border: 3px solid #111; border-radius: 8px; text-align: center;
    font-size: 2rem; font-weight: 900; color: #111; outline: none; background: #fff; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); transition: 0.2s;
}
.chmodc-big-input:focus { border-color: var(--clr-cyan); box-shadow: 4px 4px 0px #111; transform: translate(-2px, -2px); }
.chmodc-font-mono { font-family: monospace; letter-spacing: 2px; background: #f8f9fa; }

.chmodc-divider { border: 0; border-top: 2px dashed #111; margin: 20px 0; opacity: 0.3; }

/* COMMAND DISPLAY */
.chmodc-cmd-box label { font-weight: 900; font-size: 0.9rem; display: block; margin-bottom: 5px; }
.chmodc-cmd-display { display: flex; border: 3px solid #111; border-radius: 8px; overflow: hidden; box-shadow: 3px 3px 0px #111; }
#chmodc-cmd-text {
    flex: 1; background: #111; color: var(--clr-green); padding: 12px 15px;
    font-family: monospace; font-size: 1.1rem; font-weight: 900; overflow-x: auto; white-space: nowrap; margin: 0;
}
.chmodc-btn-copy { background: var(--clr-yellow); border: none; border-left: 3px solid #111; padding: 0 15px; font-size: 1.2rem; cursor: pointer; transition: 0.1s; }
.chmodc-btn-copy:active { background: #fff; }

/* PRESETS */
.chmodc-presets { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chmodc-preset-lbl { font-weight: 900; font-size: 0.85rem; }
.chmodc-preset-btn {
    background: #fff; border: 2px solid #111; border-radius: 6px; padding: 4px 10px;
    font-weight: 900; font-family: monospace; font-size: 0.95rem; cursor: pointer; box-shadow: 2px 2px 0px #111;
}
.chmodc-preset-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

/* INFO BOX */
.chmodc-info-box { background: #e0fbfc; padding: 15px; border: 2px dashed #111; border-radius: 12px; box-shadow: 3px 3px 0px #111; }
.chmodc-info-box h4 { margin: 0 0 5px 0; font-weight: 900; color: #111; }
.chmodc-info-box ul { margin: 0; padding-left: 20px; font-size: 0.85rem; font-weight: 600; line-height: 1.6; }