.nato-soft-wrapper {
    /* Biến CSS độc lập */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f8f9fa;
    --clr-yellow: #fde74c;
    --clr-cyan: #4cc9f0;
    --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;
}

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

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

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

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

/* BADGE */
.nato-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;}
.nato-badge.active { background: var(--clr-green); color: #111; }

/* INPUT TEXTAREA */
.nato-group { display: flex; flex-direction: column; gap: 8px; }
.nato-textarea {
    width: 100%; min-height: 200px; padding: 15px; border: 3px 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; resize: vertical; line-height: 1.6;
}
.nato-textarea:focus { border-color: var(--clr-cyan); box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05), 0 0 0 3px #111; }
.nato-textarea-output { flex: 1; background: #fdfdfd; text-transform: uppercase; font-size: 1.2rem; color: #111; }

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

.nato-action-row { display: flex; gap: 10px; margin-top: 15px; }

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

.nato-btn-main {
    flex: 2; padding: 15px; background: #111; color: #fff; border: 2px solid #111; border-radius: 8px;
    font-weight: 900; font-size: 1.1rem; cursor: pointer; box-shadow: 4px 4px 0px #111; transition: 0.1s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.nato-btn-main:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111; }
.nato-btn-main.speaking { animation: natoPulse 1.5s infinite; background: var(--clr-yellow) !important; color: #111 !important;}

@keyframes natoPulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

/* CHEAT SHEET */
.nato-cheat-sheet { margin-top: auto; padding-top: 20px; }
.nato-cheat-title { font-weight: 900; font-size: 0.9rem; margin-bottom: 8px; color: #333; }
.nato-cheat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; font-family: monospace; font-size: 0.9rem; }
.nato-cheat-grid span { background: #fff; border: 1px solid #111; border-radius: 4px; padding: 3px 6px; text-align: center;}
.nato-cheat-grid b { color: var(--clr-text); font-size: 1rem;}