.hmacg-soft-wrapper {
    /* Biến CSS độc lập */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f0f4f8;
    --clr-yellow: #fde74c;
    --clr-cyan: #00f5d4;
    --clr-white: #ffffff;
    --clr-green: #06d6a0;
    --clr-text: #111111;

    max-width: 950px; 
    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;
}

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

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

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

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

/* INPUTS */
.hmacg-group { margin-bottom: 15px; display: flex; flex-direction: column; gap: 8px; }
.hmacg-label { font-weight: 900; font-size: 0.95rem; }

.hmacg-textarea {
    width: 100%; min-height: 120px; padding: 15px; border: 2px solid #111; border-radius: 8px;
    font-size: 1.05rem; font-weight: bold; outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); font-family: monospace; resize: vertical; line-height: 1.5;
}
.hmacg-textarea:focus { border-color: var(--clr-cyan); box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05), 0 0 0 3px #111; }

.hmacg-input-row { display: flex; gap: 10px; }
.hmacg-input {
    flex: 1; padding: 12px; border: 2px solid #111; border-radius: 8px;
    font-size: 1.1rem; font-weight: bold; outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); font-family: monospace;
}
.hmacg-input:focus { border-color: var(--clr-cyan); }
.hmacg-btn-icon { background: #fff; border: 2px solid #111; border-radius: 8px; padding: 0 15px; font-size: 1.2rem; cursor: pointer; box-shadow: 2px 2px 0px #111; transition: 0.1s;}
.hmacg-btn-icon:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

.hmacg-select {
    width: 100%; padding: 12px; border: 2px solid #111; border-radius: 8px; background: #fff;
    font-weight: 900; font-size: 1rem; cursor: pointer; outline: none; box-shadow: 3px 3px 0px #111;
}
.hmacg-select:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

/* BUTTONS */
.hmacg-btn-action {
    width: 100%; padding: 12px; background: #111; color: var(--clr-yellow);
    border: 2px solid #111; border-radius: 8px; font-size: 1rem; font-weight: 900;
    cursor: pointer; box-shadow: 3px 3px 0px #111; transition: 0.1s; text-transform: uppercase; margin-top: auto;
}
.hmacg-btn-action:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111; }

/* KẾT QUẢ ĐẦU RA */
.hmacg-results-list { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.hmacg-res-box { padding: 15px; border: 2px solid #111; border-radius: 10px; box-shadow: 3px 3px 0px #111; display: flex; flex-direction: column; gap: 10px; background: #fdfdfd;}
.hmacg-bg-cyan { background: #e0fbfc; }

.hmacg-res-header { display: flex; align-items: center; border-bottom: 2px dashed rgba(0,0,0,0.2); padding-bottom: 8px; }
.hmacg-res-title { font-size: 1rem; font-weight: 900; color: #111; text-transform: uppercase;}

.hmacg-res-body { display: flex; flex-direction: column; gap: 10px; }
.hmacg-textarea-res {
    width: 100%; min-height: 80px; padding: 12px; border: 2px solid #111; border-radius: 6px;
    font-family: monospace; font-weight: bold; font-size: 1rem; color: #111; word-break: break-all;
    background: #fff; outline: none; box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05); resize: vertical;
}
.hmacg-btn-copy {
    background: #111; color: #fff; border: 2px solid #111; border-radius: 6px; padding: 10px;
    font-size: 1rem; font-weight: 900; cursor: pointer; box-shadow: 3px 3px 0px var(--clr-cyan); transition: 0.1s; display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.hmacg-btn-copy:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px var(--clr-cyan); }

/* INFO BOX */
.hmacg-info-box { background: #fff3cd; padding: 15px; border: 2px dashed #111; border-radius: 12px; box-shadow: 3px 3px 0px #111; }
.hmacg-info-box h4 { margin: 0 0 5px 0; font-weight: 900; color: #111; }
.hmacg-info-box p { margin: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.5; color: #333;}