/* Biến nội bộ */
.cell-neo-wrapper {
    --bg-white: #ffffff;
    --border-ink: 3px solid #111111;
    --shadow-solid: 5px 5px 0px #111111;
    --shadow-push: 2px 2px 0px #111111;
    
    /* Bảng màu phân bào */
    --clr-mitosis: #ffd60a;    /* Vàng rực */
    --clr-meiosis: #4cc9f0;    /* Xanh sinh học */
    --clr-male: #a2d2ff;       
    --clr-female: #ffc8dd;     
    
    max-width: 800px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #111111;
    background: #fdfdfd;
    padding: 20px;
    border: var(--border-ink);
    border-radius: 16px;
    box-shadow: 8px 8px 0px #111;
}

.cell-neo-wrapper * { box-sizing: border-box; }

/* Header */
.cell-neo-header { background: var(--clr-mitosis); border: var(--border-ink); box-shadow: var(--shadow-solid); padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 25px; }
.cell-neo-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; color: #111;}
.cell-neo-header p { margin: 0; font-weight: 800; font-size: 0.95rem; color: #111; }

/* Form Styles */
.cell-neo-form { display: flex; flex-direction: column; gap: 20px; }
.cell-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cell-group { display: flex; flex-direction: column; gap: 10px; }
.cell-group label { font-weight: 900; font-size: 1.1rem; color: #111; }

.cell-neo-wrapper input[type="number"] { width: 100%; padding: 14px; font-size: 1.3rem; font-weight: 900; border: var(--border-ink); border-radius: 12px; background: var(--bg-white); box-shadow: 4px 4px 0px #111; outline: none; transition: all 0.2s; color: #111;}
.cell-neo-wrapper input[type="number"]:focus { box-shadow: var(--shadow-solid); background: #e0fbfc; }

/* Quick Tags */
.input-with-quick { display: flex; flex-direction: column; gap: 8px; }
.quick-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.q-tag { padding: 4px 10px; border: 2px solid #111; border-radius: 20px; font-size: 0.8rem; font-weight: 800; cursor: pointer; background: #fff; box-shadow: 2px 2px 0px #111; color: #111; transition: all 0.1s;}
.q-tag:hover { background: #e9ecef; }
.q-tag:active { box-shadow: 0px 0px 0px #111; transform: translate(2px,2px); }

/* Chú thích màu đen đậm */
.cell-helper { font-size: 0.95rem; font-weight: 800; color: #111; background: #e9ecef; padding: 12px; border-radius: 8px; border: 2px dashed #111; }

/* Radio Grid */
.cell-radio-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.cell-radio-grid .radio-neo { cursor: pointer; }
.cell-neo-wrapper input[type="radio"] { display: none; }
.cell-neo-wrapper .neo-content { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 12px; font-weight: 800; border: var(--border-ink); border-radius: 12px; background: var(--bg-white); box-shadow: 4px 4px 0px #111; transition: all 0.1s; font-size: 0.95rem; color: #111;}
input[value="no"]:checked + .neo-content { background: #e9ecef; box-shadow: var(--shadow-push); transform: translate(2px, 2px); }
input[value="male"]:checked + .neo-content { background: var(--clr-male); box-shadow: var(--shadow-push); transform: translate(2px, 2px); }
input[value="female"]:checked + .neo-content { background: var(--clr-female); box-shadow: var(--shadow-push); transform: translate(2px, 2px); }

/* Button */
.cell-neo-btn { padding: 18px; font-size: 1.2rem; font-weight: 900; background: #111; color: #fff; border: var(--border-ink); border-radius: 12px; box-shadow: 5px 5px 0px var(--clr-mitosis); cursor: pointer; text-transform: uppercase; transition: all 0.1s; margin-top: 10px;}
.cell-neo-btn:active { box-shadow: 2px 2px 0px var(--clr-mitosis); transform: translate(3px, 3px); }

/* Result Layout */
.cell-neo-result { margin-top: 30px; padding-top: 25px; border-top: 4px dashed #111; display: flex; flex-direction: column; gap: 20px;}
.cell-neo-result.active { display: flex !important; animation: cellPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

.cell-card { border: var(--border-ink); box-shadow: var(--shadow-solid); border-radius: 12px; padding: 25px 20px; text-align: center; }
.card-mitosis { background: #fff; }
.card-meiosis { background: var(--clr-meiosis); }
.cell-card h3 { margin: 0 0 20px 0; font-size: 1.3rem; color: #111; font-weight: 900; text-transform: uppercase; border-bottom: 3px solid #111; padding-bottom: 10px;}

.stats-grid { display: flex; gap: 15px; flex-wrap: wrap;}
.stat-box { flex: 1; min-width: 150px; background: #f8f9fa; border: 3px solid #111; border-radius: 12px; padding: 15px; display: flex; flex-direction: column; justify-content: center; box-shadow: 3px 3px 0px #111;}
.box-highlight { background: #111; color: #fff; }
.box-highlight .s-label { color: #f8f9fa; }

.s-label { font-size: 0.95rem; font-weight: 800; color: #111; margin-bottom: 8px;}
.s-val { font-size: 2.2rem; font-weight: 900; }

.cell-note-black { background: #fff; border: 3px solid #111; border-radius: 8px; padding: 15px; font-size: 0.95rem; font-weight: 800; color: #111; line-height: 1.5; text-align: left;}

@keyframes cellPop { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
    .cell-form-grid, .cell-radio-grid { grid-template-columns: 1fr; }
    .stats-grid { flex-direction: column; }
}