.emnorm-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-red: #ff006e;
    --clr-orange: #fb8500;
    --clr-green: #06d6a0;
    --clr-white: #ffffff;
    --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;
}

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

.emnorm-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);
}
.emnorm-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: var(--clr-yellow); text-transform: uppercase;}
.emnorm-soft-header p { margin: 0; font-weight: 600; font-size: 0.95rem; color: #ccc;}

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

/* CARDS */
.emnorm-card {
    padding: 20px; border: var(--neo-border); background: #fff;
    border-radius: 12px; box-shadow: var(--neo-shadow); display: flex; flex-direction: column; height: 100%; transition: 0.3s;
}
.emnorm-card-title { margin: 0 0 15px 0; font-size: 1.2rem; font-weight: 900; border-bottom: 2px dashed #111; padding-bottom: 10px; }
.emnorm-bg-yellow { background: var(--clr-yellow); }
.emnorm-bg-white { background: var(--clr-white); }
.emnorm-flex-between { display: flex; justify-content: space-between; align-items: center; }

/* BADGE */
.emnorm-badge { background: #eee; padding: 4px 10px; border: 2px solid #111; border-radius: 6px; font-weight: 900; font-size: 0.85rem; box-shadow: 2px 2px 0px #111; transition: 0.2s;}
.emnorm-badge.active { background: var(--clr-green); color: #111; }

/* TEXTAREA */
.emnorm-group { display: flex; flex-direction: column; gap: 8px; flex: 1;}

.emnorm-textarea {
    width: 100%; min-height: 200px; flex: 1; padding: 15px; border: 3px solid #111; border-radius: 8px;
    font-size: 1rem; 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; white-space: pre;
}
.emnorm-textarea:focus { border-color: var(--clr-cyan); box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05), 0 0 0 3px #111; }
.emnorm-textarea-output { background: #fdfdfd; color: var(--clr-text); }

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

/* CHECKBOX OPTIONS */
.emnorm-options-box { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,0.5); padding: 15px; border: 2px solid #111; border-radius: 8px; box-shadow: 2px 2px 0px #111;}
.emnorm-check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 800; font-size: 0.95rem; }
.emnorm-checkbox { display: none; }
.emnorm-check-ui { width: 22px; height: 22px; border: 2px solid #111; border-radius: 6px; display: inline-block; position: relative; background: #fff; transition: 0.1s;}
.emnorm-checkbox:checked + .emnorm-check-ui { background: var(--clr-cyan); }
.emnorm-checkbox:checked + .emnorm-check-ui::after { content: '✔'; position: absolute; font-size: 0.9rem; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #111;}

/* THỐNG KÊ (STATS) */
.emnorm-stats-row { display: flex; gap: 10px; margin-bottom: 15px; }
.emnorm-stat-box { flex: 1; padding: 10px; border: 2px solid #111; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 3px 3px 0px #111; }
.emnorm-stat-num { font-size: 1.5rem; font-weight: 900; line-height: 1; margin-bottom: 5px; }
.emnorm-stat-lbl { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; color: #555; }
.emnorm-stat-valid { background: var(--clr-green); }
.emnorm-stat-dupes { background: var(--clr-yellow); }
.emnorm-stat-invalid { background: #ffe5ec; }

/* BUTTONS */
.emnorm-btn-small {
    padding: 6px 12px; background: #fff; border: 2px solid #111; border-radius: 6px;
    font-weight: 900; font-size: 0.85rem; cursor: pointer; box-shadow: 2px 2px 0px #111; transition: 0.1s; color: #111;
}
.emnorm-btn-small:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

.emnorm-action-row { display: flex; gap: 10px; margin-top: 15px; }
.emnorm-btn-main {
    flex: 3; padding: 15px; background: #111; color: var(--clr-cyan);
    border: 2px solid #111; border-radius: 8px; font-size: 1.1rem; font-weight: 900;
    cursor: pointer; box-shadow: 4px 4px 0px #111; transition: 0.1s; text-transform: uppercase;
}
.emnorm-btn-main:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111; }

.emnorm-btn-secondary {
    flex: 1; padding: 15px; background: #fff; color: #111;
    border: 2px solid #111; border-radius: 8px; font-size: 1rem; font-weight: 900;
    cursor: pointer; box-shadow: 4px 4px 0px #111; transition: 0.1s;
}
.emnorm-btn-secondary:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111; }

/* INFO BOX */
.emnorm-info-box { background: rgba(255,255,255,0.6); padding: 15px; border: 2px dashed #111; border-radius: 8px; margin-top: 20px;}
.emnorm-info-box h4 { margin: 0 0 5px 0; font-weight: 900; color: #111; font-size: 1rem;}
.emnorm-info-box p { margin: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.6; color: #333;}
.emnorm-info-box code { background: #fff; border: 1px solid #111; padding: 2px 5px; border-radius: 4px; font-weight: bold; }